beaker 4.22.0 → 4.22.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f4ee75a711cc94d5814ed063880f947c8529b62bdd992eb5c867af160940655
4
- data.tar.gz: 63d0cdbd54c8693e25b7d2b6b81d26bc8403f1736442624417d9c70674a7d06c
3
+ metadata.gz: 0a089feb0e8311631a3778e1839e5942694ec2e9f14bb873fbfb07d5ae854bca
4
+ data.tar.gz: b0e75901ec90f523a2b2f276658e8ede706a0fb3df3f09fcd58779263a28d630
5
5
  SHA512:
6
- metadata.gz: 990c909cc18aa7634f56a0c98573025c3f4a41f6bd0057936c7086a961a55b3ba7e87bd0e9326316ad86c3d843ac3a637ad48eac95ce8cf2bcf61d647af5f477
7
- data.tar.gz: 85d6f87e4a62e744911e3b616dc3ec34d6e42d1564664d02e9e09dd915163b9c7d30dd66224d274a58a9ae970497b4ea5766a5da4822530300ad15b80b61c44e
6
+ metadata.gz: bfb8cfe1965440e36c4e8093548a454c0de51100d1ec5c4a5d001c083fc20aa5b2715301abba1b2a4ddb3425701c51298e4cbcb41f965896a41f59c003c2b97d
7
+ data.tar.gz: 39fb8a21b0e289c81b8967deb089bb50418a726d0bec337cec4ad6230d4b5ce3587b37c2ee1144cef61d1f944b77df1a1f6cc0a2ae79c9214efe66c55dcd463a
@@ -20,7 +20,13 @@ The headers used in [Keep a Changelog](http://keepachangelog.com) are:
20
20
  - Fixed - for any bug fixes.
21
21
  - Security - in case of vulnerabilities.
22
22
 
23
- # [Unreleased](https://github.com/puppetlabs/beaker/compare/4.22.0...master)
23
+ # [Unreleased](https://github.com/puppetlabs/beaker/compare/4.22.1...master)
24
+
25
+ # [4.22.1](https://github.com/puppetlabs/beaker/compare/4.22.0...4.22.1)
26
+
27
+ ### Fixed
28
+
29
+ - Removed single quotes around paths for file operation commands on `Host` https://github.com/puppetlabs/beaker/pull/1642
24
30
 
25
31
  # [4.22.0](https://github.com/puppetlabs/beaker/compare/4.21.0...4.22.0) - 2020-05-08
26
32
 
@@ -127,7 +127,7 @@ module Unix::Exec
127
127
  # @param [String] dir The directory structure to create on the host
128
128
  # @return [Boolean] True, if directory construction succeeded, otherwise False
129
129
  def mkdir_p dir
130
- cmd = "mkdir -p '#{dir}'"
130
+ cmd = "mkdir -p #{dir}"
131
131
  result = exec(Beaker::Command.new(cmd), :acceptable_exit_codes => [0, 1])
132
132
  result.exit_code == 0
133
133
  end
@@ -135,7 +135,7 @@ module Unix::Exec
135
135
  # Recursively remove the path provided
136
136
  # @param [String] path The path to remove
137
137
  def rm_rf path
138
- execute("rm -rf '#{path}'")
138
+ execute("rm -rf #{path}")
139
139
  end
140
140
 
141
141
  # Move the origin to destination. The destination is removed prior to moving.
@@ -144,7 +144,7 @@ module Unix::Exec
144
144
  # @param [Boolean] rm Remove the destination prior to move
145
145
  def mv orig, dest, rm=true
146
146
  rm_rf dest unless !rm
147
- execute("mv '#{orig}' '#{dest}'")
147
+ execute("mv #{orig} #{dest}")
148
148
  end
149
149
 
150
150
  # Attempt to ping the provided target hostname
@@ -1,5 +1,5 @@
1
1
  module Beaker
2
2
  module Version
3
- STRING = '4.22.0'
3
+ STRING = '4.22.1'
4
4
  end
5
5
  end
@@ -29,7 +29,7 @@ module Beaker
29
29
 
30
30
  it "deletes" do
31
31
  path = '/path/to/delete'
32
- expect( instance ).to receive(:execute).with("rm -rf '#{path}'").and_return(0)
32
+ expect( instance ).to receive(:execute).with("rm -rf #{path}").and_return(0)
33
33
  expect( instance.rm_rf(path) ).to be === 0
34
34
  end
35
35
  end
@@ -39,14 +39,14 @@ module Beaker
39
39
  let(:destination) { '/destination/path/of/content' }
40
40
 
41
41
  it 'rm first' do
42
- expect( instance ).to receive(:execute).with("rm -rf '#{destination}'").and_return(0)
43
- expect( instance ).to receive(:execute).with("mv '#{origin}' '#{destination}'").and_return(0)
42
+ expect( instance ).to receive(:execute).with("rm -rf #{destination}").and_return(0)
43
+ expect( instance ).to receive(:execute).with("mv #{origin} #{destination}").and_return(0)
44
44
  expect( instance.mv(origin, destination) ).to be === 0
45
45
 
46
46
  end
47
47
 
48
48
  it 'does not rm' do
49
- expect( instance ).to receive(:execute).with("mv '#{origin}' '#{destination}'").and_return(0)
49
+ expect( instance ).to receive(:execute).with("mv #{origin} #{destination}").and_return(0)
50
50
  expect( instance.mv(origin, destination, false) ).to be === 0
51
51
  end
52
52
  end
@@ -325,7 +325,7 @@ module Beaker
325
325
  allow( result ).to receive( :exit_code ).and_return( 0 )
326
326
  allow( host ).to receive( :exec ).and_return( result )
327
327
 
328
- expect( Beaker::Command ).to receive(:new).with("mkdir -p 'test/test/test'")
328
+ expect( Beaker::Command ).to receive(:new).with("mkdir -p test/test/test")
329
329
  expect( host.mkdir_p('test/test/test') ).to be == true
330
330
 
331
331
  end
@@ -337,7 +337,7 @@ module Beaker
337
337
  allow( result ).to receive( :exit_code ).and_return( 0 )
338
338
  allow( host ).to receive( :exec ).and_return( result )
339
339
 
340
- expect( Beaker::Command ).to receive(:new).with("mkdir -p 'test/test/test'")
340
+ expect( Beaker::Command ).to receive(:new).with("mkdir -p test/test/test")
341
341
  expect( host.mkdir_p('test/test/test') ).to be == true
342
342
 
343
343
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.22.0
4
+ version: 4.22.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet