Lines Matching defs:image

36 import pkg.client.image as image
73 """ Create an image, verify it. """
81 self.pkg("image-create -@", exit=2)
82 self.pkg("image-create --bozo", exit=2)
83 self.pkg("image-create", exit=2)
85 self.pkg("image-create --facet foo=NONE -p test1={0} {1}".format(
87 self.pkg("image-create --facet foo= -p test1={0} {1}".format(
89 self.pkg("image-create --facet foo -p test1={0} {1}".format(
92 self.pkg("image-create --set-property foo -p test1={0} {1}".format(
94 self.pkg("image-create --set-property foo=bar --set-property "
97 self.pkg("image-create -g {0} {1}".format(self.rurl1, self.test_root),
99 self.pkg("image-create -m {0} {1}".format(self.rurl1, self.test_root),
101 self.pkg("image-create -g {0} -m {1} {2}".format(self.rurl1,
105 """Take an image path and fmri. Write a file to disk that
123 """Ensure that image creation works as expected when an image
128 # Bug 3588: Make sure we can't create an image where one
130 self.pkg("image-create -p test1={0} {1}/3588_image".format(
132 self.pkg("image-create -p test1={0} {1}/3588_image".format(
135 # Make sure we can create an image where one
137 self.pkg("image-create -p test1={0} {1}/3588_image_1".format(
139 self.pkg("image-create -f -p test1={0} {1}/3588_image_1".format(
142 # Bug 3588: Make sure we can't create an image where a
148 self.pkg("image-create -p test1={0} {1}".format(self.rurl1, p),
150 self.pkg("image-create -f -p test1={0} {1}".format(self.rurl1, p))
153 # already exists when creating an image where one
156 self.pkg("image-create -p test1={0} {1}".format(self.rurl1,
164 self.pkg("image-create -f -p test1={0} {1}".format(self.rurl1,
172 # a pkg command run from within the target image.
175 img = image.Image(img_path, should_exist=True,
206 # Loading an image changed the cwd, so change it back.
211 information work as expected for image-create."""
215 self.pkg("image-create {0} test1={1} {2}".format(opt,
229 self.pkg("image-create -p test1={0} {1} {2} {3}".format(self.rurl1,
245 self.pkg("image-create --no-refresh --set-property \
263 self.pkg("image-create -p test1={0} {1} {2} {3}".format(self.rpath1,
277 self.pkg("image-create -p {0} {1}".format(self.rurl1, img_path))
287 self.pkg("image-create -p test1={0} {1}".format(self.rurl1, img_path))
297 self.pkg("image-create -p test1={0} -g {1} -m {2} {3}".format(
311 information provided to image-create will not result in an
312 empty image being created despite failure. In addition,
314 in the creation of an image."""
318 # Invalid URIs should not result in the creation of an image.
319 self.pkg("image-create -p test=InvalidURI {0}".format(p), exit=1)
322 self.pkg("image-create -p InvalidURI {0}".format(p), exit=1)
327 # an image should not be created.
328 self.pkg("image-create --no-refresh -p {0} {1}".format(self.rurl1, p),
333 # not create an image.
334 self.pkg("image-create -p nosuchpub={0} {1}".format(self.rurl1, p),
340 # create an image.
341 self.pkg("image-create -p {0} {1}".format(self.durl5, p),
346 """Verify that an image with a relative path for the root is
353 # Now verify that the image root isn't duplicated within the
354 # specified image root if the specified root doesn't already
357 self.pkg("image-create -p test1={0} {1}".format(self.rurl1,
364 # Now verify that the image root isn't duplicated within the
365 # specified image root if the specified root already exists.
368 self.pkg("image-create -p test1={0} {1}".format(self.rurl1,
376 """Verify that image-create --no-refresh works as expected.
385 # First, check to be certain that an image-create --no-refresh
398 """Verify that the pkg(1) command handles invalid image state
407 # First, create a new image.
413 # Now invalidate the existing image data.
446 image-create."""
451 self.pkg("image-create -p test1={0} {1}/image".format(
455 """Verify that pkg image create will still pass if
473 # Test image create will fail if repo_uri
475 self.pkg(("image-create --no-refresh -p foo=http://{0}"
479 # Test image create will fail if there are no https url
480 self.pkg(("image-create --no-refresh -p foo=http://{0}"
484 # Test image create will succeed if one origin as https
485 self.pkg(("image-create --no-refresh -p foo=http://{0}"
490 # Test image create will succeed if one mirror has https
491 self.pkg(("image-create --no-refresh -p foo=http://{0}"
500 """ Create image from non-existent server """
520 """Bug 763, traceback 3: -p given to image-create, but no
524 self.pkg, "image-create -p foo")
530 self.pkg, "image-create -p $%^8" + ("=http://{0}1".format(
534 self.pkg, "image-create -p test1=http://$%^8")
537 self.pkg, "image-create -p test1=http://{0}1:abcde".format(
541 self.pkg, "image-create -p test1=ftp://{0}1".format(
545 self.pkg, "image-create -p test1=ftp://{0}1 -p test2=http://{1}2:abc".format(