Open ziyue-101 opened 1 month ago
/cc @haiyanmeng
/assign @justinsb
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from justinsb. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Change description
Add stepwise tests to cover the scenario where a user sets all configsync fields and then unset those. The golden KRM and http logs are generated using the existing DCL controller.
Steps I took: I used
E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock WRITE_GOLDEN_OUTPUT=1 go test -test.count=1 -timeout 600s -v ./tests/e2e -run 'TestE2EScript/scenarios/fields/gkehubfeaturemembership' | tee log
to generate golden files.I then used
E2E_KUBE_TARGET=envtest RUN_E2E=1 E2E_GCP_TARGET=mock GOLDEN_OBJECT_CHECKS=1 GOLDEN_REQUEST_CHECKS=1 go test -test.count=1 -timeout 600s -v ./tests/e2e -run TestE2EScript/scenarios/fields/gkehubfeaturemembership 2>&1 | tee log
to verifyNote to reviewer(s): review the commit 'Generate set-unset golden output'
Tests you have done
make ready-pr
to ensure this PR is ready for review.