Skip to content

Commit

Permalink
Added remove configuration profile test
Browse files Browse the repository at this point in the history
  • Loading branch information
patthiel committed Dec 3, 2018
1 parent 0163950 commit 73ec610
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/nodebalancers/nodebalancers.bats
Expand Up @@ -166,6 +166,18 @@ export nodebalancerCreated="[0-9]+,balancer[0-9]+,us-east,nb-[0-9]+-[0-9]+-[0-9]
assert_output --regexp "[0-9]+,10700,tcp,roundrobin,none,True,recommended,,"
}

@test "it should remove a configuration profile" {
nodebalancerId=$(linode-cli nodebalancers list --format=id --text --no-headers)
configurationIds=$(linode-cli nodebalancers configs-list $nodebalancerId --text --no-headers --format=id)

set -- $configurationIds
configId=$1

run linode-cli nodebalancers config-delete $nodebalancerId $configId

assert_success
}

@test "it should delete all nodebalancers" {
run removeAll "nodebalancers"
run removeAll "linodes"
Expand Down

0 comments on commit 73ec610

Please sign in to comment.