@@ -48,7 +48,7 @@ class TestHTTPServer {
4848 log_attribute_ = dynamic_cast <processors::LogAttribute*>(test_plan_->addProcessor (" LogAttribute" , " LogAttribute" , core::Relationship (" success" , " description" ), true ));
4949 REQUIRE (listen_http_);
5050 REQUIRE (log_attribute_);
51- log_attribute_->setProperty (processors::LogAttribute::LogPayload, " true" );
51+ log_attribute_->setProperty (processors::LogAttribute::LogPayload. name , " true" );
5252 test_plan_->setProperty (listen_http_, org::apache::nifi::minifi::processors::ListenHTTP::BasePath, " testytesttest" );
5353 test_plan_->setProperty (listen_http_, org::apache::nifi::minifi::processors::ListenHTTP::Port, " 8681" );
5454 test_plan_->setProperty (listen_http_, org::apache::nifi::minifi::processors::ListenHTTP::HeadersAsAttributesRegex, " .*" );
@@ -385,9 +385,9 @@ TEST_CASE("InvokeHTTP: invalid characters are removed from outgoing HTTP headers
385385 SingleProcessorTestController controller{std::make_unique<InvokeHTTP>(" InvokeHTTP" )};
386386 const TestHTTPServer http_server (controller);
387387 auto * const invoke_http = controller.getProcessor <InvokeHTTP>();
388- invoke_http->setProperty (InvokeHTTP::Method, " POST" );
389- invoke_http->setProperty (InvokeHTTP::URL, http_server.URL );
390- invoke_http->setProperty (InvokeHTTP::AttributesToSend, " .*" );
388+ invoke_http->setProperty (InvokeHTTP::Method. name , " POST" );
389+ invoke_http->setProperty (InvokeHTTP::URL. name , http_server.URL );
390+ invoke_http->setProperty (InvokeHTTP::AttributesToSend. name , " .*" );
391391 const auto result = controller.trigger (InputFlowFileData{.content = test_content, .attributes = {
392392 {std::string{InvokeHTTP::STATUS_MESSAGE}, std::string{test_attr_value_in}},
393393 }});
0 commit comments