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

Stack name #206

Merged
merged 1 commit into from
Sep 20, 2016
Merged

Stack name #206

merged 1 commit into from
Sep 20, 2016

Conversation

freignat91
Copy link
Contributor

add "amp stack ls"
update amp stack stop, rm to handle both id and name
fixe some issues

test: make test-stack

Copy link
Contributor

@subfuzion subfuzion left a comment

Choose a reason for hiding this comment

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

Very trivial comment on using t.Logf instead of fmt.Println. Rest looks good. 👍

@@ -144,20 +146,25 @@ func parse(t *testing.T, test *TestSpec) {

func (a serviceMap) compare(b serviceMap) bool {
if a.Image != b.Image {
fmt.Printf("Images don't match: %v != %v\n", a.Image, b.Image)
Copy link
Contributor

Choose a reason for hiding this comment

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

It's better to use t.Log/t.Logf since these print to stderr and since the output is in order and where you expect to see it when it's printed as the test runs. You can add a t *testing.T arg to compare and pass it from the calling function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok done

Copy link
Contributor

@bquenin bquenin left a comment

Choose a reason for hiding this comment

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

Tested locally and working.

@bquenin bquenin merged commit d953925 into master Sep 20, 2016
@bquenin bquenin deleted the stack-name branch September 20, 2016 23:17
@subfuzion
Copy link
Contributor

👍

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.

3 participants