Add tests for ufw-docker--get-service-{id,name}

This commit is contained in:
Chai Feng 2019-10-19 13:07:34 +02:00
parent 6291251734
commit 5be7dfb366

View File

@ -101,3 +101,21 @@ test-ufw-docker--service-delete-allow-webapp() {
test-ufw-docker--service-delete-allow-webapp-assert() {
ufw-docker--service-delete webapp
}
test-ufw-docker--get-service-id() {
load-ufw-docker-function ufw-docker--get-service-id
ufw-docker--get-service-id database
}
test-ufw-docker--get-service-id-assert() {
docker service inspect database --format "{{.ID}}"
}
test-ufw-docker--get-service-name() {
load-ufw-docker-function ufw-docker--get-service-name
ufw-docker--get-service-name database
}
test-ufw-docker--get-service-name-assert() {
docker service inspect database --format "{{.Spec.Name}}"
}