-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add integration tests for steve OR and NOT filters #40586
Conversation
c89af15
to
f0f7adb
Compare
f0f7adb
to
103308a
Compare
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.
Looks good. This specific to v2.7 correct?
@igomez06 correct, this is 2.7-only |
103308a
to
a1705f3
Compare
Rebased. Had to add elements of #40536 here to run integration tests on local, I misinterpreted #40310 (comment) and it turns out that causes output.csv to be overwritten with an empty file, which we don't want. |
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.
Looks good. For the unwanted empty output.csv
conditional, will you do a v2.6 PR?
Good point, yes can do |
a1705f3
to
05b3497
Compare
I split the local/downstream addition into a separate commit so I could backport it. Also added a commit to make the output testing more flexible, since @rmweir pointed out these don't work on k8s 1.23. |
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.
looks good
The behavior on local vs downstream can sometimes be subtly different, so it is worth running API tests on both. Also, the steveapi tests are self-documenting, but they were not writing their outputs because their outputs were different from run to run because the downstream cluster ID was different. This change ensures both sets of tests are run but the output examples are only recorded when the output is deterministic (which is for the local).
The steveapi integration tests try to be precise about the desired output of API calls. This was causing a problem when run on k8s 1.23 which has default token secrets in every namespace and so was adding extra resources to the response output. This change adds a label to the secrets created in TestList so that they can easily be identified on a live cluster and so unlabeled secrets can be ignored.
had to rebase |
Issue: #40141
Depends on rancher/steve#76
Problem
Solution
Testing
Engineering Testing
Manual Testing
Automated Testing
QA Testing Considerations
Regressions Considerations