Lines Matching full:container
22 # A reference to an existing base container that can be copied for tests that
23 # need a base container. This is an optimization.
25 # The reference container can either be a reference to an existing container, or
26 # to a container that was downloaded by this test. If the latter, then it needs
45 self.fail('Base container was not valid.\n%s' %
50 base = lxc.Container.clone(src=reference_container,
56 # Precondition: ensure base exists and is a valid container.
61 # Verify that the base container was cleaned up.
71 # snapshots of full container clones. BaseImage cleanup code assumes
72 # that the base container is not a snapshot.
73 base = lxc.Container.clone(src=reference_container,
80 clones.append(lxc.Container.clone(src=base,
86 for container in clones:
87 container.refresh_status()
94 for container in clones:
97 # container.
99 os.path.join(container.container_path, container.name)))
103 # container.
105 container.refresh_status()
124 """Verifies that setup works for moblab base container.
129 # Set up the bucket, then start the base container, and verify it works.
131 container = self.manager.base_container
133 container.start(wait_for_network=False)
134 self.assertTrue(container.is_running())
137 "Moblab does not support the regular base container.")
139 """Verifies that setup works for base container.
145 container = self.manager.base_container
147 container.start(wait_for_network=False)
148 self.assertTrue(container.is_running())
153 """Context manager for creating a scoped base container for testing.
155 @param name: (optional) Name of the base container. If this is not
156 provided, the default base container name is used.
158 container = lxc.Container.clone(src=reference_container,
164 yield container
167 container.destroy()
173 Sets up a test directory along with a reference container that is used by
174 tests that need an existing base container.
183 # isn't an easy way to download and configure a base container. So even
193 """Deletes the test dir and reference container."""