Skip to content

Commit

Permalink
Merge pull request #1351 from justinstoller/PE-36512-prod-forge
Browse files Browse the repository at this point in the history
(PE-36512) Move testing to production forge
  • Loading branch information
justinstoller committed Jul 25, 2023
2 parents 59258bf + cbcd985 commit d1ea09e
Show file tree
Hide file tree
Showing 31 changed files with 8 additions and 467 deletions.
3 changes: 0 additions & 3 deletions integration/pre-suite/10_git_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
fail_test('This pre-suite requires PE 3.7 or above!') if pe_version < 3.7

#Setup
step 'Stub Forge on Master'
stub_forge_on(master)

step 'Read module path'
on(master, puppet('config print basemodulepath')) do |result|
(result.stdout.include? ':') ? separator = ':' : separator = ';'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@
#test
on(master, "#{r10k_fqp} deploy environment -p", :accept_all_exit_codes => true) do |r|
# Rugged as of 0.28 has a different error message than shellgit
regex = if git_provider == 'rugged'
/failed to resolve address for ferritsarebest\.net/
else
/Could not resolve proxy: ferritsarebest\.net/
end
regex = /((failed to resolve address for)|(Could not resolve proxy:)) ferritsarebest\.net/
assert(r.exit_code == 1, 'expected error code was not observed')
assert_match(regex, r.stderr, 'The expected error message was not observed' )
end

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
CONF

#Verification
squid_log_regex = /CONNECT forgeapi.puppet.com:443/
squid_log_regex = /CONNECT forgeapi.puppet(labs)?.com:443/

#Teardown
teardown do
Expand Down
128 changes: 0 additions & 128 deletions integration/tests/basic_functionality/proxy_with_pe_only_module.rb

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
squid_log = "/var/log/squid/access.log"

#Verification
squid_log_regex = /CONNECT forgeapi.puppet.com:443/
squid_log_regex = /CONNECT forgeapi.puppet(labs)?.com:443/

#Teardown
teardown do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,6 @@ class { 'motd':
end

#Setup
step 'Stub Forge on Master'
stub_forge_on(master)

step 'Inject New "site.pp" to the "production" Environment'
inject_site_pp(master, site_pp_path, site_pp)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ class { 'motd':
end

#Setup
step 'Stub Forge on Master'
stub_forge_on(master)

step 'Inject New "site.pp" to the "production" Environment'
inject_site_pp(master, site_pp_path, site_pp)

Expand Down
6 changes: 1 addition & 5 deletions integration/tests/git_source/HTTP_proxy_and_git_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@
#test
on(master, "#{r10k_fqp} deploy environment -p", :accept_all_exit_codes => true) do |r|
# Rugged as of 0.28 has a different error message than shellgit
regex = if git_provider == 'rugged'
/failed to resolve address for foooooooo\.unresolvable/
else
/Could not resolve proxy: foooooooo\.unresolvable/
end
regex = /((failed to resolve address for)|(Could not resolve proxy:)) foooooooo\.unresolvable/
assert(r.exit_code == 1, 'expected error code was not observed')
assert_match(regex, r.stderr, 'The expected error message was not observed' )
end
3 changes: 0 additions & 3 deletions integration/tests/git_source/git_source_repeated_remote.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@
clean_up_r10k(master, last_commit, git_environments_path)
end

step 'Stub the forge'
stub_forge_on(master)

step 'Backup Current "r10k" Config'
on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}")

Expand Down
3 changes: 0 additions & 3 deletions integration/tests/purging/content_not_purged_at_root.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@
clean_up_r10k(master, last_commit, git_environments_path)
end

step 'Stub the forge'
stub_forge_on(master)

step 'Backup Current "r10k" Config'
on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}")

Expand Down
3 changes: 0 additions & 3 deletions integration/tests/purging/default_purging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
fake_file_c_to_be_purged = "#{fake_environment_path_c}/fakefile3.txt"

# initalize file content
step 'Stub the forge'
stub_forge_on(master)

step 'Backup Current "r10k" Config'
on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
end

# initalize file content
step 'Stub the forge'
stub_forge_on(master)

step 'Backup Current "r10k" Config'
on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}")

Expand Down
63 changes: 0 additions & 63 deletions integration/tests/purging/invalid_whitelist_types.rb

This file was deleted.

Loading

0 comments on commit d1ea09e

Please sign in to comment.