Skip to content

Commit

Permalink
test: Add test_image_entrypoint()
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathonReinhart committed Jan 17, 2017
1 parent 9a9c6ae commit b43c136
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_main.py
Expand Up @@ -346,6 +346,19 @@ def test_arbitrary_docker_args(self):

assert_str_equalish(out, data)

def test_image_entrypoint(self):
'''Verify scuba doesn't interfere with the configured image ENTRYPOINT'''

with open('.scuba.yml', 'w') as f:
# This image was built with ENTRYPOINT ["echo"]
f.write('image: jreinhart/echo')

test_string = 'Hello world'
out, _ = self.run_scuba([test_string])
assert_str_equalish(test_string, out)




############################################################################
# Hooks
Expand Down

0 comments on commit b43c136

Please sign in to comment.