• Home
  • Raw
  • Download

Lines Matching full:container

27 # A reference to an existing base container that can be copied for tests that
28 # need a base container. This is an optimization.
30 # The reference container can either be a reference to an existing container, or
31 # to a container that was downloaded by this test. If the latter, then it needs
50 self.fail('Base container was not valid.\n%s' %
55 base = lxc.Container.clone(src=reference_container,
61 # Precondition: ensure base exists and is a valid container.
66 # Verify that the base container was cleaned up.
76 # snapshots of full container clones. BaseImage cleanup code assumes
77 # that the base container is not a snapshot.
78 base = lxc.Container.clone(src=reference_container,
85 clones.append(lxc.Container.clone(src=base,
91 for container in clones:
92 container.refresh_status()
99 for container in clones:
102 # container.
104 os.path.join(container.container_path, container.name)))
108 # container.
110 container.refresh_status()
129 """Verifies that setup works for moblab base container.
134 # Set up the bucket, then start the base container, and verify it works.
136 container = self.manager.base_container
138 container.start(wait_for_network=False)
139 self.assertTrue(container.is_running())
142 "Moblab does not support the regular base container.")
144 """Verifies that setup works for base container.
150 container = self.manager.base_container
152 container.start(wait_for_network=False)
153 self.assertTrue(container.is_running())
158 """Context manager for creating a scoped base container for testing.
160 @param name: (optional) Name of the base container. If this is not
161 provided, the default base container name is used.
163 container = lxc.Container.clone(src=reference_container,
169 yield container
172 container.destroy()
178 Sets up a test directory along with a reference container that is used by
179 tests that need an existing base container.
188 # isn't an easy way to download and configure a base container. So even
198 """Deletes the test dir and reference container."""