@@ -100,13 +100,6 @@ RSpec::Core::RakeTask.new('beaker:acceptance') do |c|
100
100
end
101
101
task 'beaker:acceptance' => [ :spec_prep , 'artifacts:prep' ]
102
102
103
- if !ENV [ 'BEAKER_IS_PE' ] . nil? and ENV [ 'BEAKER_IS_PE' ] == 'true'
104
- task :beaker => 'artifacts:pe'
105
- task 'beaker:integration' => 'artifacts:pe'
106
- task 'beaker:acceptance' => 'artifacts:pe'
107
- end
108
-
109
- # rubocop:disable Metrics/BlockLength
110
103
namespace :artifacts do
111
104
desc 'Fetch artifacts for tests'
112
105
task :prep do
@@ -119,40 +112,6 @@ namespace :artifacts do
119
112
)
120
113
end
121
114
122
- desc 'Retrieve PE archives'
123
- task :pe do
124
- if !ENV [ 'BEAKER_set' ] . nil?
125
- case ENV [ 'BEAKER_set' ]
126
- when /centos-(?<release>\d )/
127
- distro = 'el'
128
- version = Regexp . last_match ( :release )
129
- arch = 'x86_64'
130
- when /(?<distro>debian)-(?<release>\d )/
131
- distro = Regexp . last_match ( :distro )
132
- version = Regexp . last_match ( :release )
133
- arch = 'amd64'
134
- when /(?<distro>sles)-(?<release>\d +)/
135
- distro = Regexp . last_match ( :distro )
136
- version = Regexp . last_match ( :release )
137
- arch = 'x86_64'
138
- when /(?<distro>ubuntu)-server-(?<release>12|14)/
139
- distro = Regexp . last_match ( :distro )
140
- version = "#{ Regexp . last_match ( :release ) } .04"
141
- arch = 'amd64'
142
- else
143
- puts "Could not find PE version for #{ ENV [ 'BEAKER_set' ] } "
144
- return
145
- end
146
- pe_ver = ENV [ 'BEAKER_PE_VER' ]
147
- file = "puppet-enterprise-#{ pe_ver } -#{ distro } -#{ version } -#{ arch } .tar.gz"
148
- fetch_archives (
149
- "https://s3.amazonaws.com/pe-builds/released/#{ pe_ver } /#{ file } " => file
150
- )
151
- else
152
- puts 'No nodeset set, skipping PE artifact retrieval'
153
- end
154
- end
155
-
156
115
desc 'Purge fetched artifacts'
157
116
task :clean do
158
117
FileUtils . rm_rf ( Dir . glob ( 'spec/fixtures/artifacts/*' ) )
0 commit comments