From 4f28b1061dcc06d388da3eee9a062aa4181754ee Mon Sep 17 00:00:00 2001 From: Jim Van Fleet <jim.van.fleet@levvel.io> Date: Thu, 8 Sep 2016 10:55:34 -0400 Subject: [PATCH] Adding UT8 tests --- tests/running.bats | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/running.bats b/tests/running.bats index 1d5c5d9..ddb663d 100644 --- a/tests/running.bats +++ b/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" +} \ No newline at end of file