Changeset - 7bc38c463bcd
[Not reviewed]
0 1 0
Branko Majic (branko) - 5 years ago 2020-01-06 20:11:27
branko@majic.rs
MAR-148: Fixed database server tests (extra newline required in assert).
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
roles/database_server/molecule/default/tests/test_default.py
Show inline comments
 
@@ -82,17 +82,17 @@ def test_utf8_configuration(host):
 
    assert host.run("mysql -uroot -proot_password -BNe 'drop database if exists test'").rc == 0
 
    assert host.run("mysql -uroot -proot_password -BNe 'create database test'").rc == 0
 

	
 
    check_server = host.run("mysql -uroot -proot_password test -BNe 'select @@character_set_server; select @@collation_server'")
 

	
 
    assert check_server.rc == 0
 
    assert check_server.stdout == "utf8\nutf8_general_ci"
 
    assert check_server.stdout == "utf8\nutf8_general_ci\n"
 

	
 
    check_database = host.run("mysql -uroot -proot_password test -BNe 'select @@character_set_database; select @@collation_database'")
 

	
 
    assert check_database.rc == 0
 
    assert check_database.stdout == "utf8\nutf8_general_ci"
 
    assert check_database.stdout == "utf8\nutf8_general_ci\n"
 

	
 
    check_database = host.run("mysql -uroot -proot_password -BNe 'select @@character_set_connection; select @@collation_connection'")
 

	
 
    assert check_database.rc == 0
 
    assert check_database.stdout == "utf8\nutf8_general_ci"
 
    assert check_database.stdout == "utf8\nutf8_general_ci\n"
0 comments (0 inline, 0 general)