-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(api): refactor e2e label and annotation test case #515
base: test/api/resource-deletion-step-in-e2e-tests
Are you sure you want to change the base?
test(api): refactor e2e label and annotation test case #515
Conversation
Signed-off-by: Roman Sysoev <[email protected]>
…/api/refactor-e2e-label-and-annotation
Is it "Label and Annotation test case is now a part of E2E tests workflow again."? And, shouldn't we unlock this test for |
resources: | ||
- ns.yaml | ||
- vi | ||
- overlays/vm-labal-annotation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in the directory name: vm-label-annotation
kubectl.Delete(kc.DeleteOptions{ | ||
Filename: []string{vmManifest}, | ||
FilenameOption: kc.Filename, | ||
Context("When resources are applied:", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
":" is not necessary in context description
Describe("Annotating", func() { | ||
Context(fmt.Sprintf("When virtual machines in %s phase:", PhaseRunning), func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is only one Context in this Describe. It seems more convenient to merge them into single Context:
Context(fmt.Sprintf("Annotate VirtualMachines in %s phase", PhaseRunning), func() ...
Context("When test is complited:", func() { | ||
It("tries to delete used resources", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Context("When test is complited:", func() { | |
It("tries to delete used resources", func() { | |
Context("When test is completed", func() { | |
It("should delete all created resources", func() { |
Context("When test is complited:", func() { | ||
It("tries to delete used resources", func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, cleanup operation seems strange to be a part of the test suite. Shouldn't it belongs to the test setup actions, something like AfterAll?
Description
Why do we need it, and what problem does it solve?
It adapts
Label and Annotation
test case to updated Virtualization API.What is the expected result?
Label and Annotation
test case will be added to E2E tests workflow.Checklist