581N/A# The contents of this file are subject to the terms of the 581N/A# Common Development and Distribution License (the "License"). 581N/A# You may not use this file except in compliance with the License. 581N/A# See the License for the specific language governing permissions 581N/A# and limitations under the License. 581N/A# When distributing Covered Code, include this CDDL HEADER in each 581N/A# If applicable, add the following below this CDDL HEADER, with the 581N/A# fields enclosed by brackets "[]" replaced with your own identifying 581N/A# information: Portions Copyright [yyyy] [name of copyright owner] 3311N/A# Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. 988N/A add dir mode=0755 owner=root group=bin path=/lib 988N/A add dir mode=0755 owner=root group=bin path=/lib 988N/A add dir mode=0755 owner=root group=bin path=/bin 988N/A add dir mode=0755 owner=root group=bin path=/bin 1158N/A add dir mode=0755 owner=root group=bin path=/lib 1158N/A add dir mode=0755 owner=root group=bin path=/lib 1158N/A add depend type=require fmri=pkg:/quux@1.0 1158N/A add dir mode=0755 owner=root group=bin path=/lib 1158N/A add depend type=require fmri=pkg:/quux@1.1 1158N/A add dir mode=0755 owner=root group=bin path=/lib 1158N/A add depend type=require fmri=pkg:/corge@1.0 1158N/A add dir mode=0755 owner=root group=bin path=/usr 1158N/A add depend type=require fmri=pkg:/corge@1.1 1158N/A add dir mode=0755 owner=root group=bin path=/usr 1158N/A add dir mode=0755 owner=root group=bin path=/bin 1158N/A add dir mode=0755 owner=root group=bin path=/bin 2089N/A add depend type=incorporate fmri=foo@1.0 2089N/A add depend type=incorporate fmri=bar@1.0 2089N/A add set name=pkg.depend.install-hold value=test 2089N/A add depend type=incorporate fmri=foo@1.1 2089N/A add depend type=incorporate fmri=bar@1.1 2089N/A add set name=pkg.depend.install-hold value=test 3094N/A # An example of dueling incorporations for an upgrade case. 3094N/A open entire@5.12-5.12.0.0.0.45.0 3094N/A add set name=pkg.depend.install-hold value=core-os 3094N/A add set name=pkg.depend.install-hold value=core-os.osnet 3094N/A add set name=pkg.depend.install-hold value=core-os.osnet 1736N/A # Two repositories are created for test2. 1736N/A # Copy contents of repository 2 to repos 4 and 5. 2089N/A """Test update with bad options.""" 988N/A """Install packages from multiple publishers, then verify that 988N/A removal of the second publisher will not prevent an 988N/A # Install a package from the preferred publisher. 988N/A # Install a package from a second publisher. 988N/A # Remove the publisher of an installed package, then add the 2089N/A # publisher back, but with an empty repository. An update 988N/A # should still be possible. 1431N/A # Add two publishers with the same packages as a removed one; 2089N/A # an update should be possible despite the conflict (as 1158N/A # the newer versions will simply be ignored). 2089N/A # Remove one of the conflicting publishers. An update 1431N/A # should still be possible even though the conflicts no longer 1431N/A # exist and the original publisher is unknown (see bug 6856). 1431N/A # Remove the remaining test publisher. 2089N/A """Verify that updates work as expected when different 1158N/A publishers offer the same package.""" 1158N/A # First, verify that the preferred status of a publisher will 2089N/A # not affect which source is used for update when two 1158N/A # publishers offer the same package and the package publisher 1158N/A # was preferred at the time of install. 1158N/A # Next, verify that the preferred status of a publisher will 1158N/A # not cause an upgrade of a package if the newer version is 1158N/A # offered by the preferred publisher and the package publisher 1158N/A # was not preferred at the time of isntall and was not used 1158N/A # Finally, cleanup and verify no packages are installed. 2089N/A """Verify that update only updates specified packages.""" 2089N/A # Install a package from the preferred publisher. 2089N/A # Install a package from a second publisher. 2089N/A # Update just bar, and then verify foo wasn't updated. 2089N/A # Now update bar back to 1.0 and then verify that update '*', 2089N/A # update '*@*', or update without arguments will update all 2224N/A # Now rollback everything to 1.0, and then verify that 2224N/A # '@latest' will take everything to the latest version. 2420N/A """Test that when a package specified on the command line can't 2420N/A be upgraded because of a sticky publisher, the exception raised 2931N/A """Test that if we have multiple facets of equal length that 2931N/A we don't accidently report that there are image updates when 3025N/A """Test that update shows correct behavior w/ and w/o 3054N/A """ Test the content-update-policy property. When set to 3445N/A 'when-required' content should only be updated if the GELF content 3054N/A hash has changed, if set to 'always' content should be updated 3054N/A if there is any file change at all.""" 3054N/A """ Helper to get sha256 sum of installed test file.""" 3054N/A # Elftest1 and elftest2 have the same content and the same size, 3054N/A # just different entries in the comment section. The content 3054N/A # hash for both is the same, however the file hash is different. 3054N/A # get the sha256 sums from the original files to distinguish 3054N/A # what actually got installed 3054N/A # prepare image, install elftest@1.0 and verify 3054N/A # test default behavior (always update) 3054N/A # set policy to when-required, file shouldn't be updated 3054N/A # set policy to always, file should be updated now 3054N/A # do tests again for downgrading, test file shouldn't change 3054N/A # set policy to always, file should be updated now 3094N/A """Verify that dueling incorporations don't result in a 'no 3094N/A solution' error in a case sometimes found with 'nightly' 3094N/A "osnet-incorporation@5.12-5.12.0.0.0.45.25345 " 3094N/A # Failure is expected for these cases because an installed 3094N/A # incorporation prevents the upgrade of an installed dependency 3094N/A # required by the new packages. 3094N/A # Should fail and result in 'no solution' because user failed to 3094N/A # Should fail, but not result in 'no solution' because user 3094N/A # specified a particular package. 3094N/A # Should exit with 'nothing to do' since update to new version 3094N/A # of osnet-incorporation is not possible. 3277N/A # A pkg update (with no arguments) should not fail if we are a 3277N/A # linked image child because we're likely constrained by our 3317N/A add set name=pkg.description value="test package" 3317N/A add set name=pkg.description value="test package" 3317N/A add depend type=require fmri=idr1697@1 3317N/A add set name=pkg.description value="test package" 3317N/A add set name=pkg.description value="test package" 3317N/A add set name=pkg.description value="This incorporation constrains packages for the opscenter enterprise and proxy controller." 3317N/A add set name=pkg.description value="idr package" 3317N/A """Verify branch versioning that might that might lead to odd 3317N/A ordering of the possible FMRIs will not be erroneously trimmed 3317N/A during installation or removal.""" 3317N/A # If branch versioning ordering is working correctly, the next 3317N/A # two packages should be installable. 3317N/A # If branch ordering is broken, only this package will be 3317N/A # If branch ordering is broken, the upgrade will fail because 3317N/A # em-oc-common won't be installable despite removal of the idr. 2681N/A open pkg://pub2/a@1.0,5.11-0 2681N/A open pkg://pub2/a@2.0,5.11-0 2681N/A # Test that naming a specific publisher and stem will override 2681N/A # Test that naming a specific publisher will correctly change 2681N/A # the publisher of the installed package. 2681N/A # Test that a specific publisher and stem will override an 2681N/A # unspecified publisher with a specific stem. 2681N/A # Test that a specific publisher with a wildcard will override a 2681N/A # unspecified publisher with a wildcard. 2681N/A # Test that a specific stem without a specific publisher 2681N/A # overrides a specific publisher without a specific stem. 2681N/A # Test that conflicting publishers results in an error.