Skip to content

Instantly share code, notes, and snippets.

@sbeliakou
Created March 13, 2021 22:28
Show Gist options
  • Select an option

  • Save sbeliakou/8cae86649dc9ab04e26a77880fd8d50d to your computer and use it in GitHub Desktop.

Select an option

Save sbeliakou/8cae86649dc9ab04e26a77880fd8d50d to your computer and use it in GitHub Desktop.
Cloning into 'volha_huryna'...
name: volha_huryna, master/ce1a2e0 @ 2021-03-11 21:58:59 +0000
2021/03/13 22:26:50 config: tests/data-rendering.yml
2021/03/13 22:26:50 verbosity: 2
2021/03/13 22:26:50 -----------------------------------------------------------------------------------
2021/03/13 22:26:50 Running '3.1 Data Rendering', 1..4 tests
2021/03/13 22:26:50 -----------------------------------------------------------------------------------
2021/03/13 22:26:51 ✓ [3.1 Data Rendering] => 'data-rendering.yml' playbook syntax check (20), 867ms
2021/03/13 22:26:53 ✓ [3.1 Data Rendering] => playbook rollout - ccl team (50), 2.204s
2021/03/13 22:26:56 ✓ [3.1 Data Rendering] => playbook rollout - pgwy team (1), 2.673s
2021/03/13 22:26:59 ✓ [3.1 Data Rendering] => using loops (loop_control, loop_var, label) (1), 2.482s
2021/03/13 22:26:59 -----------------------------------------------------------------------------------
2021/03/13 22:26:59 Tests Summary:
2021/03/13 22:26:59 4 (of 4) tests passed, 0 tests failed; rated as 100.00%
2021/03/13 22:26:59
2021/03/13 22:26:59 Time Spent: 8.228s
2021/03/13 22:26:59 -----------------------------------------------------------------------------------
name: volha_huryna, master/ce1a2e0 @ 2021-03-11 21:58:59 +0000
2021/03/13 22:26:59 config: tests/filters.yml
2021/03/13 22:26:59 verbosity: 2
2021/03/13 22:26:59 -----------------------------------------------------------------------------------
2021/03/13 22:26:59 Running '3.1 Working with Filters', 1..3 tests
2021/03/13 22:26:59 -----------------------------------------------------------------------------------
2021/03/13 22:27:03 ✓ [3.1 Working with Filters] => 'filters.yml' playbook linter (1), 4.018s
2021/03/13 22:27:04 ✓ [3.1 Working with Filters] => 'filters.yml' playbook syntax check (1), 929ms
2021/03/13 22:27:07 ✓ [3.1 Working with Filters] => playbook rollout - ccl team (1), 3.159s
2021/03/13 22:27:07 -----------------------------------------------------------------------------------
2021/03/13 22:27:07 Tests Summary:
2021/03/13 22:27:07 3 (of 3) tests passed, 0 tests failed; rated as 100.00%
2021/03/13 22:27:07
2021/03/13 22:27:07 Time Spent: 8.108s
2021/03/13 22:27:07 -----------------------------------------------------------------------------------
name: volha_huryna, master/ce1a2e0 @ 2021-03-11 21:58:59 +0000
2021/03/13 22:27:07 config: tests/filter-tomcat_url.yml
2021/03/13 22:27:07 verbosity: 2
2021/03/13 22:27:07 -----------------------------------------------------------------------------------
2021/03/13 22:27:07 Running '3.2 Custom Filter "tomcat_url"', 1..4 tests
2021/03/13 22:27:07 -----------------------------------------------------------------------------------
2021/03/13 22:27:12 ✗ [3.2 Custom Filter "tomcat_url"] -> testing environment is built (Dockerfile is ok)
2021/03/13 22:27:12 Result: exit status 1
2021/03/13 22:27:12 Output:
Sending build context to Docker daemon 33.28kB
Step 1/3 : FROM centos:7
---> 8652b9f0cb4c
Step 2/3 : RUN yum install epel-release -y && yum install python-pip -y && pip install cryptography==3.2 && pip install ansible
---> Using cache
---> 379d7fc60a61
Step 3/3 : RUN ansible --version
---> Using cache
---> f71b98dbc876
Successfully built f71b98dbc876
Successfully tagged centos-tests-volha_huryna:latest
df29dbe2bfb37ee0a854974df61f5cb0ff1b62f7b19b7c662fb76023ee745821
test
2021/03/13 22:27:12 ✗ [3.2 Custom Filter "tomcat_url"] -> get correct url for tomcat bin (9.0.27)
2021/03/13 22:27:12 Result: exit status 1
2021/03/13 22:27:12 Output:
Error: No such container: test
2021/03/13 22:27:12 ✗ [3.2 Custom Filter "tomcat_url"] -> get correct url for tomcat bin (8.0.12)
2021/03/13 22:27:12 Result: exit status 1
2021/03/13 22:27:12 Output:
Error: No such container: test
2021/03/13 22:27:12 ✗ [3.2 Custom Filter "tomcat_url"] -> get correct url for tomcat bin (random version)
2021/03/13 22:27:12 Result: exit status 1
2021/03/13 22:27:12 Output:
Error: No such container: test
2021/03/13 22:27:12 -----------------------------------------------------------------------------------
2021/03/13 22:27:12 Tests Summary:
2021/03/13 22:27:12 0 (of 4) tests passed, 4 tests failed; rated as 0.00%
2021/03/13 22:27:12
2021/03/13 22:27:12 Time Spent: 5.184s
2021/03/13 22:27:12 -----------------------------------------------------------------------------------
name: volha_huryna, master/ce1a2e0 @ 2021-03-11 21:58:59 +0000
2021/03/13 22:27:12 config: tests/filter-tomcat_checksum.yml
2021/03/13 22:27:12 verbosity: 2
2021/03/13 22:27:12 -----------------------------------------------------------------------------------
2021/03/13 22:27:12 Running '3.2 Custom Filter "tomcat_checksum"', 1..4 tests
2021/03/13 22:27:12 -----------------------------------------------------------------------------------
2021/03/13 22:27:18 ✗ [3.2 Custom Filter "tomcat_checksum"] -> testing environment is built (Dockerfile is ok)
2021/03/13 22:27:18 Result: exit status 1
2021/03/13 22:27:18 Output:
Sending build context to Docker daemon 33.28kB
Step 1/3 : FROM centos:7
---> 8652b9f0cb4c
Step 2/3 : RUN yum install epel-release -y && yum install python-pip -y && pip install cryptography==3.2 && pip install ansible
---> Using cache
---> 379d7fc60a61
Step 3/3 : RUN ansible --version
---> Using cache
---> f71b98dbc876
Successfully built f71b98dbc876
Successfully tagged centos-tests-volha_huryna:latest
c572ac90b54fd384967a3a9e5fd8e2964d6400bb5b2e653eac7956cba4c8cbff
test
2021/03/13 22:27:18 ✗ [3.2 Custom Filter "tomcat_checksum"] -> get tomcat v9.0.27 checksum
2021/03/13 22:27:18 Result: exit status 1
2021/03/13 22:27:18 Output:
Error: No such container: test
2021/03/13 22:27:18 ✗ [3.2 Custom Filter "tomcat_checksum"] -> get tomcat v8.0.32 checksum
2021/03/13 22:27:18 Result: exit status 1
2021/03/13 22:27:18 Output:
Error: No such container: test
2021/03/13 22:27:18 ✗ [3.2 Custom Filter "tomcat_checksum"] -> get tomcat v8.0.132 checksum
2021/03/13 22:27:18 Result: exit status 1
2021/03/13 22:27:18 Output:
Error: No such container: test
2021/03/13 22:27:19 -----------------------------------------------------------------------------------
2021/03/13 22:27:19 Tests Summary:
2021/03/13 22:27:19 0 (of 4) tests passed, 4 tests failed; rated as 0.00%
2021/03/13 22:27:19
2021/03/13 22:27:19 Time Spent: 6.714s
2021/03/13 22:27:19 -----------------------------------------------------------------------------------
name: volha_huryna, master/ce1a2e0 @ 2021-03-11 21:58:59 +0000
2021/03/13 22:27:19 config: tests/module-wget.yml
2021/03/13 22:27:19 verbosity: 2
2021/03/13 22:27:19 -----------------------------------------------------------------------------------
2021/03/13 22:27:19 Running '3.2 Custom module "wget"', 1..9 tests
2021/03/13 22:27:19 -----------------------------------------------------------------------------------
2021/03/13 22:27:33 ✓ [3.2 Custom module "wget"] => testing environment is built (Dockerfile is ok) (1), 14.182s
2021/03/13 22:27:38 ✓ [3.2 Custom module "wget"] => should download tomcat tar.gz by src url to dest folder (1), 5.181s
2021/03/13 22:27:42 ✓ [3.2 Custom module "wget"] => should recognize that current state is up to date (1), 4.137s
2021/03/13 22:27:46 ✗ [3.2 Custom module "wget"] -> should update existing file if it's is broken
2021/03/13 22:27:46 Result: exit status 1
2021/03/13 22:27:46 Output:
035d2ad58e3b ansible-test "sleep infinity" 20 seconds ago Up 19 seconds test
(run, /tmp/students-3/volha_huryna/day3/3.2) => ansible test -i test, -c docker -m wget -a "src=https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz dest=/tmp/"
rc: 0
output: |
test | SUCCESS => {
 "ansible_facts": {
 "discovered_interpreter_python": "/usr/bin/python"
 },
 "changed": false,
 "meta": {
 "chksum": null,
 "dest": "/tmp/",
 "group": null,
 "mode": null,
 "owner": null,
 "src": "https://archive.apache.org/dist/tomcat/tomcat-8/v8.0.32/bin/apache-tomcat-8.0.32.tar.gz"
 },
 "msg": "No anything to do. No chksum parameters"
}
Stdout Assertion Failed (Partial, '"changed": true')
2021/03/13 22:27:51 ✓ [3.2 Custom module "wget"] => existing file doesn't correspond to provided chksum (1), 5.009s
2021/03/13 22:27:56 ✓ [3.2 Custom module "wget"] => should change ownership if it's required (1), 4.306s
2021/03/13 22:27:59 ✓ [3.2 Custom module "wget"] => should fail on changing ownership to wrong user (1), 3.735s
2021/03/13 22:28:03 ✓ [3.2 Custom module "wget"] => should change access mode if it's required (1), 4.05s
2021/03/13 22:28:08 ✓ [3.2 Custom module "wget"] => should fail if downloaded file doesn't correspond to provided checksum (1), 4.962s
2021/03/13 22:28:09 -----------------------------------------------------------------------------------
2021/03/13 22:28:09 Tests Summary:
2021/03/13 22:28:09 8 (of 9) tests passed, 1 tests failed; rated as 88.89%
2021/03/13 22:28:09
2021/03/13 22:28:09 Time Spent: 50.454s
2021/03/13 22:28:09 -----------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment