test: can create custom database with - character in the name (#46)

* test: can create custom database with `-` character in the name

* fix version in changelog
This commit is contained in:
Sameer Naik
2016-05-19 04:14:55 +05:30
committed by Adnan Abdulhussein
parent a0cf0350e2
commit 2ca9883fdf
2 changed files with 9 additions and 1 deletions

View File

@@ -452,7 +452,7 @@ bats test.sh
# Notable Changes
## 10.1.13-r1
## 10.1.13-r0
- All volumes have been merged at `/bitnami/mariadb`. Now you only need to mount a single volume at `/bitnami/mariadb` for persistence.
- The logs are always sent to the `stdout` and are no longer collected in the volume.

View File

@@ -83,6 +83,14 @@ cleanup_environment
[[ "$output" =~ "Database: $MARIADB_DATABASE" ]]
}
@test "Can create custom database with '-' character in the name" {
container_create default -d \
-e MARIADB_DATABASE=my-db
run mysql_client default -uroot -e "SHOW DATABASES\G"
[[ "$output" =~ "Database: my-db" ]]
}
@test "Can create custom database with password for root" {
container_create default -d \
-e MARIADB_ROOT_PASSWORD=$MARIADB_PASSWORD \