File tree 2 files changed +11
-14
lines changed
2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 7
7
name : " geekoops-redis"
8
8
# # Setup test enviroment
9
9
# test whether redis server accepts connections on the unix socket
10
- - name : test connection to socket
11
- tags : molecule-idempotence-notest
12
- ansible.builtin.command :
13
- argv :
14
- - redis-cli
15
- - -s
16
- - /var/run/redis/default.sock
17
- - ping
10
+ # - name: test connection to socket
11
+ # tags: molecule-idempotence-notest
12
+ # ansible.builtin.command:
13
+ # argv:
14
+ # - redis-cli
15
+ # - -s
16
+ # - /var/run/redis/default.sock
17
+ # - ping
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/python3
2
2
# -*- coding: utf-8 -*-
3
3
4
-
5
4
import testinfra .utils .ansible_runner
6
5
import os
7
6
8
7
testinfra_hosts = testinfra .utils .ansible_runner .AnsibleRunner (os .environ ['MOLECULE_INVENTORY_FILE' ]).get_hosts ('all' )
9
8
10
- def test_phpinfo (host ):
11
- cmd = host .run ("curl -v http://127.0.0.1/index.html " )
9
+ def test_pingpong (host ):
10
+ cmd = host .run ("redis-cli -s /var/run/redis/default.sock ping " )
12
11
print (cmd .stdout )
13
- assert 'HTTP/1.1 200 OK' in cmd .stderr
14
- assert "Success" in cmd .stdout
15
- assert "The test page is displayed correctly" in cmd .stdout
12
+ assert "PONG" in cmd .stdout
You can’t perform that action at this time.
0 commit comments