Home | History | Annotate | Download | only in lxc

Lines Matching refs: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
46 self.fail('Base container was not valid.\n%s' %
52 base = lxc.Container.clone(src=reference_container,
58 # Precondition: ensure base exists and is a valid container.
63 # Verify that the base container was cleaned up.
74 # snapshots of full container clones. BaseImage cleanup code assumes
75 # that the base container is not a snapshot.
76 base = lxc.Container.clone(src=reference_container,
83 clones.append(lxc.Container.clone(src=base,
90 for container in clones:
91 container.refresh_status()
98 for container in clones:
101 # container.
103 os.path.join(container.container_path, container.name)))
107 # container.
109 container.refresh_status()
131 """Verifies that setup works for moblab base container.
136 # Set up the bucket, then start the base container, and verify it works.
138 container = self.manager.base_container
140 container.start(wait_for_network=False)
141 self.assertTrue(container.is_running())
145 "Moblab does not support the regular base container.")
147 """Verifies that setup works for base container.
153 container = self.manager.base_container
155 container.start(wait_for_network=False)
156 self.assertTrue(container.is_running())
161 """Context manager for creating a scoped base container for testing.
163 @param name: (optional) Name of the base container. If this is not
164 provided, the default base container name is used.
166 container = lxc.Container.clone(src=reference_container,
172 yield container
175 container.destroy()
181 Sets up a test directory along with a reference container that is used by
182 tests that need an existing base container.
191 # isn't an easy way to download and configure a base container. So even
201 """Deletes the test dir and reference container."""