Skip to content

Change usecase5 to testing app name for e2e tests #522

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

Conversation

cdrage
Copy link
Member

@cdrage cdrage commented Jun 11, 2018

Changes the ambiguous "usecase5" name to "testing". Also adds a constant
to the e2e_test.go file.

@cdrage cdrage requested a review from ashetty1 June 11, 2018 16:13
Copy link
Contributor

@ashetty1 ashetty1 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -23,6 +23,7 @@ import (

var t = strconv.FormatInt(time.Now().Unix(), 10)
var projName = fmt.Sprintf("odo-%s", t)
var appTestName = "testing"
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't this be defined inside var _ = Describe("odoe2e", func() { ?

Copy link
Contributor

@surajnarwade surajnarwade left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@cdrage cdrage force-pushed the change-from-usecase5-to-testing branch from fbea73d to 6dcd899 Compare June 13, 2018 15:20
@cdrage
Copy link
Member Author

cdrage commented Jun 13, 2018

@kadel I've updated the tests to indicate the new name in Describe as well!

@kadel
Copy link
Member

kadel commented Jun 14, 2018

@kadel I've updated the tests to indicate the new name in Describe as well!

I meant something different.

There is no reason to have appTestName global for the whole e2e test.
To make it easy to create another test with the different application name we should define appTestName inside Describe block.

var _ = Describe("odoe2e", func() {
   appTestName := "testapp"
...
...

Changes the ambiguous "usecase5" name to "testing". Also adds a constant
to the e2e_test.go file.
@cdrage cdrage force-pushed the change-from-usecase5-to-testing branch from 6dcd899 to cc59607 Compare June 14, 2018 16:44
@cdrage
Copy link
Member Author

cdrage commented Jun 14, 2018

@kadel I see what you mean. Updated it and added the variable to be described under Describe(

@kadel kadel merged commit a55eda7 into redhat-developer:master Jun 15, 2018
@kadel
Copy link
Member

kadel commented Jun 15, 2018

@kadel I see what you mean. Updated it and added the variable to be described under Describe(

👍 Thank you

@cdrage cdrage deleted the change-from-usecase5-to-testing branch July 3, 2018 16:08
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.

4 participants