-
Notifications
You must be signed in to change notification settings - Fork 95
Introducing test constants into separate files #1272
Introducing test constants into separate files #1272
Conversation
tests/constants/dockercli/cmd.go
Outdated
ListVolumes = dockerVol + "ls " | ||
|
||
// Inspect to grab volume properties | ||
Inspect = dockerVol + "inspect " |
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.
Inspect => InspectVolume
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.
Done!
tests/constants/dockercli/cmd.go
Outdated
Inspect = dockerVol + "inspect " | ||
|
||
// Remove constant refers delete volume command | ||
Remove = dockerVol + "rm " |
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.
Remove => RemoveVolume
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.
Done!
package dockercli | ||
|
||
const ( | ||
docker = "docker " |
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.
Nit: why these 2 names start with small case?
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.
kept it private members ... no need to export them
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.
Then above VmdkopsAdmin and VmdkopsAdminVolume should not be exported either.
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.
Agree, updating into the next diff.
f531dd1
to
c7aaf54
Compare
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.
c7aaf54
to
066a779
Compare
fixes #1271
Testing done: Yes locally