-
Notifications
You must be signed in to change notification settings - Fork 28
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
Stack name #206
Conversation
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.
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) |
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.
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.
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.
ok done
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.
Tested locally and working.
👍 |
add "amp stack ls"
update amp stack stop, rm to handle both id and name
fixe some issues
test: make test-stack