-
Couldn't load subscription status.
- Fork 1.8k
test: Add Integration tests for Kubernetes Native API Migration script #12180
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: Add Integration tests for Kubernetes Native API Migration script #12180
Conversation
|
Skipping CI for Draft Pull Request. |
4ba3634 to
79a3a72
Compare
79a3a72 to
3f26607
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.
I feel like a lot of the assertions are hardcoded and only verifying the presence of files/pipelines.
We should probably write these tests in pytest rather than Python Unit test, and use of fixture for set up and tear down can make things much easier.
Can you please add some code comments explaining what the tests are suppose to do? May be add a link it to the test in the proposal per test
Also, curious to know why were these tests written in python as oppose to Golang?
Since this is probably just 1 off thing, we can live by with the hard coded assertions but we should still add assertions to compare whole objects rather than just the presence of pipelines/runs/versions
3f26607 to
f030956
Compare
f030956 to
779385d
Compare
669e0ad to
520e383
Compare
|
|
||
| KFP_ENDPOINT = os.environ.get('KFP_ENDPOINT', 'http://localhost:8888') | ||
|
|
||
| def serialize_object_for_comparison(obj): |
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.
would json.dump or json.dumps, not suffice ? Any particular reason for this method?
test/kfp-kubernetes-native-migration-tests/kfp_k8s_mode_migration_tests.py
Outdated
Show resolved
Hide resolved
65ee14b to
0cfcec5
Compare
8c20e48 to
7cd4030
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.
lgtm
7cd4030 to
d38c672
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.
lgtm
d38c672 to
2ef3252
Compare
1f87862 to
7868389
Compare
Signed-off-by: VaniHaripriya <[email protected]>
7868389 to
2252d9b
Compare
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HumairAK 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 |
kubeflow#12180) Signed-off-by: VaniHaripriya <[email protected]>
Description of your changes:
Checklist: