Add GCU test cases for k8s table#11458
Conversation
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
| delete_checkpoint(duthost) | ||
|
|
||
|
|
||
| def get_k8s_runningconfig(duthost): |
There was a problem hiding this comment.
Any other check method other than running config?
The success of apply-patch operation should guarantee the CONFIG_DB update.
Is there a show command such as show k8s server?
There was a problem hiding this comment.
Thanks for this comment, have add 'show kube server' related validation.
|
|
||
|
|
||
| test_data_1 = { | ||
| 0: (K8SEMPTYTOHALFPATCH, K8SHALFCONFIG, EMPTYK8STABLE, SUCCEED), |
There was a problem hiding this comment.
Thanks for this comment, fixed.
|
hi @lixiaoyuner could you run test with 202305 image with this one? Would like to avoid regression for 202305 branch at this stage. |
Have tested with 202305 latest image, it's good to run this test. And also tested with 202311 latest image, it's good to run this test. |
## Description of PR Summary: Fixes # (issue) Testcase of k8s config for generic updater apply-patch ### Type of change - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [x] Test case(new/improvement) ## Approach #### What is the motivation for this PR? This PR is to verify the usage of 'config apply-patch' works for k8s config #### How did you do it? Add k8s config to dut and check if config changes as expected #### How did you verify/test it? Run test of sonic-mgmt/tests/generic_config_updater/test_kubernetes_config.py on KVM
|
Cherry-pick PR to 202305: #11901 |
## Description of PR Summary: Fixes # (issue) Testcase of k8s config for generic updater apply-patch ### Type of change - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [x] Test case(new/improvement) ## Approach #### What is the motivation for this PR? This PR is to verify the usage of 'config apply-patch' works for k8s config #### How did you do it? Add k8s config to dut and check if config changes as expected #### How did you verify/test it? Run test of sonic-mgmt/tests/generic_config_updater/test_kubernetes_config.py on KVM
|
Cherry-pick PR to 202311: #11902 |
## Description of PR Summary: Fixes # (issue) Testcase of k8s config for generic updater apply-patch ### Type of change - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [x] Test case(new/improvement) ## Approach #### What is the motivation for this PR? This PR is to verify the usage of 'config apply-patch' works for k8s config #### How did you do it? Add k8s config to dut and check if config changes as expected #### How did you verify/test it? Run test of sonic-mgmt/tests/generic_config_updater/test_kubernetes_config.py on KVM
## Description of PR Summary: Fixes # (issue) Testcase of k8s config for generic updater apply-patch ### Type of change - [ ] Bug fix - [ ] Testbed and Framework(new/improvement) - [x] Test case(new/improvement) ## Approach #### What is the motivation for this PR? This PR is to verify the usage of 'config apply-patch' works for k8s config #### How did you do it? Add k8s config to dut and check if config changes as expected #### How did you verify/test it? Run test of sonic-mgmt/tests/generic_config_updater/test_kubernetes_config.py on KVM
|
Hi @lixiaoyuner , with this new testcase on a KUBERNETES enabled build, we observed following loganalyzer errors: I see the testcase using the hostname 'k8svip.ap.gbl'. What is the expectation with the test environment? Thanks! |
@anamehra , actually it's a fake hostname, not a real endpoint. For this case, just want to test the GCU command to update k8s table config. And there is PR to ignore the error, #12849. Any more concerns about this? |
Description of PR
Summary:
Fixes # (issue)
Testcase of k8s config for generic updater apply-patch
ADO: 26662927
Type of change
Back port request
Approach
What is the motivation for this PR?
This PR is to verify the usage of 'config apply-patch' works for k8s config
How did you do it?
Add k8s config to dut and check if config changes as expected
How did you verify/test it?
Run test of sonic-mgmt/tests/generic_config_updater/test_kubernetes_config.py on KVM
Supported testbed topology if it's a new test case?
Documentation