Browse Source

Add Puppet Litmus

Depends-On: https://review.opendev.org/#/c/740601/
Change-Id: Ib09e32db27e71384f122b54a6d1d269aa1e1a375
changes/08/749108/1
Tobias Urdin 11 months ago
parent
commit
58f3f8adc0
  1. 2
      .zuul.yaml
  2. 27
      README.md
  3. 4
      spec/acceptance/basic_glance_spec.rb
  4. 11
      spec/acceptance/nodesets/centos-70-x64.yml
  5. 10
      spec/acceptance/nodesets/default.yml
  6. 10
      spec/acceptance/nodesets/nodepool-bionic.yml
  7. 10
      spec/acceptance/nodesets/nodepool-centos7.yml
  8. 10
      spec/acceptance/nodesets/nodepool-centos8.yml
  9. 10
      spec/acceptance/nodesets/nodepool-trusty.yml
  10. 10
      spec/acceptance/nodesets/nodepool-xenial.yml
  11. 11
      spec/acceptance/nodesets/ubuntu-server-1404-x64.yml
  12. 2
      spec/spec_helper_acceptance.rb

2
.zuul.yaml

@ -3,7 +3,7 @@
- puppet-openstack-check-jobs
- puppet-openstack-module-unit-jobs
- puppet-openstack-integration-jobs-all
- puppet-openstack-beaker-jobs
- puppet-openstack-litmus-jobs
- tripleo-puppet-undercloud
- release-notes-jobs-python3
check:

27
README.md

@ -15,11 +15,10 @@ glance
3. [Setup - The basics of getting started with glance](#setup)
4. [Implementation - An under-the-hood peek at what the module is doing](#implementation)
5. [Limitations - OS compatibility, etc.](#limitations)
6. [Beaker-Rspec - Beaker-rspec tests for the project](#beaker-rspec)
7. [Development - Guide for contributing to the module](#development)
8. [Release Notes - Release notes for the project](#release-notes)
9. [Contributors - Those with commits](#contributors)
10. [Repository - The project source code repository](#repository)
6. [Development - Guide for contributing to the module](#development)
7. [Release Notes - Release notes for the project](#release-notes)
8. [Contributors - Those with commits](#contributors)
9. [Repository - The project source code repository](#repository)
Overview
--------
@ -215,24 +214,6 @@ Limitations
* Only supports configuring the file, swift and rbd storage backends.
Beaker-Rspec
------------
This module has beaker-rspec tests
To run the tests on the default vagrant node:
To run:
```shell
bundle install
bundle exec rspec spec/acceptance
```
For more information on writing and running beaker-rspec tests visit the documentation:
* https://github.com/puppetlabs/beaker-rspec/blob/master/README.md
Development
-----------

4
spec/acceptance/basic_glance_spec.rb

@ -32,10 +32,10 @@ describe 'glance class' do
describe 'glance images' do
it 'should create a glance image with proper attributes' do
glance_env_opts = '--os-identity-api-version 3 --os-username glance --os-password a_big_secret --os-project-name services --os-user-domain-name Default --os-project-domain-name Default --os-auth-url http://127.0.0.1:5000/v3'
shell("openstack #{glance_env_opts} image list") do |r|
command("openstack #{glance_env_opts} image list") do |r|
expect(r.stdout).to match(/test_image/)
end
shell("openstack #{glance_env_opts} image show test_image --format shell") do |r|
command("openstack #{glance_env_opts} image show test_image --format shell") do |r|
expect(r.stdout).to match(/visibility="public"/)
expect(r.stdout).to match(/container_format="bare"/)
expect(r.stdout).to match(/disk_format="qcow2"/)

11
spec/acceptance/nodesets/centos-70-x64.yml

@ -1,11 +0,0 @@
HOSTS:
centos-server-70-x64:
roles:
- master
platform: el-7-x86_64
box: puppetlabs/centos-7.0-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/centos-7.0-64-nocm
hypervisor: vagrant
CONFIG:
log_level: debug
type: foss

10
spec/acceptance/nodesets/default.yml

@ -1,10 +0,0 @@
HOSTS:
ubuntu-server-14.04-amd64:
roles:
- master
platform: ubuntu-14.04-amd64
box: puppetlabs/ubuntu-14.04-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
hypervisor: vagrant
CONFIG:
type: foss

10
spec/acceptance/nodesets/nodepool-bionic.yml

@ -1,10 +0,0 @@
HOSTS:
ubuntu-18.04-amd64:
roles:
- master
platform: ubuntu-18.04-amd64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

10
spec/acceptance/nodesets/nodepool-centos7.yml

@ -1,10 +0,0 @@
HOSTS:
centos-70-x64:
roles:
- master
platform: el-7-x86_64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

10
spec/acceptance/nodesets/nodepool-centos8.yml

@ -1,10 +0,0 @@
HOSTS:
centos-80-x64:
roles:
- master
platform: el-8-x86_64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

10
spec/acceptance/nodesets/nodepool-trusty.yml

@ -1,10 +0,0 @@
HOSTS:
ubuntu-14.04-amd64:
roles:
- master
platform: ubuntu-14.04-amd64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

10
spec/acceptance/nodesets/nodepool-xenial.yml

@ -1,10 +0,0 @@
HOSTS:
ubuntu-16.04-amd64:
roles:
- master
platform: ubuntu-16.04-amd64
hypervisor: none
ip: 127.0.0.1
CONFIG:
type: foss
set_env: false

11
spec/acceptance/nodesets/ubuntu-server-1404-x64.yml

@ -1,11 +0,0 @@
HOSTS:
ubuntu-server-14.04-amd64:
roles:
- master
platform: ubuntu-14.04-amd64
box: puppetlabs/ubuntu-14.04-64-nocm
box_url: https://vagrantcloud.com/puppetlabs/ubuntu-14.04-64-nocm
hypervisor: vagrant
CONFIG:
log_level: debug
type: foss

2
spec/spec_helper_acceptance.rb

@ -1 +1 @@
require 'puppet-openstack_spec_helper/beaker_spec_helper'
require 'puppet-openstack_spec_helper/litmus_spec_helper'
Loading…
Cancel
Save