File tree Expand file tree Collapse file tree 7 files changed +19
-19
lines changed
spec/helpers/acceptance/tests Expand file tree Collapse file tree 7 files changed +19
-19
lines changed Original file line number Diff line number Diff line change 57
57
shared_examples 'component template operations' do |es_config , component_template |
58
58
describe 'template resources' do
59
59
before :all do # rubocop:disable RSpec/BeforeAfterAll
60
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
60
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
61
61
62
62
create_remote_file (
63
63
default ,
64
- "#{ default [ 'distmoduledir '] } /another/files/good.json" ,
64
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/good.json" ,
65
65
JSON . dump ( component_template )
66
66
)
67
67
68
68
create_remote_file (
69
69
default ,
70
- "#{ default [ 'distmoduledir '] } /another/files/bad.json" ,
70
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/bad.json" ,
71
71
JSON . dump ( component_template ) [ 0 ..-5 ]
72
72
)
73
73
end
Original file line number Diff line number Diff line change 57
57
shared_examples 'ILM policy operations' do |es_config , ilm_policy |
58
58
describe 'policy resources' do
59
59
before :all do # rubocop:disable RSpec/BeforeAfterAll
60
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
60
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
61
61
62
62
create_remote_file (
63
63
default ,
64
- "#{ default [ 'distmoduledir '] } /another/files/good.json" ,
64
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/good.json" ,
65
65
JSON . dump ( ilm_policy )
66
66
)
67
67
68
68
create_remote_file (
69
69
default ,
70
- "#{ default [ 'distmoduledir '] } /another/files/bad.json" ,
70
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/bad.json" ,
71
71
JSON . dump ( ilm_policy ) [ 0 ..-5 ]
72
72
)
73
73
end
Original file line number Diff line number Diff line change 57
57
shared_examples 'index template operations' do |es_config , index_template |
58
58
describe 'template resources' do
59
59
before :all do # rubocop:disable RSpec/BeforeAfterAll
60
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
60
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
61
61
62
62
create_remote_file (
63
63
default ,
64
- "#{ default [ 'distmoduledir '] } /another/files/good.json" ,
64
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/good.json" ,
65
65
JSON . dump ( index_template )
66
66
)
67
67
68
68
create_remote_file (
69
69
default ,
70
- "#{ default [ 'distmoduledir '] } /another/files/bad.json" ,
70
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/bad.json" ,
71
71
JSON . dump ( index_template ) [ 0 ..-5 ]
72
72
)
73
73
end
Original file line number Diff line number Diff line change 53
53
54
54
context 'via puppet paths' , :with_cleanup do
55
55
before :all do # rubocop:disable RSpec/BeforeAfterAll
56
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
56
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
57
57
58
58
scp_to default ,
59
59
v [ :elasticsearch_package ] [ :path ] ,
60
- "#{ default [ 'distmoduledir '] } /another/files/#{ v [ :elasticsearch_package ] [ :filename ] } "
60
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/#{ v [ :elasticsearch_package ] [ :filename ] } "
61
61
end
62
62
63
63
let ( :manifest_class_parameters ) do
Original file line number Diff line number Diff line change 8
8
shared_examples 'plugin acceptance tests' do |es_config , plugins |
9
9
describe 'elasticsearch::plugin' do
10
10
before :all do # rubocop:disable RSpec/BeforeAfterAll
11
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
11
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
12
12
end
13
13
14
14
describe 'invalid plugins' , :with_cleanup do
53
53
scp_to (
54
54
default ,
55
55
meta [ :path ] ,
56
- "#{ default [ 'distmoduledir '] } /another/files/#{ plugin } .zip"
56
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/#{ plugin } .zip"
57
57
)
58
58
end
59
59
Original file line number Diff line number Diff line change 61
61
shared_examples 'SLM policy operations' do |es_config , slm_policy |
62
62
describe 'policy resources' do
63
63
before :all do # rubocop:disable RSpec/BeforeAfterAll
64
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
64
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
65
65
66
66
create_remote_file (
67
67
default ,
68
- "#{ default [ 'distmoduledir '] } /another/files/good.json" ,
68
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/good.json" ,
69
69
JSON . dump ( slm_policy )
70
70
)
71
71
72
72
create_remote_file (
73
73
default ,
74
- "#{ default [ 'distmoduledir '] } /another/files/bad.json" ,
74
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/bad.json" ,
75
75
JSON . dump ( slm_policy ) [ 0 ..-5 ]
76
76
)
77
77
end
Original file line number Diff line number Diff line change 57
57
shared_examples 'template operations' do |es_config , template |
58
58
describe 'template resources' do
59
59
before :all do # rubocop:disable RSpec/BeforeAfterAll
60
- shell "mkdir -p #{ default [ 'distmoduledir '] } /another/files"
60
+ shell "mkdir -p #{ default . puppet [ 'codedir '] } /modules /another/files"
61
61
62
62
create_remote_file (
63
63
default ,
64
- "#{ default [ 'distmoduledir '] } /another/files/good.json" ,
64
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/good.json" ,
65
65
JSON . dump ( template )
66
66
)
67
67
68
68
create_remote_file (
69
69
default ,
70
- "#{ default [ 'distmoduledir '] } /another/files/bad.json" ,
70
+ "#{ default . puppet [ 'codedir '] } /modules /another/files/bad.json" ,
71
71
JSON . dump ( template ) [ 0 ..-5 ]
72
72
)
73
73
end
You can’t perform that action at this time.
0 commit comments