Skip to content

Commit

Permalink
(PUP-7243) Remove unneeded variables and whitespace
Browse files Browse the repository at this point in the history
Remove unneeded variables since we're no longer starting puppetserver
during the test. Also remove trailing whitespace.
  • Loading branch information
joshcooper committed Feb 23, 2017
1 parent b5d50de commit 59824dd
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions acceptance/tests/utf8/utf8-in-function-args.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,6 @@

# utf8chars = "€‰ㄘ万竹ÜÖ"
utf8chars = "\u20ac\u2030\u3118\u4e07\u7af9\u00dc\u00d6"
master_lookup_test_dir = master.tmpdir("lookup_test_dir")
on(master, "chmod -R 777 #{master_lookup_test_dir}")
master_opts = {
'main' => {
'hiera_config' => "#{master_lookup_test_dir}/hiera.yaml",
'environmentpath' => "#{master_lookup_test_dir}/environments",
},
}
agents.each do |agent|
step 'alert' do
result = on(
Expand All @@ -31,7 +23,7 @@
"Did not find the utf8 chars."
)
end

step 'assert_type' do
on(
agent,
Expand All @@ -52,7 +44,7 @@
}
)
end

step 'filter' do
puppet_cmd = "'
[$a] = [[\"abc\", \"#{utf8chars}\", \"100\"]];
Expand All @@ -66,11 +58,8 @@
)
assert_match(/#{utf8chars}/, result.stdout, "filter() failed.")
end

agent_lookup_test_dir =
(agent == master) ?
master_lookup_test_dir :
agent_lookup_test_dir = agent.tmpdir("lookup_test_dir")

agent_lookup_test_dir = agent.tmpdir("lookup_test_dir")

mod_name = "lookup_module"
mod_key = "#{mod_name}::mod_key_#{utf8chars}"
Expand All @@ -84,7 +73,7 @@
non_key = "non_key_#{utf8chars}"

step 'apply hiera/lookup manifest' do
# I want the banner in the output but
# I want the banner in the output but
# some results: orig_hiera_config,
# orig_environmentpath from operations
# here are used later, so I don't want
Expand Down Expand Up @@ -121,7 +110,7 @@
}
file { "#{agent_lookup_test_dir}/environments/production/modules/#{mod_name}/data/common.yaml" :
ensure => "file",
ensure => "file",
mode => "0644",
content => '---
#{mod_key}: #{mod_val}
Expand Down Expand Up @@ -276,7 +265,7 @@
:environment => {:LANG => "en_US.UTF-8"}
)
end

step 'dig' do
hash_string = "{
a => {
Expand Down Expand Up @@ -308,7 +297,7 @@
"dig() test failed."
)
end

step 'match' do
strings = [
"string1_#{utf8chars}",
Expand Down

0 comments on commit 59824dd

Please sign in to comment.