mirror of
https://github.com/bitnami/containers.git
synced 2026-03-20 14:58:20 +08:00
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:
committed by
Adnan Abdulhussein
parent
a0cf0350e2
commit
2ca9883fdf
@@ -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.
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user