@@ -198,7 +198,7 @@ class ListenHTTPTestsFixture {
198
198
199
199
void test_connect (
200
200
const std::vector<HttpResponseExpectations>& response_expectations = {HttpResponseExpectations{}},
201
- std::size_t expected_commited_requests = 1 ,
201
+ std::size_t expected_committed_requests = 1 ,
202
202
std::unique_ptr<minifi::http::HTTPClient> client_to_use = {}) {
203
203
if (client_to_use) {
204
204
REQUIRE (response_expectations.size () == 1 );
@@ -231,10 +231,10 @@ class ListenHTTPTestsFixture {
231
231
thread.join ();
232
232
}
233
233
234
- if (expected_commited_requests > 0 && (method == HttpRequestMethod::GET || method == HttpRequestMethod::POST)) {
234
+ if (expected_committed_requests > 0 && (method == HttpRequestMethod::GET || method == HttpRequestMethod::POST)) {
235
235
REQUIRE (LogTestController::getInstance ().contains (" Size:" + std::to_string (payload.size ()) + " Offset:0" ));
236
236
}
237
- REQUIRE (LogTestController::getInstance ().contains (" Logged " + std::to_string (expected_commited_requests ) + " flow files" ));
237
+ REQUIRE (LogTestController::getInstance ().contains (" Logged " + std::to_string (expected_committed_requests ) + " flow files" ));
238
238
}
239
239
240
240
std::unique_ptr<minifi::http::HTTPClient> initialize_client () {
@@ -330,8 +330,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTP no body", "[basic]") {
330
330
}
331
331
332
332
run_server ();
333
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
334
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
333
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
334
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
335
335
}
336
336
337
337
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTP body with different mime type" , " [basic][mime]" ) {
@@ -349,8 +349,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTP body with different mime type", "
349
349
}
350
350
351
351
run_server ();
352
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
353
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
352
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
353
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
354
354
}
355
355
356
356
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTP all headers" , " [basic][headers]" ) {
@@ -471,8 +471,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS without CA", "[basic][https]") {
471
471
}
472
472
473
473
run_server ();
474
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
475
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
474
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
475
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
476
476
}
477
477
478
478
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS without client cert" , " [basic][https]" ) {
@@ -494,8 +494,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS without client cert", "[basic][h
494
494
}
495
495
496
496
run_server ();
497
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
498
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
497
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
498
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
499
499
}
500
500
501
501
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS with client cert from good CA" , " [https]" ) {
@@ -518,8 +518,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert from good CA",
518
518
}
519
519
520
520
run_server ();
521
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
522
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
521
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
522
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
523
523
}
524
524
525
525
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS with PKCS12 client cert from good CA" , " [https]" ) {
@@ -542,8 +542,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with PKCS12 client cert from goo
542
542
}
543
543
544
544
run_server ();
545
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
546
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
545
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
546
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
547
547
}
548
548
549
549
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS with client cert from bad CA" , " [https]" ) {
@@ -553,7 +553,7 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert from bad CA", "
553
553
554
554
bool should_succeed = false ;
555
555
int64_t response_code = 0 ;
556
- std::size_t expected_commited_requests = 0 ;
556
+ std::size_t expected_committed_requests = 0 ;
557
557
SECTION (" verify peer" ) {
558
558
should_succeed = false ;
559
559
plan->setProperty (listen_http, minifi::processors::ListenHTTP::SSLVerifyPeer, " yes" );
@@ -575,12 +575,12 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert from bad CA", "
575
575
576
576
SECTION (" GET" ) {
577
577
method = HttpRequestMethod::GET;
578
- expected_commited_requests = 1 ;
578
+ expected_committed_requests = 1 ;
579
579
}
580
580
SECTION (" POST" ) {
581
581
method = HttpRequestMethod::POST;
582
582
payload = " Test payload" ;
583
- expected_commited_requests = 1 ;
583
+ expected_committed_requests = 1 ;
584
584
}
585
585
SECTION (" HEAD" ) {
586
586
method = HttpRequestMethod::HEAD;
@@ -590,7 +590,7 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert from bad CA", "
590
590
create_ssl_context_service (" goodCA.crt" , " badCA_goodClient.pem" );
591
591
592
592
run_server ();
593
- test_connect ({HttpResponseExpectations{should_succeed, response_code}}, expected_commited_requests );
593
+ test_connect ({HttpResponseExpectations{should_succeed, response_code}}, expected_committed_requests );
594
594
}
595
595
596
596
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS with client cert with matching DN" , " [https][DN]" ) {
@@ -614,8 +614,8 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert with matching D
614
614
}
615
615
616
616
run_server ();
617
- const std::size_t expected_commited_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
618
- test_connect ({HttpResponseExpectations{}}, expected_commited_requests );
617
+ const std::size_t expected_committed_requests = (method == HttpRequestMethod::POST || method == HttpRequestMethod::GET) ? 1 : 0 ;
618
+ test_connect ({HttpResponseExpectations{}}, expected_committed_requests );
619
619
}
620
620
621
621
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS with client cert with non-matching DN" , " [https][DN]" ) {
@@ -625,7 +625,7 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert with non-matchi
625
625
plan->setProperty (listen_http, minifi::processors::ListenHTTP::AuthorizedDNPattern, " .*/CN=good\\ ..*" );
626
626
627
627
int64_t response_code = 0 ;
628
- std::size_t expected_commited_requests = 0 ;
628
+ std::size_t expected_committed_requests = 0 ;
629
629
SECTION (" verify peer" ) {
630
630
plan->setProperty (listen_http, minifi::processors::ListenHTTP::SSLVerifyPeer, " yes" );
631
631
response_code = 403 ;
@@ -646,12 +646,12 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert with non-matchi
646
646
647
647
SECTION (" GET" ) {
648
648
method = HttpRequestMethod::GET;
649
- expected_commited_requests = 1 ;
649
+ expected_committed_requests = 1 ;
650
650
}
651
651
SECTION (" POST" ) {
652
652
method = HttpRequestMethod::POST;
653
653
payload = " Test payload" ;
654
- expected_commited_requests = 1 ;
654
+ expected_committed_requests = 1 ;
655
655
}
656
656
SECTION (" HEAD" ) {
657
657
method = HttpRequestMethod::HEAD;
@@ -661,7 +661,7 @@ TEST_CASE_METHOD(ListenHTTPTestsFixture, "HTTPS with client cert with non-matchi
661
661
create_ssl_context_service (" goodCA.crt" , " goodCA_badClient.pem" );
662
662
663
663
run_server ();
664
- test_connect ({HttpResponseExpectations{true , response_code}}, expected_commited_requests );
664
+ test_connect ({HttpResponseExpectations{true , response_code}}, expected_committed_requests );
665
665
}
666
666
667
667
TEST_CASE_METHOD (ListenHTTPTestsFixture, " HTTPS minimum SSL version" , " [https]" ) {
0 commit comments