Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(FACT-1281) Simplify acceptance tests #1255

Conversation

joshcooper
Copy link
Contributor

This commit removes support for packages type of acceptance, bumps our beaker dependency, and uses beaker's updated install_puppet_agent_dev_repo_on method to install puppet-agent on all platforms.

Previously, `rake ci:test:packages` was the default rake target, but was
unusable, because we don't build non-AIO packages anymore.

This commit removes support for that rake task and changes the default
to `aio`.
Previously, the presuite for AIO called `install_repos_on` for all host
platforms, which was implemented in facter's install_utils helper. For
redhat and debian platforms the method installed the corresponding
repo_config. For other platforms, e.g. Windows, OSX, it installed
puppet-agent using `install_puppet_agent_dev_repo_on`.

For redhat and debian platforms, the presuite then called Beaker's
`install_packages_on` method to execute `yum install puppet-agent`, etc.

This commit modifies the presuite to install puppet-agent using Beaker's
`install_puppet_agent_dev_repo_on` on all platforms. On rpm/deb
platforms, it installs the repo_config and uses the package manager to
install puppet-agent, e.g.  `yum install -y puppet-agent`.

The previous commit removed `packages` style acceptance testing, and
`aio` no longer calls `install_repos_on`, so this commit removes it
along with related helper code.

This commit bumps our Beaker dependency to use the latest
`install_puppet_agent_dev_repo` method.
@joshcooper
Copy link
Contributor Author

verified using:

SHA=5c59c61a4d02ffb32135c9eb327136c7ab64bbca
SUITE_VERSION=1.3.2.216.g5c59c61

test_targets=(
        arista4-32a
        centos4-64a centos4-32a
        cumulus25-64a
        debian6-64a debian6-32a
        debian7-64a debian7-32a
        debian8-64a debian8-32a
        fedora21-64a fedora21-32a
        fedora22-64a fedora22-32a
        osx109-64a
        osx1010-64a
        osx1011-64a
        redhat5-64a redhat5-32a
        redhat6-64a redhat6-32a
        redhat7-64a
        sles10-64a sles10-32a
        sles11-64a sles11-32a
        sles12-64a
        solaris10-64a
        solaris11-64a
        ubuntu1004-64a ubuntu1004-32a
        ubuntu1204-64a ubuntu1204-32a
        ubuntu1404-64a ubuntu1404-32a
        ubuntu1504-64a ubuntu1504-32a
        ubuntu1510-64a ubuntu1510-32a
        windows2008r2-64a windows2008r2-6432a
        windows2012r2-64a windows2012r2-6432a )

@joshcooper
Copy link
Contributor Author

@er0ck @johnduarte @MikaelSmith similar changes to facter

@@ -10,7 +10,7 @@ def location_for(place, fake_version = nil)
end
end

gem "beaker", *location_for(ENV['BEAKER_VERSION'] || "~> 2.27")
gem "beaker", *location_for(ENV['BEAKER_VERSION'] || "~> 2.32")
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you trying to prevent this from updating Y version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wanting to ensure we install at least 2.32.0 (but less than 3.0) since 2.32 is the first version that contains the correct install_puppet_agent_dev_repo_on implementation.

@er0ck
Copy link

er0ck commented Jan 13, 2016

LGTM 👍

@johnduarte
Copy link

👍

er0ck added a commit that referenced this pull request Jan 13, 2016
…lify-acceptance-tests

(FACT-1281) Simplify acceptance tests
@er0ck er0ck merged commit 15b3419 into puppetlabs:stable Jan 13, 2016
@johnduarte
Copy link

Passed on AIX 6.1

@joshcooper joshcooper deleted the ticket/stable/FACT-1281-simplify-acceptance-tests branch March 3, 2023 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants