-
Notifications
You must be signed in to change notification settings - Fork 243
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
3923- url creation with optional port flag #3950
3923- url creation with optional port flag #3950
Conversation
Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
Signed-off-by: Stephanie <yangcao@redhat.com>
helper.CopyExample(filepath.Join("source", "devfiles", "nodejs", "project"), context) | ||
helper.CopyExampleDevFile(filepath.Join("source", "devfiles", "nodejs", "devfile.yaml"), filepath.Join(context, "devfile.yaml")) | ||
|
||
helper.CmdShouldPass("odo", "url", "create", url1, "--host", host, "--secure", "--ingress") |
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.
please add a check to verify that the default port was added to the devfile. We can check the devfile.yaml or use odo url list
.
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.
updated
Codecov Report
@@ Coverage Diff @@
## master #3950 +/- ##
=======================================
Coverage 44.60% 44.60%
=======================================
Files 143 143
Lines 14000 14000
=======================================
Hits 6244 6244
Misses 7164 7164
Partials 592 592 Continue to review full report at Codecov.
|
Signed-off-by: Stephanie <yangcao@redhat.com>
|
||
helper.CmdShouldPass("odo", "url", "create", url1, "--host", host, "--ingress") | ||
stdout := helper.CmdShouldPass("odo", "url", "list") | ||
helper.MatchAllInOutput(stdout, []string{url1, "Not Pushed"}) |
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.
Please also check the port number in the output
…onWithoptionalPort
Signed-off-by: Stephanie <yangcao@redhat.com>
/retest |
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
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: girishramnani 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
6 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
12 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
What type of PR is this?
/kind bug
/area devfile
/area url
What does does this PR do / why we need it:
The
--port
flag should be an optional flag if there is only one port exposed in devfile.This PR fixes the regression.
Also created an integration test for the specific case
Which issue(s) this PR fixes:
Fixes #3923
PR acceptance criteria:
Unit test
Integration test
Documentation
I have read the test guidelines
How to test changes / Special notes to the reviewer:
make test-cmd-devfile-url
Manual Test:
odo url create
should successfully create an endpoint in devfile