pdqtest 1.9.9beta10 → 1.9.9beta11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/exe/pdqtest +3 -0
 - data/lib/pdqtest/puppet.rb +9 -1
 - data/lib/pdqtest/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 9d0d90f3af8c39a0195c66bc63db29c12a2a17fc6a84d3d82151b24a570ad1e8
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 6aaa15557cf39b16773ded05b3b4165eed0e5ec2cefa0cc9150abf95bb4931f6
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 5b085a8730dab2447f943f78697b277e97173bc5c668e2e54897be454a614d3f011cca0346e579794319c82cd9dd39452db29b1f665da530419941594bfad86e
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: '024703510449d147758d6df284baf29d82c6796e58f8432fbe1596c2e787f4cc399d1983ea9a2f4db5d84fd3feff46b7bfcc9b01dce08e0379bcdc3db20b792a'
         
     | 
    
        data/exe/pdqtest
    CHANGED
    
    | 
         @@ -102,6 +102,7 @@ Escort::App.create do |app| 
     | 
|
| 
       102 
102 
     | 
    
         | 
| 
       103 
103 
     | 
    
         
             
                  PDQTest::Emoji.disable(options[:global][:options][:disable_emoji])
         
     | 
| 
       104 
104 
     | 
    
         
             
                  PDQTest::Puppet.skip_second_run(options[:global][:options][:skip_idempotency])
         
     | 
| 
      
 105 
     | 
    
         
            +
                  PDQTest::Puppet.set_debug(options[:global][:options][:debug])
         
     | 
| 
       105 
106 
     | 
    
         | 
| 
       106 
107 
     | 
    
         
             
                  PDQTest::Inplace.set_enable options[:global][:options][:inplace_enable]
         
     | 
| 
       107 
108 
     | 
    
         
             
                  PDQTest::Instance.set_inplace options[:global][:options][:inplace]
         
     | 
| 
         @@ -128,6 +129,7 @@ Escort::App.create do |app| 
     | 
|
| 
       128 
129 
     | 
    
         | 
| 
       129 
130 
     | 
    
         
             
                  PDQTest::Emoji.disable(options[:global][:options][:disable_emoji])
         
     | 
| 
       130 
131 
     | 
    
         
             
                  PDQTest::Puppet.skip_second_run(options[:global][:options][:skip_idempotency])
         
     | 
| 
      
 132 
     | 
    
         
            +
                  PDQTest::Puppet.set_debug(options[:global][:options][:debug])
         
     | 
| 
       131 
133 
     | 
    
         | 
| 
       132 
134 
     | 
    
         
             
                  PDQTest::Inplace.set_enable options[:global][:options][:inplace_enable]
         
     | 
| 
       133 
135 
     | 
    
         
             
                  PDQTest::Instance.set_inplace options[:global][:options][:inplace]
         
     | 
| 
         @@ -162,6 +164,7 @@ Escort::App.create do |app| 
     | 
|
| 
       162 
164 
     | 
    
         | 
| 
       163 
165 
     | 
    
         
             
                  PDQTest::Emoji.disable(options[:global][:options][:disable_emoji])
         
     | 
| 
       164 
166 
     | 
    
         
             
                  PDQTest::Puppet.skip_second_run(options[:global][:options][:skip_idempotency])
         
     | 
| 
      
 167 
     | 
    
         
            +
                  PDQTest::Puppet.set_debug(options[:global][:options][:debug])
         
     | 
| 
       165 
168 
     | 
    
         | 
| 
       166 
169 
     | 
    
         
             
                  PDQTest::Inplace.set_enable options[:global][:options][:inplace_enable]
         
     | 
| 
       167 
170 
     | 
    
         
             
                  PDQTest::Instance.set_inplace options[:global][:options][:inplace]
         
     | 
    
        data/lib/pdqtest/puppet.rb
    CHANGED
    
    | 
         @@ -85,6 +85,7 @@ module PDQTest 
     | 
|
| 
       85 
85 
     | 
    
         
             
                @@bats_executed   = []
         
     | 
| 
       86 
86 
     | 
    
         
             
                @@setup_executed  = []
         
     | 
| 
       87 
87 
     | 
    
         
             
                @@skip_second_run = false
         
     | 
| 
      
 88 
     | 
    
         
            +
                @@debug           = false
         
     | 
| 
       88 
89 
     | 
    
         | 
| 
       89 
90 
     | 
    
         
             
                def self.cp(key)
         
     | 
| 
       90 
91 
     | 
    
         
             
                  CONTAINER_PATHS[Util.host_platform][key] ||
         
     | 
| 
         @@ -121,6 +122,10 @@ module PDQTest 
     | 
|
| 
       121 
122 
     | 
    
         
             
                  @@setup_executed
         
     | 
| 
       122 
123 
     | 
    
         
             
                end
         
     | 
| 
       123 
124 
     | 
    
         | 
| 
      
 125 
     | 
    
         
            +
                def self.set_debug(debug)
         
     | 
| 
      
 126 
     | 
    
         
            +
                  @@debug = debug
         
     | 
| 
      
 127 
     | 
    
         
            +
                end
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
       124 
129 
     | 
    
         
             
                def self.module_metadata
         
     | 
| 
       125 
130 
     | 
    
         
             
                  if File.exist? METADATA
         
     | 
| 
       126 
131 
     | 
    
         
             
                    file = File.read(METADATA)
         
     | 
| 
         @@ -400,9 +405,12 @@ module PDQTest 
     | 
|
| 
       400 
405 
     | 
    
         
             
                  status
         
     | 
| 
       401 
406 
     | 
    
         
             
                end
         
     | 
| 
       402 
407 
     | 
    
         | 
| 
      
 408 
     | 
    
         
            +
                def self.debug_arg
         
     | 
| 
      
 409 
     | 
    
         
            +
                  @@debug ? "--debug --trace --evaltrace" : ""
         
     | 
| 
      
 410 
     | 
    
         
            +
                end
         
     | 
| 
       403 
411 
     | 
    
         | 
| 
       404 
412 
     | 
    
         
             
                def self.puppet_apply(example)
         
     | 
| 
       405 
     | 
    
         
            -
                  "cd #{Docker.test_dir} ; #{setting(:puppet)} apply --detailed-exitcodes #{example}"
         
     | 
| 
      
 413 
     | 
    
         
            +
                  "cd #{Docker.test_dir} ; #{setting(:puppet)} apply #{debug_arg} --detailed-exitcodes #{example}"
         
     | 
| 
       406 
414 
     | 
    
         
             
                end
         
     | 
| 
       407 
415 
     | 
    
         | 
| 
       408 
416 
     | 
    
         
             
                def self.info
         
     | 
    
        data/lib/pdqtest/version.rb
    CHANGED