Skip to content

[Platform API][Chassis] Compare applicable data against values from platform.json#2209

Merged
jleveque merged 12 commits intosonic-net:masterfrom
jleveque:enhance_chassis_tests
Sep 23, 2020
Merged

[Platform API][Chassis] Compare applicable data against values from platform.json#2209
jleveque merged 12 commits intosonic-net:masterfrom
jleveque:enhance_chassis_tests

Conversation

@jleveque
Copy link
Contributor

@jleveque jleveque commented Sep 12, 2020

Summary:

For chassis tests where known facts are available in the platform.json file, compare actual values against those facts

Also update to handle both str and unicode string types in Python 2.

Type of change

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

Approach

What is the motivation for this PR?

To improve the quality of the Chassis platform API test

How did you do it?

For chassis tests where known facts are available in the platform.json file, compare actual values against those facts

How did you verify/test it?

Run Chassis tests on a device with a populated platform.json present

Any platform specific information?

Platform must have a populated platform.json present

@lgtm-com

This comment has been minimized.

@lgtm-com

This comment has been minimized.

jleveque added a commit that referenced this pull request Sep 14, 2020
…n Python 2 (#2210)

Python 2 has two string types, `str` and `unicode`. Both share a `basestring` superclass. In Python 3, there is only one `str` type. This patch allows the platform API tests to consider a string type valid whether it is ASCII (`str`) or Unicode in Python 2. It also future-proofs the inevitable transition to Python 3 by checking the executing Python version.

Note that test_chassis.py is not modified here, as the change is being applied as part of #2209
@lgtm-com

This comment has been minimized.

@jleveque
Copy link
Contributor Author

Retest vsimage please

@jleveque
Copy link
Contributor Author

Retest this please

@jleveque jleveque merged commit 91a8222 into sonic-net:master Sep 23, 2020
@jleveque jleveque deleted the enhance_chassis_tests branch September 23, 2020 03:27
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
```
323dc34 [neighsyncd] increase neighsyncd timeout (sonic-net#2209)
7f99941 Remove redundant and problematic code to skip "pool" field in buffer profile handling (sonic-net#2197)
f3a0feb [Vxlanmgr] vnet netdev cleanup during config reload fix (sonic-net#2191)
13ccaba Fix issue: sometimes PFC WD unable to create zero buffer pool (sonic-net#2185)
```

Signed-off-by: Stepan Blyschak <stepanb@nvidia.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
5bb99c7 Validate LAG has members before mirror session create (sonic-net#2130)
ec6c8af [vxlan] Remove tunnel map objects on VNET tunnel removal (sonic-net#2150)
7e7db19 [BFD]Registering BFD state change callback during session creation (sonic-net#2202)
618fe07 [VNET]Fixing nexthop group delete during route change (sonic-net#2198)
91b66df [portsorch]: Prevent LAG member configuration when port has active ACL binding (sonic-net#2165)
29de9d0 Remove redundant and problematic code to skip "pool" field in buffer profile handling (sonic-net#2197)
ded0b45 [PBH] Implement Edit Flows (sonic-net#2169)
2ee0f49 [neighsyncd] increase neighsyncd timeout (sonic-net#2209)
a0160c0 [QosOrch] The notifications cannot be drained in QosOrch in case the first one needs to retry (sonic-net#2206)
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
[neighsyncd] increase neighsyncd timeout (sonic-net#2209)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants