Skip to content

Commit

Permalink
- concise description for kubectl, terraform & gcloud assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
aaabramov committed Nov 9, 2021
1 parent 77ea04c commit 3512d03
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/assertions.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ type TerraformWorkspaceAssertion struct {
}

func (a TerraformWorkspaceAssertion) describe() string {
return fmt.Sprintf("Check if selected terraform workspace is %s", strconv.Quote(a.Expect))
return fmt.Sprintf("terraform.workspace == %s", strconv.Quote(a.Expect))
}

func (a TerraformWorkspaceAssertion) check(_ Goals) error {
Expand Down Expand Up @@ -104,7 +104,7 @@ type KubectlContextAssertion struct {
}

func (a KubectlContextAssertion) describe() string {
return fmt.Sprintf("Check if current kubectl context is %s", strconv.Quote(a.Expect))
return fmt.Sprintf("kubectl.context == %s", strconv.Quote(a.Expect))
}

func (a KubectlContextAssertion) check(_ Goals) error {
Expand Down Expand Up @@ -136,7 +136,7 @@ type GcloudProjectAssertion struct {
}

func (a GcloudProjectAssertion) describe() string {
return fmt.Sprintf("Check if current gcloud project context is %s", strconv.Quote(a.Expect))
return fmt.Sprintf("gcloud.project == %s", strconv.Quote(a.Expect))
}

func (a GcloudProjectAssertion) check(_ Goals) error {
Expand Down

0 comments on commit 3512d03

Please sign in to comment.