Skip to content

Commit 9eee08d

Browse files
authored
Removing wrapper-example from splunk-ansible (#337)
* Removing wrapper-example from splunk-ansible * Adding tests
1 parent 0d52a37 commit 9eee08d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ Jenkinsfile
1515
**/test-results
1616
**/molecule
1717
**/*.md
18+
**/wrapper-example

tests/test_docker_splunk.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,11 @@ def test_splunk_entrypoint_no_provision(self):
389389
exec_command = self.client.exec_create(cid, "cat /opt/ansible/version.txt")
390390
std_out = self.client.exec_start(exec_command)
391391
assert len(std_out.strip()) == 40
392+
# Check that the wrapper-example directory does not exist
393+
exec_command = self.client.exec_create(cid, "ls /opt/ansible/")
394+
std_out = self.client.exec_start(exec_command)
395+
assert "wrapper-example" not in std_out
396+
assert "docs" not in std_out
392397
except Exception as e:
393398
self.logger.error(e)
394399
raise e
@@ -467,6 +472,11 @@ def test_uf_entrypoint_no_provision(self):
467472
exec_command = self.client.exec_create(cid, "cat /opt/ansible/version.txt")
468473
std_out = self.client.exec_start(exec_command)
469474
assert len(std_out.strip()) == 40
475+
# Check that the wrapper-example directory does not exist
476+
exec_command = self.client.exec_create(cid, "ls /opt/ansible/")
477+
std_out = self.client.exec_start(exec_command)
478+
assert "wrapper-example" not in std_out
479+
assert "docs" not in std_out
470480
except Exception as e:
471481
self.logger.error(e)
472482
raise e

0 commit comments

Comments
 (0)