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

(maint) Add beaker-abs compatible with beaker 2-3 #372

Merged
merged 1 commit into from
Oct 27, 2016

Conversation

joshcooper
Copy link
Contributor

Add beaker-abs dependency, version 0.2.0 is compatible with beaker 2 and 3.

Add beaker-abs dependency, version 0.2.0 is compatible with beaker 2 and 3.
@puppetcla
Copy link

CLA signed by all contributors.

@joshcooper
Copy link
Contributor Author

$ export ABS_RESOURCE_HOSTS='[{"hostname":"ee7q486y68sf9qp.delivery.puppetlabs.net","type":"redhat-7-x86_64","engine":"vmpooler"}]'
$ bundle exec beaker-hostgenerator --hypervisor abs --global pooling_api=https://vmpooler-cinext.delivery.puppetlabs.net --disable-default-role redhat7-64a > hosts.cfg
$ bundle exec rake ci:test:aio SHA=1.7.1 SUITE_VERSION=1.7.1 BEAKER_HOSTS=hosts.cfg
./config/aio/options.rb
./local_options.rb
No options file found at /Users/josh/work/hiera/acceptance/local_options.rb
beaker --options-file merged_options.rb --hosts=hosts.cfg
Beaker!
      wWWWw
      |o o|
      | O |  2.51.0!
      |(")|
     / \X/ \
    |   V   |
    |   |   |
{
    "project": "Beaker",
    "department": "unknown",
    "created_by": "josh",
    "host_tags": {},
    "openstack_api_key": null,
    "openstack_username": null,
    "openstack_auth_url": "/tokens",
    "openstack_tenant": null,
    "openstack_keyname": null,
    "openstack_network": null,
    "openstack_region": null,
    "jenkins_build_url": null,
    "validate": true,
    "configure": true,
    "log_level": "debug",
    "trace_limit": 10,
    "master-start-curl-retries": 120,
    "masterless": false,
    "options_file": "merged_options.rb",
    "type": "aio",
    "provision": true,
    "preserve_hosts": "onfail",
    "root_keys": true,
    "quiet": false,
    "project_root": "/Users/josh/work/hiera/acceptance/.bundle/ruby/2.2.0/gems/beaker-2.51.0/lib/beaker",
    "xml_dir": "junit",
    "xml_file": "beaker_junit.xml",
    "xml_time": "beaker_times.xml",
    "xml_time_enabled": false,
    "xml_stylesheet": "junit.xsl",
    "default_log_prefix": "beaker_logs",
    "log_dir": "log",
    "log_sut_event": "sut.log",
    "color": false,
    "dry_run": false,
    "tag_includes": [],
    "tag_excludes": [],
    "timeout": 900,
    "fail_mode": "slow",
    "accept_all_exit_codes": false,
    "timesync": false,
    "disable_iptables": false,
    "set_env": true,
    "disable_updates": true,
    "repo_proxy": true,
    "package_proxy": false,
    "add_el_extras": false,
    "epel_url": "https://dl.fedoraproject.org/pub/epel",
    "epel_arch": "i386",
    "epel_7_pkg": "epel-release-7-8.noarch.rpm",
    "epel_6_pkg": "epel-release-6-8.noarch.rpm",
    "epel_5_pkg": "epel-release-5-4.noarch.rpm",
    "consoleport": 443,
    "pe_dir": "/opt/enterprise/dists",
    "pe_version_file": "LATEST",
    "pe_version_file_win": "LATEST-win",
    "host_env": {},
    "host_name_prefix": null,
    "ssh_env_file": "~/.ssh/environment",
    "profile_d_env_file": "/etc/profile.d/beaker_env.sh",
    "dot_fog": "/Users/josh/.fog",
    "ec2_yaml": "config/image_templates/ec2.yaml",
    "help": false,
    "collect_perf_data": "none",
    "puppetdb_port_ssl": 8081,
    "puppetdb_port_nonssl": 8080,
    "puppetserver_port": 8140,
    "nodeclassifier_port": 4433,
    "cache_files_locally": true,
    "aws_keyname_modifier": "2075256394",
    "run_in_parallel": [],
    "ssh": {
        "config": false,
        "paranoid": false,
        "auth_methods": [
            "publickey"
        ],
        "port": 22,
        "forward_agent": true,
        "keys": [
            "~/.ssh/id_rsa-acceptance"
        ],
        "user_known_hosts_file": "/Users/josh/.ssh/known_hosts",
        "keepalive": true
    },
    "helper": [
        "lib/helper.rb"
    ],
    "tests": [
        "tests/yaml_backend/00-setup.rb",
        "tests/yaml_backend/01-lookup_data_without_a_key.rb",
        "tests/yaml_backend/02-lookup_data_with_no_options.rb",
        "tests/yaml_backend/03-lookup_data_with_a_scope.rb",
        "tests/yaml_backend/04-lookup_data_with_array_search.rb",
        "tests/yaml_backend/05-lookup_data_with_hash_search.rb"
    ],
    "xml": true,
    "pre_suite": [
        "setup/common/pre-suite/000-delete-puppet-when-none.rb",
        "setup/aio/pre-suite/010_Install.rb",
        "setup/aio/pre-suite/021_InstallAristaModule.rb"
    ],
    "hosts_file": "/Users/josh/work/hiera/acceptance/hosts.cfg",
    "command_line": "/Users/josh/work/hiera/acceptance/.bundle/ruby/2.2.0/bin/beaker --options-file merged_options.rb --hosts=hosts.cfg",
    "HOSTS": {
        "redhat7-64-1": {
            "pe_dir": null,
            "pe_ver": null,
            "pe_upgrade_dir": null,
            "pe_upgrade_ver": null,
            "hypervisor": "abs",
            "platform": "el-7-x86_64",
            "template": "redhat-7-x86_64",
            "roles": [
                "agent",
                "default"
            ],
            "host_tags": {}
        }
    },
    "nfs_server": "none",
    "pooling_api": "https://vmpooler-cinext.delivery.puppetlabs.net",
    "home": "/Users/josh",
    "load_path": [],
    "post_suite": [],
    "install": [],
    "pre_cleanup": [],
    "modules": [],
    "logger": "#<Beaker::Logger:0x007fa2c4e60578>",
    "timestamp": "2016-10-27 12:50:59 -0700",
    "beaker_version": "2.51.0"
}
Hypervisor for redhat7-64-1 is abs
Beaker::Hypervisor, found some abs boxes to create

ee7q486y68sf9qp.delivery.puppetlabs.net (redhat7-64-1) 12:50:59$ rpm -q curl
  Attempting ssh connection to ee7q486y68sf9qp.delivery.puppetlabs.net, user: root, opts: {:config=>false, :paranoid=>false, :auth_methods=>["publickey"], :port=>22, :forward_agent=>true, :keys=>["~/.ssh/id_rsa-acceptance"], :user_known_hosts_file=>"/Users/josh/.ssh/known_hosts", :keepalive=>true}
  curl-7.29.0-19.el7.x86_64

ee7q486y68sf9qp.delivery.puppetlabs.net (redhat7-64-1) executed in 0.82 seconds
...
      Test Suite: tests @ 2016-10-27 12:51:21 -0700

      - Host Configuration Summary -


              - Test Case Summary for suite 'tests' -
       Total Suite Time: 25.28 seconds
      Average Test Time: 4.21 seconds
              Attempted: 6
                 Passed: 6
                 Failed: 0
                Errored: 0
                Skipped: 0
                Pending: 0
                  Total: 6

@MikaelSmith MikaelSmith merged commit ac31eb5 into puppetlabs:LTS-1.7 Oct 27, 2016
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.

3 participants