pdqtest 2.0.2 → 2.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 708d9d45aa04a7737d73efcbefdb252e284cfdfbe7d613bbed9dddc6be12b3df
4
- data.tar.gz: 9f730edefd99dfcec5faabb83e1ebdeafaa90e1a60d6c998634a09fe31da0ef8
3
+ metadata.gz: 76f2a5fa4108b9d6776dc37c57e090ba78d9730eb4a6c423b87df43c693e0b5b
4
+ data.tar.gz: 82326c03ebcf58a8cc9166bea70d7f032e084317cb671ecc33eca71962e9ce11
5
5
  SHA512:
6
- metadata.gz: a1b4fc0eb83834cb7f7764e1661e989ea288a3bdfa2f2dc9d3f8bde06094cc60c0a13a004e59b1f94d9dcd48b99303907b1a929e76dbc874465ad34000d9cb65
7
- data.tar.gz: 9e8ba7526e3144d94c209ae1ff31aeb4a9a352735922078cd3ca0e200181f0c0b54b5a50818c670067610718f25dbf9515c7f88decf161112ac7cfe4a700cf4a
6
+ metadata.gz: 54b31a7dc5fe8d54dcb4386d5ccab1340e8fd8203493dc99899fd764a0fe0aa4466aae745d90cfb41b1cc1e3ce2d7b0c79bcdf4ea9c23eb987a2e6a2211e43d8
7
+ data.tar.gz: b89622e2fe76251ea303fabb6faec8b17c3237aaaa5fad95560a187178a4d94bce2fd63fe6c1fa19712f3202a36a97d58937494d8069c74c5233376b30921954
data/doc/installation.md CHANGED
@@ -46,7 +46,7 @@ to configure the shell last time I owned a mac. If things have moved on since
46
46
  then, let me know what else is needed (possibly including a patch)
47
47
 
48
48
  ## Windows Instructions
49
-
49
+ _You will need to reboot/restart powershell several times_
50
50
  1. You will need Windows 10 (Windows 10 Enterprise, Professional, or Education)
51
51
  and the system your running on must enable
52
52
  [VTx](https://en.wikipedia.org/wiki/X86_virtualization#Intel_virtualization_(VT-x))
@@ -59,22 +59,23 @@ then, let me know what else is needed (possibly including a patch)
59
59
  * VMs - You **must** run under VMWare and enable VTx in VM settings (as well
60
60
  as enabling on the host)
61
61
  * Make sure to allocate plenty of CPU and memory
62
- * Enable Hyper-V (The Hyper-V role cannot be installed on Windows 10 Home)
63
- 2. Install [Docker](http://docker.com/)
64
- * [Docker for Windows](https://docs.docker.com/docker-for-windows/install)
65
- installed and
66
- [windows containers enabled](https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers)
67
- * [Docker API port enabled for localhost access](https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon)
62
+ 2. Enable Hyper-V (The Hyper-V role cannot be installed on Windows 10 Home) -
63
+ `Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All -All -Verbose`
64
+ 3. Install [Chocolatey](https://chocolatey.org/install)
65
+ 4. Install [Docker for Windows](https://docs.docker.com/docker-for-windows/install) -
66
+ `choco install docker-for-windows`
67
+ 5. [Enable windows containers](https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers)
68
+ 6. [Enable localhost access to Docker API](https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon)
68
69
  ```json
69
70
  "hosts": ["tcp://127.0.0.1:2375"]
70
71
  ```
71
- 3. Install [Chocolatey](https://chocolatey.org/install)
72
- 4. Install Ruby 2.4 (Ruby 2.5 doesn't work yet
72
+ 7. Install Ruby 2.4 (Ruby 2.5 doesn't work yet
73
73
  [PDK-1171](https://tickets.puppetlabs.com/browse/PDK-1171)):
74
74
  `choco install ruby --version 2.4.3.1`
75
- 5. Install PDK: `choco install pdk`
76
- 6. Install bundler `gem install bundler`
75
+ 8. Install PDK: `choco install pdk`
76
+ 9. Install PDQTest - `gem install pdqtest`
77
+ 10. Install bundler `gem install bundler`
78
+ 11. Enable running scripts - `Set-ExecutionPolicy -ExecutionPolicy unrestricted`
77
79
 
78
80
  **Be sure to read the [Windows notes](windows.md) for guidance on how to run
79
81
  tests on Windows**
80
-
data/doc/windows.md CHANGED
@@ -13,6 +13,9 @@ still experimental:
13
13
  * You **must** develop your modules on your **guest** filesystem (eg not at
14
14
  `c:\vagrant` if your running windows 10 in a VM on linux):
15
15
  [PDK-1169](https://tickets.puppetlabs.com/browse/PDK-1169)
16
+ * The best way I can think of to work on the guest without going blind would be
17
+ to share the folder _from the guest_ and mount it on the host, using Windows
18
+ file-sharing
16
19
 
17
20
  ## FAQ
18
21
  Q: How do I just get a shell inside my container?
@@ -46,3 +49,8 @@ docker exec XXX puppet
46
49
  _where XXX is the ID of your container. Use `docker ps` to get a listing.
47
50
 
48
51
 
52
+ Q: I get `permission denied @ rb_sysopen` errors when running PDQTest but the
53
+ files exist and I even gave ownership to `Everyone`
54
+
55
+ A: Ruby seems to be unable to read files that have the `hidden` attribute set.
56
+ Remove the attribute from any files that are complained about.
data/exe/pdqtest CHANGED
@@ -115,6 +115,7 @@ Escort::App.create do |app|
115
115
  lambda {PDQTest::Puppet.install_modules},
116
116
  lambda {PDQTest::Pdk.run("test unit")},
117
117
  lambda {PDQTest::Instance.run},
118
+ lambda {PDQTest::Puppet.puppet_strings},
118
119
  lambda {PDQTest::Pdk.run("build --force")},
119
120
  ])
120
121
  end
@@ -240,6 +241,7 @@ Escort::App.create do |app|
240
241
  lambda {PDQTest::Pdk.run("validate 'metadata,puppet'")},
241
242
  lambda {PDQTest::Puppet.install_modules},
242
243
  lambda {PDQTest::Pdk.run("test unit")},
244
+ lambda {PDQTest::Puppet.puppet_strings},
243
245
  ])
244
246
  end
245
247
  end
@@ -504,5 +504,10 @@ module PDQTest
504
504
  commands
505
505
 
506
506
  end
507
+
508
+ def self.puppet_strings
509
+ # Runs in the context of _our_ PDQTest bundle so doesn't need clean env
510
+ system("bundle exec puppet strings generate --format markdown")
511
+ end
507
512
  end
508
513
  end
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
@@ -1,7 +1,6 @@
1
1
  # *File originally created by PDQTest*
2
2
  all:
3
3
  cd .pdqtest && bundle exec pdqtest all
4
- $(MAKE) docs
5
4
 
6
5
  fast:
7
6
  cd .pdqtest && bundle exec pdqtest fast
@@ -20,7 +19,6 @@ shellnopuppet:
20
19
 
21
20
  logical:
22
21
  cd .pdqtest && bundle exec pdqtest logical
23
- $(MAKE) docs
24
22
 
25
23
  pdqtestbundle:
26
24
  # Install all gems into _normal world_ bundle so we can use all of em
@@ -60,7 +60,6 @@ switch ($target) {
60
60
  }
61
61
  "logical" {
62
62
  cd .pdqtest; bundle exec pdqtest logical; cd ..
63
- cd .pdqtest ; bundle exec "cd ..; puppet strings"; cd ..
64
63
  }
65
64
  "docs" {
66
65
  cd .pdqtest ; bundle exec "cd ..; puppet strings generate --format markdown"; cd ..
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pdqtest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-25 00:00:00.000000000 Z
11
+ date: 2018-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler