Skip to content

Added changes in order to get database with utf8 and collate utf8-bin #4

3 commits merged into from Sep 8, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Adding UT8 tests
Jim Van Fleet committed Sep 8, 2016
commit 4f28b1061dcc06d388da3eee9a062aa4181754ee
12 changes: 12 additions & 0 deletions tests/running.bats
@@ -19,3 +19,15 @@ load ../common
@test "Creates user account with password" {
docker exec -i $imagename mysql -u registry_user --password="WJzesbe3poNZ91qIbmR7" -h 127.0.0.1 -e 'show tables' registry
}

@test "UTF8 character set" {
docker exec -i $imagename mysql -u root -h 127.0.0.1 --password=123321 -e 'show variables' | grep char | grep utf8
}

@test "UTF8 collations" {
docker exec -i $imagename mysql -u root -h 127.0.0.1 --password=123321 -e 'show variables' | grep collation | grep utf8_bin
}

@test "UTF8 databases" {
docker exec -i $imagename mysql -u root -h 127.0.0.1 --password=123321 -e 'show create database registry' | grep "DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
}