File tree 4 files changed +20
-23
lines changed
test/integration/default/controls
4 files changed +20
-23
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,14 @@ stages:
21
21
- name : release
22
22
if : branch = master AND type != pull_request
23
23
jobs :
24
- allow_failures :
25
- - env : Lint_rubocop
26
- fast_finish : true
27
24
include :
28
25
# # Define the test stage that runs the linters (and testing matrix, if applicable)
29
26
30
- # Run all of the linters in a single job (except `rubocop`)
27
+ # Run all of the linters in a single job
31
28
- language : node_js
32
29
node_js : lts/*
33
30
env : Lint
34
- name : ' Lint: salt-lint, yamllint & commitlint'
31
+ name : ' Lint: salt-lint, yamllint, rubocop & commitlint'
35
32
before_install : skip
36
33
script :
37
34
# Install and run `salt-lint`
@@ -42,21 +39,13 @@ jobs:
42
39
# Need at least `v1.17.0` for the `yaml-files` setting
43
40
- pip install --user yamllint>=1.17.0
44
41
- yamllint -s .
42
+ # Install and run `rubocop`
43
+ - gem install rubocop
44
+ - rubocop -d
45
45
# Install and run `commitlint`
46
46
- npm install @commitlint/config-conventional -D
47
47
- npm install @commitlint/travis-cli -D
48
48
- commitlint-travis
49
- # Run the `rubocop` linter in a separate job that is allowed to fail
50
- # Once these lint errors are fixed, this can be merged into a single job
51
- - language : node_js
52
- node_js : lts/*
53
- env : Lint_rubocop
54
- name : ' Lint: rubocop'
55
- before_install : skip
56
- script :
57
- # Install and run `rubocop`
58
- - gem install rubocop
59
- - rubocop -d
60
49
61
50
# # Define the rest of the matrix based on Kitchen testing
62
51
# Make sure the instances listed below match up with
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
# Overide by Platform
2
4
pg_port = '5432'
3
- if platform [ :family ] == 'debian' or platform [ :family ] == 'suse'
4
- pg_port = '5433'
5
- end
5
+ pg_port = '5433' if ( platform [ :family ] == 'debian' ) || ( platform [ :family ] == 'suse' )
6
6
7
7
control 'Postgres command' do
8
8
title 'should match desired lines'
9
9
10
10
# Can't use `%Q` here due to the `\`
11
- describe command ( %q{su - postgres -c 'psql -p} + pg_port + %q{ -qtc "\l+ db2"'} ) do
12
- its ( :stdout ) { should match ( %r{db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space} ) }
11
+ describe command ( "su - postgres -c 'psql -p" + pg_port + %q( -qtc "\l+ db2"') ) do
12
+ its ( :stdout ) do
13
+ should match (
14
+ /db2.*remoteUser.*UTF8.*en_US.UTF-8.*en_US.UTF-8.*my_space/
15
+ )
16
+ end
13
17
end
14
18
end
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
control 'Postgres configuration' do
2
4
title 'should include the directory'
3
5
Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
2
+
1
3
# Overide by Platform
2
4
service_name = 'postgresql'
3
5
pg_port = 5432
4
- if platform [ :name ] == 'centos' and platform [ :release ] . start_with? ( '6' )
6
+ if ( platform [ :name ] == 'centos' ) && platform [ :release ] . start_with? ( '6' )
5
7
service_name = 'postgresql-9.6'
6
- elsif platform [ :family ] == 'debian' or platform [ :family ] == 'suse'
8
+ elsif ( platform [ :family ] == 'debian' ) || ( platform [ :family ] == 'suse' )
7
9
pg_port = 5433
8
10
end
9
11
You can’t perform that action at this time.
0 commit comments