test machines_tls: remove all existing machines in setup (#1678)
This commit is contained in:
parent
0eea20fa7c
commit
e1954adc32
1 changed files with 8 additions and 1 deletions
|
@ -45,7 +45,14 @@ setup_file() {
|
|||
.api.server.tls.agents_allowed_ou=["agent-ou"]
|
||||
'
|
||||
|
||||
run -0 cscli machines delete githubciXXXXXXXXXXXXXXXXXXXXXXXX
|
||||
# remove all machines
|
||||
|
||||
run -0 cscli machines list -o json
|
||||
run -0 jq -r '.[].machineId' <(output)
|
||||
for machine in $(output); do
|
||||
run -0 cscli machines delete "${machine}"
|
||||
done
|
||||
|
||||
config_disable_agent
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue