@@ -40,7 +40,7 @@ class DeploymentTest(unittest.TestCase):
|
||||
def test_executor_mounts_socket_and_secret(self):
|
||||
self.stub('id', "print('0')")
|
||||
self.stub('sleep', '')
|
||||
self.stub('docker', "if sys.argv[1:2] == ['inspect']: sys.exit(1)")
|
||||
self.stub('docker', "if sys.argv[1:2] == ['inspect']:\n if '--format' in sys.argv: print('running 0')\n else: sys.exit(1)")
|
||||
secret = self.root / 'pgpass'
|
||||
secret.write_text('localhost:5432:governance:tester:example-only\n')
|
||||
secret.chmod(0o600)
|
||||
|
||||
Reference in New Issue
Block a user