Add Puppet Litmus

Depends-On: https://review.opendev.org/#/c/751890/
Change-Id: Ia13ddf28332053f08c8e7ecab6f41d8643260bf2
This commit is contained in:
Tobias Urdin 2020-08-31 22:04:15 +02:00
parent 5c975ae14c
commit e1a7353395
12 changed files with 10 additions and 107 deletions

View File

@ -3,5 +3,5 @@
- puppet-openstack-check-jobs
- puppet-openstack-module-unit-jobs
- puppet-openstack-integration-jobs-all
- puppet-openstack-beaker-jobs
- puppet-openstack-litmus-jobs
- release-notes-jobs-python3

View File

@ -16,8 +16,7 @@ VSwitch
4. [Release Notes - Release notes for the project](#release-notes)
5. [Repository - The project source code repository](#repository)
6. [Usage - The usage of the module](#usage)
7. [Beaker-Rspec - Beaker-rspec tests for the project](#beaker-rspec)
8. [TODO - What to do next](#todo)
7. [TODO - What to do next](#todo)
Overview
--------
@ -107,18 +106,6 @@ vs_config { 'array_key':
}
```
Beaker-Rspec
-------------
This module has beaker-rspec tests
To run:
```shell
bundle install
bundle exec rspec spec/acceptance
```
TODO:
-------------
* OpenFlow controller settings

View File

@ -11,7 +11,7 @@ describe 'basic vswitch' do
include vswitch::ovs
vs_bridge { 'br-beaker':
vs_bridge { 'br-ci':
ensure => present,
}
@ -27,17 +27,15 @@ describe 'basic vswitch' do
apply_manifest(pp, :catch_changes => true)
end
describe command('ovs-vsctl show') do
describe '#stdout' do
subject { super().stdout }
it { is_expected.to match /br-beaker/ }
it 'should have br-ci bridge' do
command('ovs-vsctl show') do |r|
expect(r.stdout).to match(/br-ci/)
end
end
describe command('ovs-vsctl get Open_vSwitch . external_ids:ovn-remote') do
describe '#stdout' do
subject { super().stdout }
it { is_expected.to match /\"tcp:127.0.0.1:2300\"/ }
it 'should get remote addr' do
command('ovs-vsctl get Open_vSwitch . external_ids:ovn-remote') do |r|
expect(r.stdout).to match(/\"tcp:127.0.0.1:2300\"/)
end
end
end

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1 +1 @@
require 'puppet-openstack_spec_helper/beaker_spec_helper'
require 'puppet-openstack_spec_helper/litmus_spec_helper'