23
23
from testinfra .utils .ansible_runner import AnsibleRunner
24
24
25
25
HOSTS = [
26
- "ssh://debian_bullseye " ,
27
- "safe-ssh://debian_bullseye " ,
28
- "docker://debian_bullseye " ,
29
- "paramiko://debian_bullseye " ,
30
- "ansible://debian_bullseye " ,
31
- "ansible://debian_bullseye ?force_ansible=True" ,
26
+ "ssh://debian_bookworm " ,
27
+ "safe-ssh://debian_bookworm " ,
28
+ "docker://debian_bookworm " ,
29
+ "paramiko://debian_bookworm " ,
30
+ "ansible://debian_bookworm " ,
31
+ "ansible://debian_bookworm ?force_ansible=True" ,
32
32
]
33
33
USER_HOSTS = [
34
- "ssh://user@debian_bullseye " ,
35
- "safe-ssh://user@debian_bullseye " ,
36
- "docker://user@debian_bullseye " ,
37
- "paramiko://user@debian_bullseye " ,
38
- "ansible://user@debian_bullseye " ,
39
- "ansible://user@debian_bullseye ?force_ansible=True" ,
34
+ "ssh://user@debian_bookworm " ,
35
+ "safe-ssh://user@debian_bookworm " ,
36
+ "docker://user@debian_bookworm " ,
37
+ "paramiko://user@debian_bookworm " ,
38
+ "ansible://user@debian_bookworm " ,
39
+ "ansible://user@debian_bookworm ?force_ansible=True" ,
40
40
]
41
41
SUDO_HOSTS = [
42
- "ssh://user@debian_bullseye ?sudo=True" ,
43
- "safe-ssh://user@debian_bullseye ?sudo=True" ,
44
- "docker://user@debian_bullseye ?sudo=True" ,
45
- "paramiko://user@debian_bullseye ?sudo=True" ,
46
- "ansible://user@debian_bullseye ?sudo=True" ,
47
- "ansible://user@debian_bullseye ?force_ansible=True&sudo=True" ,
42
+ "ssh://user@debian_bookworm ?sudo=True" ,
43
+ "safe-ssh://user@debian_bookworm ?sudo=True" ,
44
+ "docker://user@debian_bookworm ?sudo=True" ,
45
+ "paramiko://user@debian_bookworm ?sudo=True" ,
46
+ "ansible://user@debian_bookworm ?sudo=True" ,
47
+ "ansible://user@debian_bookworm ?force_ansible=True&sudo=True" ,
48
48
]
49
49
SUDO_USER_HOSTS = [
50
- "ssh://debian_bullseye ?sudo=True&sudo_user=user" ,
51
- "safe-ssh://debian_bullseye ?sudo=True&sudo_user=user" ,
52
- "docker://debian_bullseye ?sudo=True&sudo_user=user" ,
53
- "paramiko://debian_bullseye ?sudo=True&sudo_user=user" ,
54
- "ansible://debian_bullseye ?sudo=True&sudo_user=user" ,
55
- "ansible://debian_bullseye ?force_ansible=True&sudo=True&sudo_user=user" ,
50
+ "ssh://debian_bookworm ?sudo=True&sudo_user=user" ,
51
+ "safe-ssh://debian_bookworm ?sudo=True&sudo_user=user" ,
52
+ "docker://debian_bookworm ?sudo=True&sudo_user=user" ,
53
+ "paramiko://debian_bookworm ?sudo=True&sudo_user=user" ,
54
+ "ansible://debian_bookworm ?sudo=True&sudo_user=user" ,
55
+ "ansible://debian_bookworm ?force_ansible=True&sudo=True&sudo_user=user" ,
56
56
]
57
57
58
58
@@ -75,7 +75,7 @@ def test_command(host):
75
75
76
76
@pytest .mark .testinfra_hosts (* HOSTS )
77
77
def test_encoding (host ):
78
- # bullseye image is fr_FR@ISO-8859-15
78
+ # bookworm image is fr_FR@ISO-8859-15
79
79
cmd = host .run ("ls -l %s" , "/é" )
80
80
if host .backend .get_connection_type () == "docker" :
81
81
# docker bug ?
@@ -99,7 +99,7 @@ def test_encoding(host):
99
99
)
100
100
101
101
102
- @pytest .mark .testinfra_hosts ("ansible://debian_bullseye ?force_ansible=True" )
102
+ @pytest .mark .testinfra_hosts ("ansible://debian_bookworm ?force_ansible=True" )
103
103
def test_ansible_any_error_fatal (host ):
104
104
os .environ ["ANSIBLE_ANY_ERRORS_FATAL" ] = "True"
105
105
try :
@@ -485,7 +485,7 @@ def test_backend_importables():
485
485
assert obj .get_connection_type () == connection_type
486
486
487
487
488
- @pytest .mark .testinfra_hosts ("docker://rockylinux8 " , "ssh://rockylinux8 " )
488
+ @pytest .mark .testinfra_hosts ("docker://rockylinux9 " , "ssh://rockylinux9 " )
489
489
def test_docker_encoding (host ):
490
490
encoding = host .check_output (
491
491
"python3 -c 'import locale;print(locale.getpreferredencoding())'"
0 commit comments