Skip to content

Update e2e test data for test-framework #2129

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

Merged
merged 2 commits into from
Nov 9, 2019
Merged

Update e2e test data for test-framework #2129

merged 2 commits into from
Nov 9, 2019

Conversation

camilamacedo86
Copy link
Contributor

@camilamacedo86 camilamacedo86 commented Oct 30, 2019

Description of the change:

  • Update e2e test data for test-framework

Motivation for the change:
Follow up of : #2130
Related to: #2114 and #2042

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 30, 2019
@camilamacedo86 camilamacedo86 changed the title update test-framework with the current version of SDK gen files after type spec fix update test-framework with the current version of SDK gen files after type spec fix - SDK 0.11 Oct 30, 2019
@camilamacedo86 camilamacedo86 changed the title update test-framework with the current version of SDK gen files after type spec fix - SDK 0.11 update test-framework with the current version of SDK Nov 1, 2019
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 1, 2019
@camilamacedo86 camilamacedo86 requested a review from estroz November 1, 2019 15:05
hasbro17
hasbro17 previously approved these changes Nov 5, 2019
Copy link
Contributor

@hasbro17 hasbro17 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Can you also please update the PR title and commit subject when you squash to be something like Update e2e test data for test-framework since we're not updating the test-framework itself.

You can add more details in the commit message body if you'd like.

@camilamacedo86 camilamacedo86 changed the title update test-framework with the current version of SDK Update e2e test data for test-framework Nov 5, 2019
@camilamacedo86 camilamacedo86 added approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. labels Nov 5, 2019
@@ -0,0 +1,221 @@
// +build !ignore_autogenerated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this file? The SDK doesn't use this generated code.

Side note: I'm considering removing the generator for this file, since most SDK users do not use it, or at least make it optional.

Copy link
Contributor Author

@camilamacedo86 camilamacedo86 Nov 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HI @estroz the update of the project has been done using the SDK so it will be generated since its commands generate it. Note that the goal is also to add a check to ensure that the mock data is updated with the current code source implementation always to avoid we are testing it with something that should be changed already. See #2131 for we add the test in the sanity.

So, if in the future we remove this file and/or change the commands then the test-framework should be updated accordingly to pass in the CI. Is it make sense?

PS.: I am trying here give the first steps for we stop to do changes manually on it regards the gen artefacts and in this avoid unexpected scenarios as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now we can keep it here. If we decide that removing the openapi generator is the right way to go we can remove this file.

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Nov 7, 2019
@camilamacedo86
Copy link
Contributor Author

camilamacedo86 commented Nov 7, 2019

NOTE: The sanity is falling because of an issue with the master. I just rebased it with and the issue appears. It will be solved here: #2169

Copy link
Member

@estroz estroz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 9, 2019
@camilamacedo86 camilamacedo86 merged commit 382cac3 into operator-framework:master Nov 9, 2019
@camilamacedo86 camilamacedo86 deleted the fix-test-gen-bkp branch November 9, 2019 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants