pdqtest 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/installation.md +13 -12
- data/doc/windows.md +8 -0
- data/exe/pdqtest +2 -0
- data/lib/pdqtest/puppet.rb +5 -0
- data/lib/pdqtest/version.rb +1 -1
- data/res/skeleton/Makefile +0 -2
- data/res/skeleton/make.ps1 +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76f2a5fa4108b9d6776dc37c57e090ba78d9730eb4a6c423b87df43c693e0b5b
|
4
|
+
data.tar.gz: 82326c03ebcf58a8cc9166bea70d7f032e084317cb671ecc33eca71962e9ce11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
-
|
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
|
-
|
76
|
-
|
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
|
data/lib/pdqtest/puppet.rb
CHANGED
data/lib/pdqtest/version.rb
CHANGED
data/res/skeleton/Makefile
CHANGED
@@ -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
|
data/res/skeleton/make.ps1
CHANGED
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.
|
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-
|
11
|
+
date: 2018-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|