-
Notifications
You must be signed in to change notification settings - Fork 217
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
MGMT-19258: Split KubeAPI and non KubeAPI subsystem tests #7154
base: master
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: paul-maidment The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
@paul-maidment: This pull request references MGMT-19258 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.19.0" version, but no target version was set. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7154 +/- ##
=======================================
Coverage 67.60% 67.61%
=======================================
Files 296 296
Lines 40266 40266
=======================================
+ Hits 27223 27226 +3
+ Misses 10590 10588 -2
+ Partials 2453 2452 -1 |
49cde10
to
01a8a88
Compare
d00f61a
to
8930f91
Compare
8930f91
to
1dce038
Compare
MGMT-19258: Copied context sensitive funcs into a context MGMT-19258: Ensure that all context sensitive code is in test context
1dce038
to
0ce3c54
Compare
We are dealing with an issue where some tests have not been executed since they were created, this is because they lack the [kube-api] tag in the test name. It's not ideal.
I have decided to solve this by placing the KubeAPI and non KubeAPI tests into different packages
github.com/openshift/assisted-service/subsystem for non KubeAPI tests github.com/openshift/assisted-service/subsystem/kubeapi for KubeAPI tests
Now every test within the respective package will be executed, irrespective of how it has been tagged.
In order to get to this point, some refactoring of common code between tests was required. The common code has been placed in a package called utils_test Some of the exist
This is quite a big change in terms of volume, but the principles are simple. functions, consts and vars between tests have been moved to the new package and exported.
Each of the test suites has been manually executed and confirmed to be working after these changes. KubeAPI tests now run without the need for a [kube-api] label.
Some kube-api tests that never executed before this fix were found to be failing after they started to run.
This is not unexpected.
As these are non trivial to fix and somewhat unrelated to the fix to how we run the tests, these tests have been disabled by marking them with PDescribe for now.
These tests will be dealt with in MGMT-19596
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist