Skip to content
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 some tests for manifest deploy part of odo deploy command #13

Merged
merged 2 commits into from
Jul 1, 2020
Merged

Add some tests for manifest deploy part of odo deploy command #13

merged 2 commits into from
Jul 1, 2020

Conversation

groeges
Copy link

@groeges groeges commented Jul 1, 2020

Signed-off-by: Steven Groeger groeges@uk.ibm.com

What type of PR is this?
/kind cleanup

What does does this PR do / why we need it:
Adds some tests for the manifest deployment part of the odo deploy command

Which issue(s) this PR fixes:

Fixes #?

How to test changes / Special notes to the reviewer:

Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
err := helper.ReplaceDevfileField("devfile.yaml", "alpha.deployment-manifest", "http://github.com/myfile.yaml")
Expect(err).To(BeNil())

cmdOutput := helper.CmdShouldFail("odo", "deploy", "--tag", imageTag, "--deployOnly")
Copy link
Owner

Choose a reason for hiding this comment

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

We need to remove this deployOnly since we haven't discussed it in the proposal

Copy link
Author

Choose a reason for hiding this comment

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

Removed from tests. New PR will be raised to remove from actual ODO code.

"https://raw.githubusercontent.com/groeges/devfile-registry/master/devfiles/nodejs/deploy_deployment.yaml")
Expect(err).To(BeNil())

cmdOutput := helper.CmdShouldPass("odo", "deploy", "--tag", imageTag)
Copy link
Owner

Choose a reason for hiding this comment

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

Enhancement for future PR?: We may want to verify that the deployment/service/route are created in this namespace.

Signed-off-by: Steven Groeger <groeges@uk.ibm.com>
@EnriqueL8 EnriqueL8 merged commit fe7dbaa into EnriqueL8:deploy_command Jul 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants