Skip to content

add gnmi_get output test#1808

Merged
lguohan merged 10 commits intosonic-net:masterfrom
pra-moh:add_gnmi_get_out_test
Jul 24, 2020
Merged

add gnmi_get output test#1808
lguohan merged 10 commits intosonic-net:masterfrom
pra-moh:add_gnmi_get_out_test

Conversation

@pra-moh
Copy link
Contributor

@pra-moh pra-moh commented Jun 23, 2020

Description of PR

Run pyclient available on ptfdocker to verify output from gnmi server on sonic duT

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • [ -] Test case(new/improvement)

Approach

What is the motivation for this PR?

This PR to verify gnmi server end to end testing

  1. Change settings for gnmi_server to client_auth=false. This is needed for pyclient to work.
  2. run pyclient on ptfdocker
  3. reset settings to original client_auth=true.

How did you do it?

How did you verify/test it?

pytest logs:

------------------------------------------------------------------------------------ live log setup -------------------------------------------------------------------------------------
23:04:53 INFO __init__.py:loganalyzer:15: Add start marker into DUT syslog
------------------------------------------------------------------------------------- live log call -------------------------------------------------------------------------------------
23:04:54 INFO test_telemetry.py:test_telemetry_ouput:77: start telemetry output testing
23:04:58 INFO test_telemetry.py:test_telemetry_ouput:81: telemetry process restarted. Now run pyclient on ptfdocker

  name: "COUNTERS"
}
elem {
  name: "Ethernet0"
}
The GetResponse is below
-------------------------

{
  "SAI_PORT_STAT_ETHER_STATS_TX_NO_ERRORS": "0",
  "SAI_PORT_STAT_PFC_0_RX_PKTS": "0",
  "SAI_PORT_STAT_IF_OUT_ERRORS": "0",
  "SAI_PORT_STAT_ETHER_TX_OVERSIZE_PKTS": "0",
  "SAI_PORT_STAT_PFC_3_TX_PKTS": "0",
  "SAI_PORT_STAT_PFC_1_TX_PKTS": "0",
  "SAI_PORT_STAT_PFC_5_RX_PKTS": "0",
  "SAI_PORT_STAT_IF_IN_ERRORS": "0",
  "SAI_PORT_STAT_PFC_7_RX_PKTS": "0",
  "SAI_PORT_STAT_IF_IN_DISCARDS": "0",
  "SAI_PORT_STAT_IF_IN_UNKNOWN_PROTOS": "0",
  "SAI_PORT_STAT_PFC_3_RX_PKTS": "0",
  "SAI_PORT_STAT_PAUSE_TX_PKTS": "0",
  "SAI_PORT_STAT_IF_IN_BROADCAST_PKTS": "0",
  "SAI_PORT_STAT_PFC_2_TX_PKTS": "0",
  "SAI_PORT_STAT_IF_OUT_MULTICAST_PKTS": "0",
  "SAI_PORT_STAT_PFC_5_TX_PKTS": "0",
  "SAI_PORT_STAT_ETHER_IN_PKTS_128_TO_255_OCTETS": "0",
  "SAI_PORT_STAT_IF_OUT_BROADCAST_PKTS": "0",
  "SAI_PORT_STAT_PAUSE_RX_PKTS": "0",
  "SAI_PORT_STAT_IF_OUT_DISCARDS": "0",
  "SAI_PORT_STAT_ETHER_RX_OVERSIZE_PKTS": "0",
  "SAI_PORT_STAT_IF_OUT_OCTETS": "0",
  "SAI_PORT_STAT_IF_IN_NON_UCAST_PKTS": "0",
  "SAI_PORT_STAT_PFC_6_RX_PKTS": "0",
  "SAI_PORT_STAT_PFC_1_RX_PKTS": "0",
  "SAI_PORT_STAT_PFC_6_TX_PKTS": "0",
  "SAI_PORT_STAT_PFC_7_TX_PKTS": "0",
  "SAI_PORT_STAT_IF_OUT_UCAST_PKTS": "0",
  "SAI_PORT_STAT_PFC_4_RX_PKTS": "0",
  "SAI_PORT_STAT_IF_IN_UCAST_PKTS": "0",
  "SAI_PORT_STAT_IF_IN_OCTETS": "0",
  "SAI_PORT_STAT_IF_OUT_QLEN": "0",
  "SAI_PORT_STAT_PFC_2_RX_PKTS": "0",
  "SAI_PORT_STAT_IF_OUT_NON_UCAST_PKTS": "0",
  "SAI_PORT_STAT_PFC_4_TX_PKTS": "0",
  "SAI_PORT_STAT_PFC_0_TX_PKTS": "0",
  "SAI_PORT_STAT_IP_IN_UCAST_PKTS": "0",
  "SAI_PORT_STAT_IF_IN_MULTICAST_PKTS": "0"
}
PASSED                                                                                                                                                                            [100%]
----------------------------------------------------------------------------------- live log teardown -----------------------------------------------------------------------------------
23:05:06 INFO __init__.py:loganalyzer:26: Add end marker into DUT syslog

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@lgtm-com
Copy link

lgtm-com bot commented Jun 23, 2020

This pull request introduces 1 alert when merging bcd191c0e94522c79bf7d2de573a119aff007738 into 6025ffb - view on LGTM.com

new alerts:

  • 1 for Syntax error

Copy link

@hui-ma hui-ma left a comment

Choose a reason for hiding this comment

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

can you share test result in the description?

@lgtm-com
Copy link

lgtm-com bot commented Jun 24, 2020

This pull request introduces 2 alerts when merging cba1b45d5d6d0fbd6d3846bbc8c2387f743b63db into ff37238 - view on LGTM.com

new alerts:

  • 2 for Unused local variable

Copy link
Contributor

@lguohan lguohan left a comment

Choose a reason for hiding this comment

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

@lgtm-com
Copy link

lgtm-com bot commented Jul 17, 2020

This pull request introduces 1 alert when merging 8308e58d79e307a4445af72714c2bb89a66dd84d into b22f3cf - view on LGTM.com

new alerts:

  • 1 for Unused local variable

@lguohan
Copy link
Contributor

lguohan commented Jul 22, 2020

can you resolve the conflict?

@lguohan
Copy link
Contributor

lguohan commented Jul 23, 2020

why do i still see conflicts?

@pra-moh pra-moh force-pushed the add_gnmi_get_out_test branch from 4b6df5a to a545c42 Compare July 23, 2020 19:58
@lgtm-com
Copy link

lgtm-com bot commented Jul 23, 2020

This pull request introduces 1 alert when merging a545c42 into a8277f5 - view on LGTM.com

new alerts:

  • 1 for Unused local variable

Copy link
Contributor

@jleveque jleveque left a comment

Choose a reason for hiding this comment

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

Please fix LGTM alert.

@pra-moh
Copy link
Contributor Author

pra-moh commented Jul 23, 2020

Please fix LGTM alert.

Fixed.

@pra-moh pra-moh closed this Jul 23, 2020
@pra-moh pra-moh reopened this Jul 23, 2020
@jleveque jleveque self-requested a review July 23, 2020 20:52
@lguohan lguohan merged commit a056be3 into sonic-net:master Jul 24, 2020
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
sonic-swss commits

5fbd113 [Flex-counters] Fix the delay of flex counters flow to prevent infinite loop (sonic-net#1899)
dc685b6 [portsorch] Add an extra check before setting oper speed to APPL_DB (sonic-net#1885)
ceef728 Update port_rates & rif_rates lua scripts to convert poll_interval to MS (sonic-net#1855)

sonic-utilities commits

3160753 [ci]: Support PR coverage (sonic-net#1806)
3316fdb fix wrong code indent in sfputil (sonic-net#1808)
c33e3a8 [config reload] Fix config reload failure due to sonic.target job cancellation (sonic-net#1814)
4f7e107 [portconfig] Validate duplicate speed value and interface type value (sonic-net#1745)
59817e2 [warm-reboot] Add new preboot health check: verify database integrity (sonic-net#1785)
bf2ff3c [portstat, intfstat] added rates and utilization (sonic-net#1750)
3bf962c [show][platform] Revise chassis info fallback to only fall back on pmon crash (sonic-net#1751)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants