Skip to content

Commit 75584f2

Browse files
committed
Merge pull request #4 from tuxmea/rspec
rspec tests - lint cleanups thanks to @tuxmea
2 parents 57355f4 + 9a24770 commit 75584f2

File tree

19 files changed

+186
-17
lines changed

19 files changed

+186
-17
lines changed

.fixtures.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
fixtures:
2+
repositories:
3+
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
4+
"firewall": "git://github.com/puppetlabs/puppetlabs-firewall.git"
5+
"mysql": "git://github.com/rochaporto/puppet-mysql.git"
6+
symlinks:
7+
"cloudstack": "#{source_dir}"
8+

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ tests
88
environments
99
.idea
1010
*~
11+
Gemfile.lock
12+
.bundle
13+
vendor
14+
spec/fixtures

.travis.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: ruby
2+
rvm:
3+
- 1.8.7
4+
- 1.9.3
5+
- 2.1.4
6+
script:
7+
- "bundle exec rake spec SPEC_OPTS='--format documentation'"
8+
env:
9+
- PUPPET_VERSION="~> 2.6.0"
10+
- PUPPET_VERSION="~> 2.7.0"
11+
- PUPPET_VERSION="~> 3.0.0"
12+
- PUPPET_VERSION="~> 3.1.0"
13+
- PUPPET_VERSION="~> 3.8.0"
14+
- PUPPET_VERSION="~> 4.2"
15+
matrix:
16+
exclude:
17+
- rvm: 1.8.7
18+
env: PUPPET_VERSION="~> 4.2"
19+
- rvm: 1.9.3
20+
env: PUPPET_VERSION="~> 2.6.0"
21+
- rvm: 2.1.4
22+
env: PUPPET_VERSION="~> 2.6.0"
23+
- rvm: 2.1.4
24+
env: PUPPET_VERSION="~> 2.7.0"
25+
- rvm: 2.1.4
26+
env: PUPPET_VERSION="~> 3.0.0"
27+
- rvm: 2.1.4
28+
env: PUPPET_VERSION="~> 3.1.0"
29+
30+
sudo: false

Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source 'https://rubygems.org'
2+
3+
puppetversion = ENV['PUPPET_VERSION']
4+
gem 'puppet', puppetversion, :require => false
5+
gem 'puppet-lint'
6+
gem 'rspec', '~> 3.1.0', :platforms => :ruby_18
7+
gem 'puppetlabs_spec_helper', '>= 0.1.0'

Rakefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
require 'rubygems'
2+
require 'puppetlabs_spec_helper/rake_tasks'
3+
require 'puppet-lint'
4+
PuppetLint.configuration.send("disable_80chars")
5+
PuppetLint.configuration.send('disable_class_parameter_defaults')

manifests/cluster.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
"/usr/bin/curl \'${teststring_pod}\' | grep ${podid}",
4646
"/usr/bin/curl \'${teststring_cluster}\' | grep -v ${cluster}"
4747
],
48-
require => Exec[ 'cloud_setup_databases' ],
48+
require => Exec[ 'cloudstack_setup_databases' ],
4949
}
5050
}

manifests/init.pp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343

4444

4545
yumrepo{ 'cloudstack':
46-
descr => 'Cloudstack repo 4.5',
46+
descr => 'Cloudstack repo 4.5',
4747
baseurl => 'http://cloudstack.apt-get.eu/rhel/4.5/',
48-
# baseurl => 'http://cloudstack.apt-get.eu/rhel/4.4/',
4948
enabled => '1',
5049
gpgcheck => '0',
5150
}

manifests/mgmt.pp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,20 @@
7272

7373

7474
file { '/etc/cloudstack/management/tomcat6.conf':
75-
ensure => 'link',
76-
group => '0',
77-
mode => '0777',
78-
owner => '0',
79-
target => 'tomcat6-nonssl.conf',
75+
ensure => 'link',
76+
group => '0',
77+
mode => '0777',
78+
owner => '0',
79+
target => 'tomcat6-nonssl.conf',
8080
require => Package[ 'cloudstack-management' ],
8181
}
8282

8383
file { '/usr/share/cloudstack-management/conf/server.xml':
84-
ensure => 'link',
85-
group => '0',
86-
mode => '0777',
87-
owner => '0',
88-
target => 'server-nonssl.xml',
84+
ensure => 'link',
85+
group => '0',
86+
mode => '0777',
87+
owner => '0',
88+
target => 'server-nonssl.xml',
8989
require => Package[ 'cloudstack-management' ],
9090
}
9191

manifests/nfs-common.pp renamed to manifests/nfs_common.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Class: cloudstack::nfs-common
1+
# Class: cloudstack::nfs_common
22
#
33
# this subclass provides NFS for primary and secondary storage
44
# on a single machine. this is not production quality - but useful
55
# for a POC/demo/dev/test environment.
66
# you will either want to significantly alter or use your own nfs class
7-
class cloudstack::nfs-common {
7+
class cloudstack::nfs_common {
88

99

1010
package {'nfs-utils':

manifests/pod.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@
4040
"/usr/bin/curl \'${teststring_zone}\' | grep ${zoneid}",
4141
"/usr/bin/curl \'${teststring_pod}\' | grep -v ${pod}",
4242
],
43-
require => Exec[ 'cloud_setup_databases' ],
43+
require => Exec[ 'cloudstack_setup_databases' ],
4444
}
4545
}

0 commit comments

Comments
 (0)