diff --git a/parser/aws/AWS_Interface.hpp b/parser/aws/AWS_Interface.hpp index 78b528e..a044981 100644 --- a/parser/aws/AWS_Interface.hpp +++ b/parser/aws/AWS_Interface.hpp @@ -3,7 +3,7 @@ #include "ReceiverInterface.hpp" #include "ParserInterface.hpp" -#include +#include namespace NCBI { diff --git a/parser/gcp/GCP_Interface.hpp b/parser/gcp/GCP_Interface.hpp index 6c9ec6f..a9b403a 100644 --- a/parser/gcp/GCP_Interface.hpp +++ b/parser/gcp/GCP_Interface.hpp @@ -3,7 +3,7 @@ #include "ReceiverInterface.hpp" #include "ParserInterface.hpp" -#include +#include namespace NCBI { diff --git a/parser/gcp/gcp_parser.y b/parser/gcp/gcp_parser.y index cf82ce2..3dd1fc5 100644 --- a/parser/gcp/gcp_parser.y +++ b/parser/gcp/gcp_parser.y @@ -117,6 +117,7 @@ ip_region method : QUOTE QSTR QUOTE { $$ = $2; lib->set( GCPReceiver::method, $2 ); } + | QUOTE QUOTE { $$ = $2; lib->set( GCPReceiver::method, EmptyTSTR ); } ; status diff --git a/parser/gcp/gcp_test_parse.cpp b/parser/gcp/gcp_test_parse.cpp index 05d85e3..cd468d7 100644 --- a/parser/gcp/gcp_test_parse.cpp +++ b/parser/gcp/gcp_test_parse.cpp @@ -324,6 +324,13 @@ TEST_F( GCPTestFixture, LOGMON_208 ) static_cast( pb -> GetReceiver() ) . agent_for_postprocess ); } +TEST_F( GCPTestFixture, LOGMON_239_EmptyMethod ) +{ + string res = try_to_parse_good("\"1745735054441785\",\"\",\"\",\"\",\"\",\"\",\"200\",\"\",\"\",\"\",\"\",\"\",\"GCS Lifecycle Management\",\"0fb4c5bb9c78965f21f0b24f3f3b956e\",\"\",\"sra-ca-run-103\",\"\""); + ASSERT_NE( "", res ); + ASSERT_EQ( "", extract_value( res, "method" ) ); +} + extern "C" { int main ( int argc, const char * argv [], const char * envp [] ) diff --git a/parser/op/OP_Interface.hpp b/parser/op/OP_Interface.hpp index 742e7bc..a1ae8ff 100644 --- a/parser/op/OP_Interface.hpp +++ b/parser/op/OP_Interface.hpp @@ -3,7 +3,7 @@ #include "ReceiverInterface.hpp" #include "ParserInterface.hpp" -#include +#include namespace NCBI {