Commit b4a133d7 authored by BAIRE Anthony's avatar BAIRE Anthony
Browse files

use /bin/sh as default entrypoint for test-app

parent 56945d3e
......@@ -217,7 +217,7 @@ class ControllerTestCase(unittest.TestCase):
docker_name = "test-app",
sandbox_state = SandboxState.idle,
docker_os = deb,
entrypoint = "/home/allgo/entrypoint",
entrypoint = "/bin/sh",
)
cls.session.add(app)
......@@ -945,16 +945,19 @@ class ControllerTestCase(unittest.TestCase):
@with_db
def test_sandbox_init_entrypoint(self, ses, app):
ctr = "%s-sandbox-%s" % (ENV, app.docker_name)
entrypoint = "/home/allgo/entrypoint"
# create sandbox from scratch
with preamble():
with ses.begin():
app.entrypoint = entrypoint
self.start_sandbox(app)
self.check_sandbox_running({app: "factory/test-busybox:latest"})
self.assertFalse(app.versions)
# ensure the dummy entrypoint is installed
ctr = "%s-sandbox-%s" % (ENV, app.docker_name)
entrypoint = "/home/allgo/entrypoint"
code, out = self.dk_exec(ctr, [entrypoint, "foo", "bar", "1", "2", "3"])
self.assertIn(b"This is app 'test-app' called with parameters 'foo bar 1 2 3'", out)
self.assertEqual(code, 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment