Skip to content

Commit c7a11d9

Browse files
Adding functions
1 parent e607434 commit c7a11d9

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

docker-image-tests/percona-mysql-router/tests/test_router_static.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,16 @@ def router_bootstrap():
104104
router_docker_image
105105
])
106106

107+
create_network()
108+
create_mysql_config()
109+
start_mysql_containers()
110+
create_new_user()
111+
verify_new_user()
112+
docker_restart()
113+
create_cluster()
114+
add_slave()
115+
router_bootstrap()
116+
107117
# Get the Docker ID of the running container
108118
docker_id = subprocess.check_output(['sudo', 'docker', 'ps', '-q', '--filter', f'name={container_name}']).decode().strip()
109119

@@ -125,16 +135,16 @@ class TestRouterEnvironment:
125135
def test_mysqlrouter_version(self, host):
126136
command = "mysqlrouter --version"
127137
output = host.check_output(command)
128-
assert "8.0.33" in output
138+
assert ROUTER_VERSION in output
129139

130140
def test_mysqlsh_version(self, host):
131141
command = "mysqlsh --version"
132142
output = host.check_output(command)
133-
assert "8.0.33-25" in output
143+
assert PS_VERSION in output
134144

135145
def test_mysqlrouter_directory_permissions(self, host):
136-
assert host.file('/var/lib/mysqlrouter').user == 'mysqlrouter'
137-
assert host.file('/var/lib/mysqlrouter').group == 'mysqlrouter'
146+
assert host.file('/var/lib/mysqlrouter').user == 'mysql'
147+
assert host.file('/var/lib/mysqlrouter').group == 'mysql'
138148
assert oct(host.file('/var/lib/mysqlrouter').mode) == '0o755'
139149

140150
def test_mysql_user(self, host):

0 commit comments

Comments
 (0)