# When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. # import testutils if __name__ == "__main__": testutils.setup_environment("../../../proto") import pkg5unittest import os import shutil import stat import time import unittest import pkg.client.api as api import pkg.client.publisher as publisher LIST_ALL = api.ImageInterface.LIST_ALL class TestApiRefresh(pkg5unittest.ManyDepotTestCase):
# When distributing Covered Code, include this CDDL HEADER in each # file and include the License file at usr/src/OPENSOLARIS.LICENSE. # If applicable, add the following below this CDDL HEADER, with the # fields enclosed by brackets "[]" replaced with your own identifying # information: Portions Copyright [yyyy] [name of copyright owner] # # CDDL HEADER END # # # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. # import testutils if __name__ == "__main__": testutils.setup_environment("../../../proto") import pkg5unittest import os class TestPkgAvoid(pkg5unittest.SingleDepotTestCase): # Only start/stop the depot once (instead of for every test) persistent_setup = True pkgs = """ open [email protected],5.11-0 add depend type=require fmri=liveroot close open [email protected],5.11-0 add depend type=group fmri=liveroot close