Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

SONiC Management Framework Release 1.0 #23

Merged
merged 114 commits into from
Dec 23, 2019

Conversation

PrabhuSreenivasan
Copy link
Contributor

SONiC Management Framework Release 1.0

  • Combined development from Broadcom and Dell
  • Enhancement on top of existing SONiC Telemetry feature
  • Support YANG Based data modeling
  • Adds Get, Set, Capability and Subscription support for YANG based models
  • Makes use of Management Framework Translation library (including CVL)
  • written in GO programming language

rupesh-k and others added 30 commits May 30, 2019 09:57
…oadcom_sonic branch

Change-Id: I24c1c67ed275a5d01e32d568ef9c8d57da424d9c
The Debian files attempt to run make check for the gNMI server, however,
it fails on a build machine, because it expects the Redis server to be
available and listening on localhost port 6379.

For now, the result of the test is ignored, and we have to find a way to
fix this so that the tests work even on a build machine.
Merge PoC changes to master
Add back install and other targets to fix deb package
Add gnmi set and get client to build
trigger building ocbinds file in translib, add gnmi_clients
@dzhangalibaba
Copy link
Contributor

dzhangalibaba commented Dec 17, 2019

@dzhangalibaba Please do let us know your thoughts on the above plan.

Sounds good. As I said before, two main stuff in this PR:
1 . if the "go module" is taken care in sonic-telemetry, that's good
2. try if any changes are need with the latest multi DB changes, most likely you don't need to change anything, just make sure telemetry works with the latest code base and pass UT.

other stuff like converting the mgmt-framework to use go modules and making the dependency as library could be done in following PR later.

@anand-kumar-subramanian
Copy link
Contributor

@dzhangalibaba We will take care of the two things in this PR itself.

@seiferteric
Copy link
Contributor

I have completed the conversion for our telemetry to use go modules. I also restored the location of all the files, so you can see only 19 files are reporting as changed now. I tested everything is building correctly with go modules. I will post tests results shortly.

@seiferteric
Copy link
Contributor

The tests have exact json output matching, some of your original tests are failing because there are new fields in the interfaces for example. Are these tests passing for you currently?

@dzhangalibaba
Copy link
Contributor

The tests have exact json output matching, some of your original tests are failing because there are new fields in the interfaces for example. Are these tests passing for you currently?

@seiferteric Yes, I got all cases passed . Below output for your reference.

dzhang@b7ec6ca60e82:/sonic/sonic-telemetry$ ../test_telemetry_MS_start_redis.sh
dzhang@b7ec6ca60e82:/sonic/sonic-telemetry$ make check
sudo mkdir -p /var/run/redis/sonic-db/
sudo cp ./testdata/database_config.json /var/run/redis/sonic-db/
/usr/local/go/bin/go test -v github.com/Azure/sonic-telemetry/gnmi_server
go: finding github.com/jipanyang/gnmi/client/gnmi latest
go: finding github.com/jipanyang/gnmi/client latest
go: finding github.com/jipanyang/gnmi latest
go: downloading github.com/jipanyang/gnmi v0.0.0-20180820232453-cb4d464fa018
=== RUN   TestGnmiGet
=== RUN   TestGnmiGet/Test_non-existing_path_Target
=== RUN   TestGnmiGet/Test_empty_path_target
=== RUN   TestGnmiGet/Get_valid_but_non-existing_node
=== RUN   TestGnmiGet/Get_COUNTERS_PORT_NAME_MAP
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68_Pfcwd
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_Pfcwd
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*_Pfcwd
--- PASS: TestGnmiGet (2.32s)
    --- PASS: TestGnmiGet/Test_non-existing_path_Target (0.02s)
    --- PASS: TestGnmiGet/Test_empty_path_target (0.00s)
    --- PASS: TestGnmiGet/Get_valid_but_non-existing_node (0.00s)
    --- PASS: TestGnmiGet/Get_COUNTERS_PORT_NAME_MAP (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68 (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68_Pfcwd (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1 (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_Pfcwd (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet* (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet*_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet*_Pfcwd (0.01s)
=== RUN   TestGnmiSubscribe
=== RUN   TestGnmiSubscribe/stream_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_test_field_field
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet68_with_new_test_field_field
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_table_key_Ethernet68/1_with_new_test_field_field
=== RUN   TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value
=== RUN   TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/Pfcwd_with_update_of_field_value
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_update_of_field_value
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*_with_new_test_field_field_on_Ethernet68
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_update
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/Pfcwd_with_field_value_update
=== RUN   TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_field_test_field
=== RUN   TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_test_field_delete
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Pfcwd_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_Ethernet*_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_field_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_field_Etherenet*/Pfcwd_with_Ethernet68:3/PFC_WD_QUEUE_STATS_DEADLOCK_DETECTED_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet*/Queues
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change
--- PASS: TestGnmiSubscribe (74.63s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_test_field_field (2.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet68_with_new_test_field_field (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_table_key_Ethernet68/1_with_new_test_field_field (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/Pfcwd_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*_with_new_test_field_field_on_Ethernet68 (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_update (2.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/Pfcwd_with_field_value_update (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_field_test_field (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_test_field_delete (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Pfcwd_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_Ethernet*_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change (2.01s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_field_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change (2.01s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_field_Etherenet*/Pfcwd_with_Ethernet68:3/PFC_WD_QUEUE_STATS_DEADLOCK_DETECTED_field_value_change (2.02s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet*/Queues (1.06s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change (2.01s)
PASS
ok  	github.com/Azure/sonic-telemetry/gnmi_server	76.958s
/usr/local/go/bin/go test -v github.com/Azure/sonic-telemetry/dialout/dialout_client
go: finding github.com/google/gnxi/utils latest
go: finding github.com/google/gnxi latest
go: downloading github.com/google/gnxi v0.0.0-20191016182648-6697a080bc2d
=== RUN   TestGNMIDialOutPublish
=== RUN   TestGNMIDialOutPublish/DialOut_to_first_collector_in_stream_mode_and_synced
=== RUN   TestGNMIDialOutPublish/DialOut_to_second_collector_in_stream_mode_upon_failure_of_first_collector
--- PASS: TestGNMIDialOutPublish (15.98s)
    --- PASS: TestGNMIDialOutPublish/DialOut_to_first_collector_in_stream_mode_and_synced (0.50s)
    --- PASS: TestGNMIDialOutPublish/DialOut_to_second_collector_in_stream_mode_upon_failure_of_first_collector (7.51s)
PASS
ok  	github.com/Azure/sonic-telemetry/dialout/dialout_client	15.982s 

@seiferteric
Copy link
Contributor

seiferteric commented Dec 19, 2019

Okay, the issue is that if I run the existing tests on a switch, the DB is not in a pristine state, so the output will have extra data. On my build host, all of the existing tests pass, but our new tests depend on being on the switch, so they fail on the build host. Below you can see all of the existing tests passing and our new tests failing because it is run on the build host:

eseifert@gandalf:~/work/sonic/sonic-buildimage/src/sonic-telemetry$ make check 
sudo mkdir -p /var/run/redis/sonic-db/
[sudo] password for eseifert: 
sudo cp ./testdata/database_config.json /var/run/redis/sonic-db/
sudo mkdir -p /usr/models/yang || true
sudo find /home/eseifert/work/sonic/sonic-buildimage/src/sonic-mgmt-framework/models -name '*.yang' -exec cp {} /usr/models/yang/ \;
/usr/local/go/bin/go test -mod=vendor -v github.com/Azure/sonic-telemetry/gnmi_server
Yang model List: [sonic-acl.yang sonic-common.yang sonic-extension.yang sonic-extensions.yang sonic-interface.yang sonic-port.yang]
ERROR: logging before flag.Parse: I1219 14:09:04.485068    6147 xspec.go:284] Module name(sonic-interface)
ERROR: logging before flag.Parse: I1219 14:09:04.485111    6147 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-interface:[INTERFACE]]
ERROR: logging before flag.Parse: I1219 14:09:04.485126    6147 xspec.go:284] Module name(sonic-port)
ERROR: logging before flag.Parse: I1219 14:09:04.485132    6147 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-interface:[INTERFACE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 14:09:04.485150    6147 xspec.go:284] Module name(sonic-acl)
ERROR: logging before flag.Parse: I1219 14:09:04.485156    6147 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE] sonic-interface:[INTERFACE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 14:09:04.485188    6147 xspec.go:284] Module name(sonic-common)
ERROR: logging before flag.Parse: I1219 14:09:04.485196    6147 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE] sonic-common:[operation] sonic-interface:[INTERFACE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 14:09:04.486961    6147 app_interface.go:82] Registering for path =/openconfig-acl:acl
ERROR: logging before flag.Parse: I1219 14:09:04.486972    6147 app_interface.go:82] Registering for path =/sonic-
ERROR: logging before flag.Parse: I1219 14:09:04.486977    6147 app_interface.go:82] Registering for path =*
ERROR: logging before flag.Parse: I1219 14:09:04.486999    6147 intf_app.go:93] Init called for INTF module
ERROR: logging before flag.Parse: I1219 14:09:04.487008    6147 app_interface.go:82] Registering for path =/openconfig-interfaces:interfaces
ERROR: logging before flag.Parse: I1219 14:09:04.487013    6147 lldp_app.go:61] Init called for LLDP modules module
ERROR: logging before flag.Parse: I1219 14:09:04.487018    6147 app_interface.go:82] Registering for path =/openconfig-lldp:lldp
ERROR: logging before flag.Parse: I1219 14:09:04.487031    6147 pfm_app.go:44] Init called for Platform module
ERROR: logging before flag.Parse: I1219 14:09:04.487038    6147 app_interface.go:82] Registering for path =/openconfig-platform:components
ERROR: logging before flag.Parse: I1219 14:09:04.531228    6147 sys_app.go:47] SysApp: Init called for System module
ERROR: logging before flag.Parse: I1219 14:09:04.531256    6147 app_interface.go:82] Registering for path =/openconfig-system:system
=== RUN   TestGnmiSet
=== RUN   TestGnmiSet/Set_OC_Interface_MTU
=== RUN   TestGnmiSet/Set_OC_Interface_IP
=== RUN   TestGnmiSet/Delete_OC_Interface_IP
--- PASS: TestGnmiSet (4.35s)
    --- PASS: TestGnmiSet/Set_OC_Interface_MTU (0.02s)
    --- PASS: TestGnmiSet/Set_OC_Interface_IP (0.00s)
    --- PASS: TestGnmiSet/Delete_OC_Interface_IP (0.00s)
=== RUN   TestGnmiGet
=== RUN   TestGnmiGet/Test_non-existing_path_Target
E1219 14:09:14.644170    6147 app_interface.go:143] Unsupported path=/MyCounters
=== RUN   TestGnmiGet/Test_empty_path_target
=== RUN   TestGnmiGet/Get_valid_but_non-existing_node
=== RUN   TestGnmiGet/Get_COUNTERS_PORT_NAME_MAP
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68_Pfcwd
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_Pfcwd
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*_Pfcwd
--- PASS: TestGnmiGet (5.78s)
    --- PASS: TestGnmiGet/Test_non-existing_path_Target (0.02s)
    --- PASS: TestGnmiGet/Test_empty_path_target (0.00s)
    --- PASS: TestGnmiGet/Get_valid_but_non-existing_node (0.01s)
    --- PASS: TestGnmiGet/Get_COUNTERS_PORT_NAME_MAP (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68 (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68_Pfcwd (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1 (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_Pfcwd (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet* (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet*_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet*_Pfcwd (0.00s)
=== RUN   TestGnmiGetTranslib
=== RUN   TestGnmiGetTranslib/Get_OC_Interfaces
=== RUN   TestGnmiGetTranslib/Get_OC_Interface
=== RUN   TestGnmiGetTranslib/Get_OC_Interface_admin-status
=== RUN   TestGnmiGetTranslib/Get_OC_Interface_ifindex
=== RUN   TestGnmiGetTranslib/Get_OC_Interface_mtu
--- PASS: TestGnmiGetTranslib (8.81s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interfaces (0.18s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface (0.00s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface_admin-status (0.00s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface_ifindex (0.00s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface_mtu (0.00s)
=== RUN   TestGnmiSubscribe
=== RUN   TestGnmiSubscribe/stream_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_test_field_field
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet68_with_new_test_field_field
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_table_key_Ethernet68/1_with_new_test_field_field
=== RUN   TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value
=== RUN   TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/Pfcwd_with_update_of_field_value
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_update_of_field_value
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*_with_new_test_field_field_on_Ethernet68
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_update
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/Pfcwd_with_field_value_update
=== RUN   TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_field_test_field
=== RUN   TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_test_field_delete
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Pfcwd_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_Ethernet*_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_field_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_field_Etherenet*/Pfcwd_with_Ethernet68:3/PFC_WD_QUEUE_STATS_DEADLOCK_DETECTED_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet*/Queues
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change
--- PASS: TestGnmiSubscribe (74.62s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_test_field_field (2.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet68_with_new_test_field_field (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_table_key_Ethernet68/1_with_new_test_field_field (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/Pfcwd_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*_with_new_test_field_field_on_Ethernet68 (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_update (2.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/Pfcwd_with_field_value_update (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_field_test_field (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_test_field_delete (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Pfcwd_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_Ethernet*_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change (2.02s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_field_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change (2.01s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_field_Etherenet*/Pfcwd_with_Ethernet68:3/PFC_WD_QUEUE_STATS_DEADLOCK_DETECTED_field_value_change (2.02s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet*/Queues (1.06s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change (2.01s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change (2.01s)
=== RUN   TestCapabilities
--- PASS: TestCapabilities (2.32s)
PASS
ok  	github.com/Azure/sonic-telemetry/gnmi_server	96.020s
/usr/local/go/bin/go test -mod=vendor -v github.com/Azure/sonic-telemetry/dialout/dialout_client
Yang model List: [sonic-acl.yang sonic-common.yang sonic-extension.yang sonic-extensions.yang sonic-interface.yang sonic-port.yang]
ERROR: logging before flag.Parse: I1219 14:10:42.298587    6350 xspec.go:284] Module name(sonic-common)
ERROR: logging before flag.Parse: I1219 14:10:42.298627    6350 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-common:[operation]]
ERROR: logging before flag.Parse: I1219 14:10:42.298637    6350 xspec.go:284] Module name(sonic-port)
ERROR: logging before flag.Parse: I1219 14:10:42.298645    6350 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-common:[operation] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 14:10:42.298667    6350 xspec.go:284] Module name(sonic-interface)
ERROR: logging before flag.Parse: I1219 14:10:42.298673    6350 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-common:[operation] sonic-interface:[INTERFACE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 14:10:42.298686    6350 xspec.go:284] Module name(sonic-acl)
ERROR: logging before flag.Parse: I1219 14:10:42.298696    6350 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE] sonic-common:[operation] sonic-interface:[INTERFACE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 14:10:42.300554    6350 app_interface.go:82] Registering for path =/openconfig-acl:acl
ERROR: logging before flag.Parse: I1219 14:10:42.300567    6350 app_interface.go:82] Registering for path =/sonic-
ERROR: logging before flag.Parse: I1219 14:10:42.300571    6350 app_interface.go:82] Registering for path =*
ERROR: logging before flag.Parse: I1219 14:10:42.300579    6350 intf_app.go:93] Init called for INTF module
ERROR: logging before flag.Parse: I1219 14:10:42.300583    6350 app_interface.go:82] Registering for path =/openconfig-interfaces:interfaces
ERROR: logging before flag.Parse: I1219 14:10:42.300591    6350 lldp_app.go:61] Init called for LLDP modules module
ERROR: logging before flag.Parse: I1219 14:10:42.300596    6350 app_interface.go:82] Registering for path =/openconfig-lldp:lldp
ERROR: logging before flag.Parse: I1219 14:10:42.300601    6350 pfm_app.go:44] Init called for Platform module
ERROR: logging before flag.Parse: I1219 14:10:42.300608    6350 app_interface.go:82] Registering for path =/openconfig-platform:components
ERROR: logging before flag.Parse: I1219 14:10:42.348172    6350 sys_app.go:47] SysApp: Init called for System module
ERROR: logging before flag.Parse: I1219 14:10:42.348195    6350 app_interface.go:82] Registering for path =/openconfig-system:system
=== RUN   TestGNMIDialOutPublish
=== RUN   TestGNMIDialOutPublish/DialOut_to_first_collector_in_stream_mode_and_synced
=== RUN   TestGNMIDialOutPublish/DialOut_to_second_collector_in_stream_mode_upon_failure_of_first_collector
--- PASS: TestGNMIDialOutPublish (18.26s)
    --- PASS: TestGNMIDialOutPublish/DialOut_to_first_collector_in_stream_mode_and_synced (0.50s)
    --- PASS: TestGNMIDialOutPublish/DialOut_to_second_collector_in_stream_mode_upon_failure_of_first_collector (7.50s)
PASS
ok  	github.com/Azure/sonic-telemetry/dialout/dialout_client	18.380s

@dzhangalibaba
Copy link
Contributor

we should make new test cases passed on build host as well

@seiferteric
Copy link
Contributor

@dzhangalibaba with my latest commit, all tests are passing.

eseifert@gandalf:~/work/sonic/sonic-buildimage/src/sonic-telemetry$ CVL_SCHEMA_PATH=$PWD/../sonic-mgmt-framework/src/cvl/schema go test -mod=vendor -v github.com/Azure/sonic-telemetry/gnmi_server
Yang model List: [sonic-acl.yang sonic-common.yang sonic-extension.yang sonic-extensions.yang sonic-interface.yang sonic-port.yang]
ERROR: logging before flag.Parse: I1219 12:55:37.589062   19132 xspec.go:284] Module name(sonic-acl)
ERROR: logging before flag.Parse: I1219 12:55:37.589109   19132 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE]]
ERROR: logging before flag.Parse: I1219 12:55:37.589156   19132 xspec.go:284] Module name(sonic-port)
ERROR: logging before flag.Parse: I1219 12:55:37.589163   19132 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 12:55:37.589194   19132 xspec.go:284] Module name(sonic-common)
ERROR: logging before flag.Parse: I1219 12:55:37.589203   19132 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE] sonic-common:[operation] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 12:55:37.589226   19132 xspec.go:284] Module name(sonic-interface)
ERROR: logging before flag.Parse: I1219 12:55:37.589232   19132 xspec.go:261] xDbSpecOrdTblMap after appending map[sonic-acl:[ACL_TABLE ACL_RULE] sonic-common:[operation] sonic-interface:[INTERFACE] sonic-port:[PORT]]
ERROR: logging before flag.Parse: I1219 12:55:37.590914   19132 app_interface.go:82] Registering for path =/openconfig-acl:acl
ERROR: logging before flag.Parse: I1219 12:55:37.590924   19132 app_interface.go:82] Registering for path =/sonic-
ERROR: logging before flag.Parse: I1219 12:55:37.590930   19132 app_interface.go:82] Registering for path =*
ERROR: logging before flag.Parse: I1219 12:55:37.590948   19132 intf_app.go:93] Init called for INTF module
ERROR: logging before flag.Parse: I1219 12:55:37.590956   19132 app_interface.go:82] Registering for path =/openconfig-interfaces:interfaces
ERROR: logging before flag.Parse: I1219 12:55:37.590961   19132 lldp_app.go:61] Init called for LLDP modules module
ERROR: logging before flag.Parse: I1219 12:55:37.590966   19132 app_interface.go:82] Registering for path =/openconfig-lldp:lldp
ERROR: logging before flag.Parse: I1219 12:55:37.590972   19132 pfm_app.go:44] Init called for Platform module
ERROR: logging before flag.Parse: I1219 12:55:37.590990   19132 app_interface.go:82] Registering for path =/openconfig-platform:components
ERROR: logging before flag.Parse: I1219 12:55:37.631208   19132 sys_app.go:47] SysApp: Init called for System module
ERROR: logging before flag.Parse: I1219 12:55:37.631237   19132 app_interface.go:82] Registering for path =/openconfig-system:system
=== RUN   TestGnmiSet
=== RUN   TestGnmiSet/Set_OC_Interface_MTU
=== RUN   TestGnmiSet/Set_OC_Interface_IP
=== RUN   TestGnmiSet/Delete_OC_Interface_IP
--- PASS: TestGnmiSet (1.47s)
    --- PASS: TestGnmiSet/Set_OC_Interface_MTU (0.03s)
    --- PASS: TestGnmiSet/Set_OC_Interface_IP (0.00s)
    --- PASS: TestGnmiSet/Delete_OC_Interface_IP (0.00s)
=== RUN   TestGnmiGet
=== RUN   TestGnmiGet/Test_non-existing_path_Target
E1219 12:55:43.939423   19132 app_interface.go:143] Unsupported path=/MyCounters
=== RUN   TestGnmiGet/Test_empty_path_target
=== RUN   TestGnmiGet/Get_valid_but_non-existing_node
=== RUN   TestGnmiGet/Get_COUNTERS_PORT_NAME_MAP
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet68_Pfcwd
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_Pfcwd
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*_SAI_PORT_STAT_PFC_7_RX_PKTS
=== RUN   TestGnmiGet/get_COUNTERS:Ethernet*_Pfcwd
--- PASS: TestGnmiGet (4.87s)
    --- PASS: TestGnmiGet/Test_non-existing_path_Target (0.02s)
    --- PASS: TestGnmiGet/Test_empty_path_target (0.00s)
    --- PASS: TestGnmiGet/Get_valid_but_non-existing_node (0.00s)
    --- PASS: TestGnmiGet/Get_COUNTERS_PORT_NAME_MAP (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68 (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet68_Pfcwd (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1 (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS_(use_vendor_alias):Ethernet68/1_Pfcwd (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet* (0.01s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet*_SAI_PORT_STAT_PFC_7_RX_PKTS (0.00s)
    --- PASS: TestGnmiGet/get_COUNTERS:Ethernet*_Pfcwd (0.01s)
=== RUN   TestGnmiGetTranslib
=== RUN   TestGnmiGetTranslib/Get_OC_Interfaces
=== RUN   TestGnmiGetTranslib/Get_OC_Interface
=== RUN   TestGnmiGetTranslib/Get_OC_Interface_admin-status
=== RUN   TestGnmiGetTranslib/Get_OC_Interface_ifindex
=== RUN   TestGnmiGetTranslib/Get_OC_Interface_mtu
--- PASS: TestGnmiGetTranslib (2.29s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interfaces (0.17s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface (0.00s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface_admin-status (0.00s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface_ifindex (0.00s)
    --- PASS: TestGnmiGetTranslib/Get_OC_Interface_mtu (0.00s)
=== RUN   TestGnmiSubscribe
=== RUN   TestGnmiSubscribe/stream_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_test_field_field
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet68_with_new_test_field_field
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_table_key_Ethernet68/1_with_new_test_field_field
=== RUN   TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value
=== RUN   TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/Pfcwd_with_update_of_field_value
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_update_of_field_value
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*_with_new_test_field_field_on_Ethernet68
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_update
=== RUN   TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/Pfcwd_with_field_value_update
=== RUN   TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_field_test_field
=== RUN   TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_test_field_delete
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Pfcwd_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_Ethernet*_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_field_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_table_key_field_Etherenet*/Pfcwd_with_Ethernet68:3/PFC_WD_QUEUE_STATS_DEADLOCK_DETECTED_field_value_change
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet*/Queues
=== RUN   TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change
=== RUN   TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change
--- PASS: TestGnmiSubscribe (76.28s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_test_field_field (2.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet68_with_new_test_field_field (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_table_key_Ethernet68/1_with_new_test_field_field (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_COUNTERS/Ethernet68/Pfcwd_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_stream_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_update_of_field_value (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*_with_new_test_field_field_on_Ethernet68 (3.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_update (2.00s)
    --- PASS: TestGnmiSubscribe/stream_query_for_table_key_Ethernet*/Pfcwd_with_field_value_update (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_new_field_test_field (2.01s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_COUNTERS_PORT_NAME_MAP_with_test_field_delete (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/SAI_PORT_STAT_PFC_7_RX_PKTS_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Pfcwd_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/[Ethernet68/1]/Pfcwd_with_field_value_change (2.00s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_Ethernet*_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change (2.02s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_field_Ethernet*/SAI_PORT_STAT_PFC_7_RX_PKTS_with_Ethernet68/SAI_PORT_STAT_PFC_7_RX_PKTS_field_value_change (2.01s)
    --- PASS: TestGnmiSubscribe/poll_query_for_table_key_field_Etherenet*/Pfcwd_with_Ethernet68:3/PFC_WD_QUEUE_STATS_DEADLOCK_DETECTED_field_value_change (2.02s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet*/Queues (1.05s)
    --- PASS: TestGnmiSubscribe/poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change (2.01s)
    --- PASS: TestGnmiSubscribe/(use_vendor_alias)_poll_query_for_COUNTERS/Ethernet68/Queues_with_field_value_change (2.01s)
=== RUN   TestCapabilities
--- PASS: TestCapabilities (5.76s)
PASS
ok  	github.com/Azure/sonic-telemetry/gnmi_server	90.791s

@seiferteric
Copy link
Contributor

Here is the build and test output.
output.txt

@renukamanavalan
Copy link

retest this please.

@seiferteric
Copy link
Contributor

retest this please.

output.txt
@renukamanavalan Here you go.

@renukamanavalan
Copy link

Build can't succeed until this PR & corresponding buildimage PR #3488 gets checked-in, due to cross-dependencies.

Hence submitting to unblock.

@twtseng-tim
Copy link

Hi,@PrabhuSreenivasan and @anand-kumar-subramanian
According to SONiC Management Framework HLD document, the GNMI should be verified by some ACL tests, but I can not find those tests in gnmi_server/server_test.go, where should I look for those tests?

/usr/local/go/bin/go test -v github.com/Azure/sonic-telemetry/dialout/dialout_client
sudo mkdir -p /usr/models/yang || true
sudo find $(GO_MGMT_PATH)/models -name '*.yang' -exec cp {} /usr/models/yang/ \;
-$(GO) test -mod=vendor -v github.com/Azure/sonic-telemetry/gnmi_server
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why ignore the test failure? There is an issue to track https://github.com/Azure/sonic-telemetry/issues/110

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.