Sha256: eca71fd4fd7689ef58ad3f51693ddcbe07c8d0839c24c11eb151703ca9fbefcc
Contents?: true
Size: 1.47 KB
Versions: 1
Compression:
Stored size: 1.47 KB
Contents
require 'git_utils' require 'master_manipulator' test_name 'CODEMGMT-42 - C59225 - Attempt to Deploy to Base Directory with Invalid Length' #Init env_path = '/asuyiyuyabvusayd2784782gh8hexistasdfaiasdhfa78v87va8vajkb3vwkasv7as8vba87vb87asdhfajsbdzxmcbvawbvr7av6baskudvbausdgasycyu7abywfegasfsauydgfasf7uas67vbexistasdfaiasdhfa78v87va8vajkb3vwkasv7as8vba87vb87asdhfajsbdzxmcbvawbvr7av6baskudvbausdgasycyu7abywfegasfsauydgfasf7uas67vb' git_repo_path = '/git_repos' git_control_remote = File.join(git_repo_path, 'environments.git') git_provider = ENV['GIT_PROVIDER'] || 'shellgit' r10k_config_path = get_r10k_config_file_path(master) r10k_config_bak_path = "#{r10k_config_path}.bak" #In-line files r10k_conf = <<-CONF cachedir: '/var/cache/r10k' git: provider: '#{git_provider}' sources: broken: basedir: "#{env_path}" remote: "#{git_control_remote}" CONF #Verification error_message_regex = /could not create leading directories of.*File name too long/ #Teardown teardown do step 'Restore Original "r10k" Config' on(master, "mv #{r10k_config_bak_path} #{r10k_config_path}") end #Setup step 'Backup Current "r10k" Config' on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}") step 'Update the "r10k" Config' create_remote_file(master, r10k_config_path, r10k_conf) #Tests step 'Attempt to Deploy via r10k' on(master, 'r10k deploy environment -v', :acceptable_exit_codes => 1) do |result| assert_match(error_message_regex, result.stderr, 'Expected message not found!') end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r10k-1.5.1 | integration/tests/user_scenario/basic_workflow/negative/neg_bad_basedir.rb |