-
Notifications
You must be signed in to change notification settings - Fork 266
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
feat: add acceptance test framework #4301
Conversation
2bfcf42
to
a8508a2
Compare
907c6ba
to
99ea995
Compare
e28ad5d
to
0d8005b
Compare
Signed-off-by: Francisco <[email protected]>
4fff641
to
0b2d609
Compare
4e7bc80
to
c2057e4
Compare
Signed-off-by: Francisco <[email protected]>
eac2168
to
ebefc38
Compare
} else if strings.Contains(pod.Name, "apply") && | ||
strings.Contains(pod.NameSpace, "system-upgrade") { | ||
g.Expect(pod.Status).Should(SatisfyAny( | ||
ContainSubstring("Error"), |
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.
What if it is actually an Error? Could we wait longer for job to complete?
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.
this error we are only expecting from this namespace system-upgrade
,only for the apply
pods which sometimes can occur and then it continues with a new pod to do the job.
If this pod only return error , we will catch later on the upgrade validations , that will try to assert that the nodes are in a new version but will not be .
If we remove this error , this test become too much flaky for no reason.
tests/acceptance/shared/cluster.go
Outdated
} | ||
|
||
// Pods returns pods parsed from kubectl get pods. | ||
func Pods(print bool) ([]Pod, error) { |
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.
Let's retain the name ParsePods as per its functionality
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.
sure done
tests/acceptance/shared/cluster.go
Outdated
} | ||
|
||
// Nodes returns nodes parsed from kubectl get nodes. | ||
func Nodes(print bool) ([]Node, error) { |
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.
ParseNodes instead?
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.
sure done
958ce2c
to
7ba6a0b
Compare
Signed-off-by: Francisco <[email protected]>
Proposed Changes
Types of Changes
Verification
Testing
Linked Issues
User-Facing Change
Further Comments
Next Steps: