Skip to content

Commit

Permalink
fix(firewall): wrong wording when firewall is removed from resource (#…
Browse files Browse the repository at this point in the history
…812)

Closes #809
  • Loading branch information
phm07 authored Jul 10, 2024
1 parent f6877a1 commit 9017a65
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/cmd/firewall/apply_to_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ var ApplyToResourceCmd = base.Cmd{
if err := s.WaitForActions(cmd, s, actions...); err != nil {
return err
}
cmd.Printf("Firewall %d applied\n", firewall.ID)
cmd.Printf("Firewall %d applied to resource\n", firewall.ID)

return nil
},
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/firewall/apply_to_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestApplyToServer(t *testing.T) {

out, errOut, err := fx.Run(cmd, []string{"--type", "server", "--server", "my-server", "test"})

expOut := "Firewall 123 applied\n"
expOut := "Firewall 123 applied to resource\n"

assert.NoError(t, err)
assert.Empty(t, errOut)
Expand Down Expand Up @@ -79,7 +79,7 @@ func TestApplyToLabelSelector(t *testing.T) {

out, errOut, err := fx.Run(cmd, []string{"--type", "label_selector", "--label-selector", "my-label", "test"})

expOut := "Firewall 123 applied\n"
expOut := "Firewall 123 applied to resource\n"

assert.NoError(t, err)
assert.Empty(t, errOut)
Expand Down
2 changes: 1 addition & 1 deletion internal/cmd/firewall/remove_from_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ var RemoveFromResourceCmd = base.Cmd{
if err := s.WaitForActions(cmd, s, actions...); err != nil {
return err
}
cmd.Printf("Firewall %d applied\n", firewall.ID)
cmd.Printf("Firewall %d removed from resource\n", firewall.ID)

return nil
},
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/firewall/remove_from_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func TestRemoveFromServer(t *testing.T) {

out, errOut, err := fx.Run(cmd, []string{"--type", "server", "--server", "my-server", "test"})

expOut := "Firewall 123 applied\n"
expOut := "Firewall 123 removed from resource\n"

assert.NoError(t, err)
assert.Empty(t, errOut)
Expand Down Expand Up @@ -79,7 +79,7 @@ func TestRemoveFromLabelSelector(t *testing.T) {

out, errOut, err := fx.Run(cmd, []string{"--type", "label_selector", "--label-selector", "my-label", "test"})

expOut := "Firewall 123 applied\n"
expOut := "Firewall 123 removed from resource\n"

assert.NoError(t, err)
assert.Empty(t, errOut)
Expand Down

0 comments on commit 9017a65

Please sign in to comment.