Skip to content

Commit 4ffa1be

Browse files
committed
Add tmpfs integration test
Signed-off-by: Aanand Prasad <[email protected]>
1 parent a054509 commit 4ffa1be

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/integration/container_test.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,22 @@ def test_create_with_environment_variable_no_value(self):
382382
sorted(['Foo', 'Other=one', 'Blank='])
383383
)
384384

385+
@requires_api_version('1.22')
386+
def test_create_with_tmpfs(self):
387+
tmpfs = {
388+
'/tmp1': 'size=3M'
389+
}
390+
391+
container = self.client.create_container(
392+
BUSYBOX,
393+
['echo'],
394+
host_config=self.client.create_host_config(
395+
tmpfs=tmpfs))
396+
397+
self.tmp_containers.append(container['Id'])
398+
config = self.client.inspect_container(container)
399+
assert config['HostConfig']['Tmpfs'] == tmpfs
400+
385401

386402
class VolumeBindTest(helpers.BaseTestCase):
387403
def setUp(self):

0 commit comments

Comments
 (0)