@@ -66,59 +66,4 @@ install:
66
66
- bash tests/scripts/before_install.sh
67
67
68
68
script :
69
- # Test 1
70
- - >
71
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
72
- # Idempotence test
73
- - >
74
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e mongodb_version=${MONGODB_VERSION} -e image_name=${DISTRIBUTION}:${DIST_VERSION}
75
- | grep -q 'changed=0.*failed=0'
76
- && (echo 'Idempotence test: pass' && exit 0)
77
- || (echo 'Idempotence test: fail' && exit 1)
78
-
79
- # Delete all containers
80
- - sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
81
-
82
- # Test 2
83
- - >
84
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
85
- -e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
86
- # Idempotence test
87
- - >
88
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo1 -e image_name=${DISTRIBUTION}:${DIST_VERSION}
89
- -e mongodb_version=${MONGODB_VERSION} -e mongodb_security_authorization='enabled'
90
- | grep -q 'changed=0.*failed=0'
91
- && (echo 'Idempotence test: pass' && exit 0)
92
- || (echo 'Idempotence test: fail' && exit 1)
93
-
94
- # Delete all containers
95
- - sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
96
-
97
- # Test 3
98
- - >
99
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
100
- -e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
101
- # Idempotence test
102
- - >
103
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
104
- -e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
105
- | grep -q 'changed=0.*failed=0'
106
- && (echo 'Idempotence test: pass' && exit 0)
107
- || (echo 'Idempotence test: fail' && exit 1)
108
-
109
- # Delete all containers
110
- - sudo docker kill mongo{1,2,3} && docker rm mongo{1,2,3}
111
-
112
- # Test 4
113
- - >
114
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
115
- -e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
116
- -e mongodb_security_authorization='enabled'
117
- # Idempotence test
118
- - >
119
- ansible-playbook -i tests/hosts tests/site.yml -e target=mongo -e image_name=${DISTRIBUTION}:${DIST_VERSION}
120
- -e mongodb_version=${MONGODB_VERSION} -e mongodb_replication_replset='testrs'
121
- -e mongodb_security_authorization='enabled'
122
- | grep -q 'changed=0.*failed=0'
123
- && (echo 'Idempotence test: pass' && exit 0)
124
- || (echo 'Idempotence test: fail' && exit 1)
69
+ - bash tests/scripts/test.sh
0 commit comments