diff --git a/.dockerignore b/.dockerignore index 41bc2b9b..cab751b7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -15,3 +15,4 @@ Jenkinsfile **/test-results **/molecule **/*.md +**/wrapper-example diff --git a/tests/test_docker_splunk.py b/tests/test_docker_splunk.py index 1a49c932..afc22cf0 100644 --- a/tests/test_docker_splunk.py +++ b/tests/test_docker_splunk.py @@ -389,6 +389,11 @@ def test_splunk_entrypoint_no_provision(self): exec_command = self.client.exec_create(cid, "cat /opt/ansible/version.txt") std_out = self.client.exec_start(exec_command) assert len(std_out.strip()) == 40 + # Check that the wrapper-example directory does not exist + exec_command = self.client.exec_create(cid, "ls /opt/ansible/") + std_out = self.client.exec_start(exec_command) + assert "wrapper-example" not in std_out + assert "docs" not in std_out except Exception as e: self.logger.error(e) raise e @@ -467,6 +472,11 @@ def test_uf_entrypoint_no_provision(self): exec_command = self.client.exec_create(cid, "cat /opt/ansible/version.txt") std_out = self.client.exec_start(exec_command) assert len(std_out.strip()) == 40 + # Check that the wrapper-example directory does not exist + exec_command = self.client.exec_create(cid, "ls /opt/ansible/") + std_out = self.client.exec_start(exec_command) + assert "wrapper-example" not in std_out + assert "docs" not in std_out except Exception as e: self.logger.error(e) raise e