Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable logging support in go sdk #346

Open
ASHNA-AGGARWAL-KEYSIGHT opened this issue Jul 4, 2022 · 1 comment
Open

Enable logging support in go sdk #346

ASHNA-AGGARWAL-KEYSIGHT opened this issue Jul 4, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request priority High Priority ux Impacts UX
Milestone

Comments

@ASHNA-AGGARWAL-KEYSIGHT
Copy link
Contributor

No description provided.

@ASHNA-AGGARWAL-KEYSIGHT ASHNA-AGGARWAL-KEYSIGHT moved this from In Progress to Code Review in Open Traffic Generator Jul 11, 2022
@ashutshkumr ashutshkumr added enhancement New feature or request go ux sdk gen labels Nov 11, 2022
@ashutshkumr ashutshkumr removed this from OTG Tools Nov 11, 2022
@ashutshkumr ashutshkumr moved this to Initial Triage in OTG Tools Jan 13, 2023
@ashutshkumr ashutshkumr added this to the v1.0.0 milestone Jan 27, 2023
@ashutshkumr ashutshkumr moved this from Todo to Backlog in OTG Tools Jan 27, 2023
@ashutshkumr ashutshkumr moved this from Backlog to Todo in OTG Tools Feb 20, 2023
@dipendughosh dipendughosh moved this from Todo to In Progress in OTG Tools Mar 7, 2023
@dipendughosh
Copy link
Contributor

Log output for different transport tests

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestClearWarnings$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:32 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:32 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:32 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestClearWarnings
5:27PM INF Executing ClearWarnings Module=openapiart
5:27PM DBG Module=openapiart Response="warnings cleared"
5:27PM INF Executing ClearWarnings Module=openapiart
5:27PM DBG Module=openapiart Response =""success""
5:27PM INF Executing ClearWarnings Module=openapiart
5:27PM DBG Module=openapiart Response="warnings cleared"
--- PASS: TestClearWarnings (0.01s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.013s

Test run finished at 3/7/2023, 5:27:32 PM <

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestConnectionClose$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:38 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:38 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestConnectionClose
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:38 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM DBG Module=openapiart Response="U2V0Q29uZmlnIGhhcyBjb21wbGV0ZWQgc3VjY2Vzc2Z1bGx5\n"
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Response ="Successful set config operation"
11
[tcp 0 0 127.0.0.1:8444 127.0.0.1:34442 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51640 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51638 TIME_WAIT tcp 0 0 127.0.0.1:52774 127.0.0.1:8444 ESTABLISHED tcp 0 0 127.0.0.1:8444 127.0.0.1:51626 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51652 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:52774 ESTABLISHED tcp 0 0 127.0.0.1:8444 127.0.0.1:45904 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:45918 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:45924 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:52760 TIME_WAIT ]
9
[tcp 0 0 127.0.0.1:8444 127.0.0.1:34442 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51640 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51638 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51626 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:51652 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:45904 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:45918 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:45924 TIME_WAIT tcp 0 0 127.0.0.1:8444 127.0.0.1:52760 TIME_WAIT ]
--- PASS: TestConnectionClose (0.09s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.098s

Test run finished at 3/7/2023, 5:27:38 PM <

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestGrpcClientConnection$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:41 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:41 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:41 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestGrpcClientConnection
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM DBG Module=openapiart Response="U2V0Q29uZmlnIGhhcyBjb21wbGV0ZWQgc3VjY2Vzc2Z1bGx5\n"
--- PASS: TestGrpcClientConnection (0.00s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.012s

Test run finished at 3/7/2023, 5:27:41 PM <

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestValidVersionCheckHttp$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:44 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:44 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:44 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestValidVersionCheckHttp
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM INF Executing GetVersion Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM DBG Module=openapiart Response ="{\n "api_spec_version": "0.0.1",\n "sdk_version": "0.0.1",\n "app_version": ""\n}"
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Response ="Successful set config operation"
--- PASS: TestValidVersionCheckHttp (0.01s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.016s

Test run finished at 3/7/2023, 5:27:44 PM <

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestInvalidVersionCheckHttp$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:46 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:46 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:46 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestInvalidVersionCheckHttp
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM INF Executing GetVersion Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM DBG Module=openapiart Response ="{\n "api_spec_version": "0.0.1",\n "sdk_version": "0.0.1",\n "app_version": ""\n}"
5:27PM ERR Message="client API spec version '0.2.0' is not semver compatible with server API spec version constraint '0.0.1'" Module=openapiart
--- PASS: TestInvalidVersionCheckHttp (0.01s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.014s

Test run finished at 3/7/2023, 5:27:46 PM <

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestValidVersionCheckGrpc$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:48 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:48 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:48 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestValidVersionCheckGrpc
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM INF Executing GetVersion Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM DBG Module=openapiart Response ="api_spec_version: 0.0.1\napp_version: ""\nsdk_version: 0.0.1\n"
5:27PM DBG Module=openapiart Response="U2V0Q29uZmlnIGhhcyBjb21wbGV0ZWQgc3VjY2Vzc2Z1bGx5\n"
--- PASS: TestValidVersionCheckGrpc (0.01s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.013s

Test run finished at 3/7/2023, 5:27:48 PM <

Running tool: /usr/local/go/bin/go test -timeout 30s -run ^TestInvalidVersionCheckGrpc$ github.com/open-traffic-generator/openapiart/pkg

2023/03/07 17:27:50 MockGrpcServer: Server started and listening on address [::]:40052
2023/03/07 17:27:50 MockGrpcServer: Server subscribed with gRPC Protocol Service
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
2023/03/07 17:27:50 Generated Http Server serving incoming HTTP requests on 127.0.0.1:8444
5:27PM INF Logger Initialized=log Module=openapiart
=== RUN TestInvalidVersionCheckGrpc
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM INF Executing SetConfig Module=openapiart
5:27PM WRN A property in schema PrefixConfig is under review, Information TBD Module=openapiart
5:27PM WRN E property in schema PrefixConfig is deprecated, Information TBD Module=openapiart
5:27PM WRN GObject is deprecated, new schema Jobject to be used Module=openapiart
5:27PM WRN GC property in schema GObject is deprecated, Information TBD Module=openapiart
5:27PM DBG Module=openapiart Request="a: asdf\nb: 12.2\nc: 1\nchecksum_pattern:\n checksum:\n choice: custom\n custom: 64\n generated: unspecified\ne:\n e_a: 1.1\n e_b: 1.2\n m_param1: Mparam1\n m_param2: Mparam2\nf:\n choice: f_b\n f_b: 3\nfull_duplex_100_mb: "2"\ng:\n- choice: g_e\n g_a: a g_a value\n g_b: 6\n g_c: 77.7\n g_e: 3\n g_f: a\nh: true\ni: AQAAAQAAAQE=\nieee_802_1qbb: true\ninteger_pattern:\n integer:\n choice: decrement\n decrement:\n count: 100\n start: 1\n step: 1\nipv4_pattern:\n ipv4:\n choice: decrement\n decrement:\n count: 100\n start: 1.1.1.1\n step: 0.0.0.1\nipv6_pattern:\n ipv6:\n choice: decrement\n decrement:\n count: 100\n start: 3000::1\n step: ::1\nj:\n- choice: j_a\n j_a:\n e_a: 1\n e_b: 2\nk:\n e_object:\n e_a: 77.7\n e_b: 2\n name: An EB name\n f_object:\n choice: f_b\n f_b: 44.32232\nl:\n double: 1.7976931348623157e+308\n float:
100.11\n hex: "0x12"\n integer: 80\n ipv4: 1.1.1.1\n ipv6: 2000::1\n mac: 00:00:00:00:00:0a\n string_param: test\nlevel:\n l1_p1:\n l2_p1:\n l3_p1: test\n l1_p2:\n l4_p1:\n l1_p2:\n l4_p1:\n l1_p1:\n l2_p1:\n l3_p1: l3p1\nlist_of_string_values:\n- first string\n- second string\n- third string\nmac_pattern:\n mac:\n choice: decrement\n decrement:\n count: 100\n start: 00:00:00:00:00:0a\n step: "00:00:00:00:00:01"\nmandatory:\n required_param: required\nrequired_object:\n e_a: 1\n e_b: 2\nresponse: status_200\n"
5:27PM INF Executing GetVersion Module=openapiart
5:27PM INF Logger Initialized=log Module=openapiart
5:27PM DBG Module=openapiart Response ="api_spec_version: 0.0.1\napp_version: ""\nsdk_version: 0.0.1\n"
5:27PM ERR Message="client API spec version '0.2.0' is not semver compatible with server API spec version constraint '0.0.1'" Module=openapiart
--- PASS: TestInvalidVersionCheckGrpc (0.01s)
PASS
ok github.com/open-traffic-generator/openapiart/pkg 0.017s

Test run finished at 3/7/2023, 5:27:50 PM <

@ashutshkumr ashutshkumr added ux Impacts UX priority High Priority and removed go ux sdk gen labels Jul 18, 2023
@Vibaswan Vibaswan assigned Vibaswan and unassigned dipendughosh Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority High Priority ux Impacts UX
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

4 participants