This PR allows dashes in service names, while still sanitizing them before they are used as database names. If the datastore is pre-existing, the datatabase name is assumed to be the same as the service name, and returned appropriately.
not ok 1 (graphite:create) service with dashes in 2sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_create.bats, line 15)
`assert_contains "${lines[*]}" "dokku-$PLUGIN_COMMAND_PREFIX-service-with-dashes"' failed
expected dokku-graphite-service-with-dashes to be in: Graphite service service-with-dashes already exists
1..4 (service_list.bats)
not ok 0 (graphite:list) with no exposed ports, no linked apps in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 14)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: eb67e4c6ac38d03a55cab40ce37f9b9dd9874a44f07c3eef0971d5883d3f9b81
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
expected l dokku/docker-grafana-graphite:3.0.1 running - - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 1 (graphite:list) with exposed ports in 15sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 20)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 4458f8ab3c91516db84eaebac796af180fcd93f8243ad410becfc2cae63018da
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Service l exposed on port(s) [container->host]: 8125->4242 8126->4243 80->4244 2003->4245
expected l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 2 (graphite:list) with linked app in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 27)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - my_app"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 9f213e48f73b3943ab1d2e447b501ba3191edf202bb3eb603739ceb7e5cc8ccb
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Creating my_app... done
-----> Setting config vars
STATSD_URL: statsd://dokku-graphite-l:8125
-----> Restarting app my_app
! App my_app has not been deployed
expected l dokku/docker-grafana-graphite:3.0.1 running - my_app to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - my_app service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
Cannot delete linked service
not ok 3 (graphite:list) when there are no services in 1sec
(from function `setup' in test file service_list.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..4 (service_logs.bats)
not ok 0 (graphite:logs) error when there are no arguments in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 1 (graphite:logs) error when service does not exist in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 2 (graphite:logs) success when not tailing in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 3 (graphite:logs) success when tailing in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..8 (service_promote.bats)
not ok 0 (graphite:promote) error when there are no arguments in 6sec
(from function `setup' in test file service_promote.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
-----> Unsetting STATSD_URL
-----> Restarting app my_app
! App my_app has not been deployed
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
Destroying my_app (including all add-ons)
App image (dokku/my_app:latest) not found
Unlinking from service-with-dashes
App my_app has not been deployed
1..42 (shellcheck)
not ok 24 subcommands/nginx-expose in 0sec
SERVICE_UPSTREAM="$SERVICE_UPSTREAM")
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 25 subcommands/nginx-expose in 0sec
SERVICE="$SERVICE"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 26 subcommands/nginx-expose in 0sec
DOMAIN="$DOMAIN"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 27 subcommands/nginx-expose in 0sec
DEFAULT_VHOSTS="$DEFAULT_VHOSTS"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 1 (graphite:create) service with dashes in 2sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_create.bats, line 15)
`assert_contains "${lines[*]}" "dokku-$PLUGIN_COMMAND_PREFIX-service-with-dashes"' failed
expected dokku-graphite-service-with-dashes to be in: Graphite service service-with-dashes already exists
1..4 (service_list.bats)
not ok 0 (graphite:list) with no exposed ports, no linked apps in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 14)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 084a949d855b17ca60025cdc04ab80d523cb8808868bf93eda2ec3132736a3ee
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
expected l dokku/docker-grafana-graphite:3.0.1 running - - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 1 (graphite:list) with exposed ports in 15sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 20)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 08b8c0d36ebacfc6b234705e91930499404028663ca129590abf8c5c0288f615
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Service l exposed on port(s) [container->host]: 8125->4242 8126->4243 80->4244 2003->4245
expected l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 2 (graphite:list) with linked app in 4sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 27)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - my_app"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: f7edc23ffd2373cd5a62524415be187f6b763d66d9e2585e8220eeda455dd86e
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Creating my_app... done
-----> Setting config vars
STATSD_URL: statsd://dokku-graphite-l:8125
-----> Restarting app my_app
! App my_app has not been deployed
expected l dokku/docker-grafana-graphite:3.0.1 running - my_app to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - my_app service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
Cannot delete linked service
not ok 3 (graphite:list) when there are no services in 0sec
(from function `setup' in test file service_list.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..4 (service_logs.bats)
not ok 0 (graphite:logs) error when there are no arguments in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 1 (graphite:logs) error when service does not exist in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 2 (graphite:logs) success when not tailing in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 3 (graphite:logs) success when tailing in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..8 (service_promote.bats)
not ok 0 (graphite:promote) error when there are no arguments in 5sec
(from function `setup' in test file service_promote.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
-----> Unsetting STATSD_URL
-----> Restarting app my_app
! App my_app has not been deployed
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
Destroying my_app (including all add-ons)
App image (dokku/my_app:latest) not found
Unlinking from service-with-dashes
App my_app has not been deployed
1..42 (shellcheck)
not ok 24 subcommands/nginx-expose in 0sec
SERVICE_UPSTREAM="$SERVICE_UPSTREAM")
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 25 subcommands/nginx-expose in 0sec
SERVICE="$SERVICE"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 26 subcommands/nginx-expose in 0sec
DOMAIN="$DOMAIN"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 27 subcommands/nginx-expose in 0sec
DEFAULT_VHOSTS="$DEFAULT_VHOSTS"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 1 (graphite:create) service with dashes in 3sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_create.bats, line 15)
`assert_contains "${lines[*]}" "dokku-$PLUGIN_COMMAND_PREFIX-service-with-dashes"' failed
expected dokku-graphite-service-with-dashes to be in: Graphite service service-with-dashes already exists
1..4 (service_list.bats)
not ok 0 (graphite:list) with no exposed ports, no linked apps in 6sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 14)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 35b1752e8fca0a8ec72d6dc944936478bb18ba1f5f6d88087db4eb28d2779f5e
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
expected l dokku/docker-grafana-graphite:3.0.1 running - - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 1 (graphite:list) with exposed ports in 15sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 20)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 409d22f35407d272611988ba85fc9190f75a80ea2eec7a8d94c073eb8d47d3d7
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Service l exposed on port(s) [container->host]: 8125->4242 8126->4243 80->4244 2003->4245
expected l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 2 (graphite:list) with linked app in 4sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 27)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - my_app"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: bf7506dfac2964d024db6ea658c46365b9accd861a40783205a621119c6dd813
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Creating my_app... done
-----> Setting config vars
STATSD_URL: statsd://dokku-graphite-l:8125
-----> Restarting app my_app
App my_app has not been deployed
expected l dokku/docker-grafana-graphite:3.0.1 running - my_app to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - my_app service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
Cannot delete linked service
not ok 3 (graphite:list) when there are no services in 1sec
(from function `setup' in test file service_list.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..4 (service_logs.bats)
not ok 0 (graphite:logs) error when there are no arguments in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 1 (graphite:logs) error when service does not exist in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 2 (graphite:logs) success when not tailing in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 3 (graphite:logs) success when tailing in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..8 (service_promote.bats)
not ok 0 (graphite:promote) error when there are no arguments in 5sec
(from function `setup' in test file service_promote.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
-----> Unsetting STATSD_URL
-----> Restarting app my_app
App my_app has not been deployed
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
Destroying my_app (including all add-ons)
App image (dokku/my_app:latest) not found
Unlinking from service-with-dashes
App my_app has not been deployed
1..42 (shellcheck)
not ok 24 subcommands/nginx-expose in 0sec
SERVICE_UPSTREAM="$SERVICE_UPSTREAM")
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 25 subcommands/nginx-expose in 0sec
SERVICE="$SERVICE"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 26 subcommands/nginx-expose in 0sec
DOMAIN="$DOMAIN"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 27 subcommands/nginx-expose in 0sec
DEFAULT_VHOSTS="$DEFAULT_VHOSTS"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 1 (graphite:create) service with dashes in 2sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_create.bats, line 14)
`assert_contains "${lines[*]}" "service_with_dashes"' failed
expected service_with_dashes to be in: Waiting for container to be ready =====> Graphite container created: service-with-dashes =====> Container Information Config dir: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes/config Data dir: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes/data Dsn: statsd://dokku-graphite-service-with-dashes:8125 Exposed ports: - Id: f619d80146d8191352629fda6d9a5cacba32198ac0cbee8f230d56507f7edb78 Internal ip: 172.17.0.2 Links: - Service root: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes Status: running Version: dokku/docker-grafana-graphite:3.0.1 -----> Service service-with-dashes available under 172.17.0.2:80 -----> Initial login/pass: admin/admin. Please change it on first login
1..4 (service_list.bats)
not ok 0 (graphite:list) with no exposed ports, no linked apps in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 14)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 1693423dbd8793ca5660e00d9492923441d0c5a107745cede3a5f42e90f11c30
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
expected l dokku/docker-grafana-graphite:3.0.1 running - - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 1 (graphite:list) with exposed ports in 15sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 20)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: d0515d20045a765c57e3482b3165e1f38935491b67de940f513b8a288752f30a
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Service l exposed on port(s) [container->host]: 8125->4242 8126->4243 80->4244 2003->4245
expected l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 2 (graphite:list) with linked app in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 27)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - my_app"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: b037afd1ce8486988bd3f4f9a734e6775f2cfe1136b1038ee7faf41c14a8f9e3
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Creating my_app... done
-----> Setting config vars
STATSD_URL: statsd://dokku-graphite-l:8125
-----> Restarting app my_app
! App my_app has not been deployed
expected l dokku/docker-grafana-graphite:3.0.1 running - my_app to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - my_app service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
Cannot delete linked service
not ok 3 (graphite:list) when there are no services in 0sec
(from function `setup' in test file service_list.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..4 (service_logs.bats)
not ok 0 (graphite:logs) error when there are no arguments in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 1 (graphite:logs) error when service does not exist in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 2 (graphite:logs) success when not tailing in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 3 (graphite:logs) success when tailing in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..8 (service_promote.bats)
not ok 0 (graphite:promote) error when there are no arguments in 5sec
(from function `setup' in test file service_promote.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
-----> Unsetting STATSD_URL
-----> Restarting app my_app
! App my_app has not been deployed
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
Destroying my_app (including all add-ons)
App image (dokku/my_app:latest) not found
Unlinking from service-with-dashes
App my_app has not been deployed
1..42 (shellcheck)
not ok 24 subcommands/nginx-expose in 0sec
SERVICE_UPSTREAM="$SERVICE_UPSTREAM")
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 25 subcommands/nginx-expose in 0sec
SERVICE="$SERVICE"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 26 subcommands/nginx-expose in 0sec
DOMAIN="$DOMAIN"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 27 subcommands/nginx-expose in 0sec
DEFAULT_VHOSTS="$DEFAULT_VHOSTS"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 1 (graphite:create) service with dashes in 2sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_create.bats, line 14)
`assert_contains "${lines[*]}" "service_with_dashes"' failed
expected service_with_dashes to be in: Waiting for container to be ready =====> Graphite container created: service-with-dashes =====> Container Information Config dir: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes/config Data dir: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes/data Dsn: statsd://dokku-graphite-service-with-dashes:8125 Exposed ports: - Id: b00615847263b58748a8d8ba33defa47d48c6ac3ae0c22d2ec9e54a3a6d48fa7 Internal ip: 172.17.0.2 Links: - Service root: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes Status: running Version: dokku/docker-grafana-graphite:3.0.1 -----> Service service-with-dashes available under 172.17.0.2:80 -----> Initial login/pass: admin/admin. Please change it on first login
1..4 (service_list.bats)
not ok 0 (graphite:list) with no exposed ports, no linked apps in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 14)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: d1ec879a25d3cc300b75de0468542ab32131df4cbcc596e48ebab50f3a684a80
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
expected l dokku/docker-grafana-graphite:3.0.1 running - - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 1 (graphite:list) with exposed ports in 15sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 20)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: c443137f08cdc3ab3ff7dd238417c8a88fa09da9ebdadb8cc75dcff4df7f0504
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Service l exposed on port(s) [container->host]: 8125->4242 8126->4243 80->4244 2003->4245
expected l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 2 (graphite:list) with linked app in 4sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 27)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - my_app"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: f5bfe74f4e47a1d6dc9daa112706051314e8ba759c7208e8c605372bbdb814c0
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Creating my_app... done
-----> Setting config vars
STATSD_URL: statsd://dokku-graphite-l:8125
-----> Restarting app my_app
! App my_app has not been deployed
expected l dokku/docker-grafana-graphite:3.0.1 running - my_app to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - my_app service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
Cannot delete linked service
not ok 3 (graphite:list) when there are no services in 0sec
(from function `setup' in test file service_list.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..4 (service_logs.bats)
not ok 0 (graphite:logs) error when there are no arguments in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 1 (graphite:logs) error when service does not exist in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 2 (graphite:logs) success when not tailing in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 3 (graphite:logs) success when tailing in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..8 (service_promote.bats)
not ok 0 (graphite:promote) error when there are no arguments in 4sec
(from function `setup' in test file service_promote.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
-----> Unsetting STATSD_URL
-----> Restarting app my_app
! App my_app has not been deployed
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
Destroying my_app (including all add-ons)
App image (dokku/my_app:latest) not found
Unlinking from service-with-dashes
App my_app has not been deployed
1..42 (shellcheck)
not ok 24 subcommands/nginx-expose in 0sec
SERVICE_UPSTREAM="$SERVICE_UPSTREAM")
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 25 subcommands/nginx-expose in 0sec
SERVICE="$SERVICE"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 26 subcommands/nginx-expose in 0sec
DOMAIN="$DOMAIN"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 27 subcommands/nginx-expose in 0sec
DEFAULT_VHOSTS="$DEFAULT_VHOSTS"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 1 (graphite:create) service with dashes in 2sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_create.bats, line 14)
`assert_contains "${lines[*]}" "service_with_dashes"' failed
expected service_with_dashes to be in: Waiting for container to be ready =====> Graphite container created: service-with-dashes =====> Container Information Config dir: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes/config Data dir: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes/data Dsn: statsd://dokku-graphite-service-with-dashes:8125 Exposed ports: - Id: 39baea6ab81b8a47bf2393224760bd8d81360a1914f205c6ef332063aaa69335 Internal ip: 172.17.0.2 Links: - Service root: /var/lib/dokku/services/grafana-graphite-statsd/service-with-dashes Status: running Version: dokku/docker-grafana-graphite:3.0.1 -----> Service service-with-dashes available under 172.17.0.2:80 -----> Initial login/pass: admin/admin. Please change it on first login
1..4 (service_list.bats)
not ok 0 (graphite:list) with no exposed ports, no linked apps in 5sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 14)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 92ce6a39e888b9f73f4a964b7466b8d7b9f50c9d493f386b99c25f483db58689
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
expected l dokku/docker-grafana-graphite:3.0.1 running - - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 1 (graphite:list) with exposed ports in 15sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 20)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 -"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: 48e04f051cfceaaeca1ffe0d4adebc428932ecb48f296c747fcf6926bb416ea1
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Service l exposed on port(s) [container->host]: 8125->4242 8126->4243 80->4244 2003->4245
expected l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running 8125->4242 8126->4243 80->4244 2003->4245 - service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
not ok 2 (graphite:list) with linked app in 4sec
(from function `assert_contains' in file test_helper.bash, line 13,
in test file service_list.bats, line 27)
`assert_contains "${lines[*]}" "l dokku/docker-grafana-graphite:3.0.1 running - my_app"' failed
Waiting for container to be ready
=====> Graphite container created: l
=====> Container Information
Config dir: /var/lib/dokku/services/grafana-graphite-statsd/l/config
Data dir: /var/lib/dokku/services/grafana-graphite-statsd/l/data
Dsn: statsd://dokku-graphite-l:8125
Exposed ports: -
Id: a0bf720fb41c5b0a5be5aa49ce95b1ae0bb9a4f3f36d4fa0a33f43472d5d462d
Internal ip: 172.17.0.3
Links: -
Service root: /var/lib/dokku/services/grafana-graphite-statsd/l
Status: running
Version: dokku/docker-grafana-graphite:3.0.1
-----> Service l available under 172.17.0.3:80
-----> Initial login/pass: admin/admin. Please change it on first login
-----> Creating my_app... done
-----> Setting config vars
STATSD_URL: statsd://dokku-graphite-l:8125
-----> Restarting app my_app
App my_app has not been deployed
expected l dokku/docker-grafana-graphite:3.0.1 running - my_app to be in: NAME VERSION STATUS EXPOSED PORTS LINKS l dokku/docker-grafana-graphite:3.0.1 running - my_app service-with-dashes dokku/docker-grafana-graphite:3.0.1 running - -
Cannot delete linked service
not ok 3 (graphite:list) when there are no services in 1sec
(from function `setup' in test file service_list.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..4 (service_logs.bats)
not ok 0 (graphite:logs) error when there are no arguments in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 1 (graphite:logs) error when service does not exist in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 2 (graphite:logs) success when not tailing in 0sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
not ok 3 (graphite:logs) success when tailing in 1sec
(from function `setup' in test file service_logs.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
Cannot delete linked service
1..8 (service_promote.bats)
not ok 0 (graphite:promote) error when there are no arguments in 3sec
(from function `setup' in test file service_promote.bats, line 5)
`dokku "$PLUGIN_COMMAND_PREFIX:create" l' failed
Graphite service l already exists
-----> Unsetting STATSD_URL
-----> Restarting app my_app
App my_app has not been deployed
=====> Deleting l
=====> Stopping container
Container stopped
Removing container
Removing data
=====> Graphite container deleted: l
Destroying my_app (including all add-ons)
App image (dokku/my_app:latest) not found
Unlinking from service-with-dashes
App my_app has not been deployed
1..42 (shellcheck)
not ok 24 subcommands/nginx-expose in 0sec
SERVICE_UPSTREAM="$SERVICE_UPSTREAM")
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 25 subcommands/nginx-expose in 0sec
SERVICE="$SERVICE"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 26 subcommands/nginx-expose in 0sec
DOMAIN="$DOMAIN"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
not ok 27 subcommands/nginx-expose in 0sec
DEFAULT_VHOSTS="$DEFAULT_VHOSTS"
^-- SC2191: The = here is literal. To assign by index, use ( [index]=value ) with no spaces. To keep as literal, quote it.
This PR allows dashes in service names, while still sanitizing them before they are used as database names. If the datastore is pre-existing, the datatabase name is assumed to be the same as the service name, and returned appropriately.