pdqtest 0.5.0 → 0.5.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
  SHA1:
3
- metadata.gz: 1c69b57c8fc39f020f891c0723296a260f1edbb0
4
- data.tar.gz: 2d0db562865e6b6a64b53c021a52f9c59aa9e3c7
3
+ metadata.gz: e25661660c62d88a32a857323cbf32a089addfda
4
+ data.tar.gz: fdf28862849ba4908d760ad7b287bd7cc928d445
5
5
  SHA512:
6
- metadata.gz: c381af3af819891d19fea87d3564a18852983210a79e240771dd8097909b2d10be0e51f9f1aa8e7d41b5a22947d452165ef9c4eabca6860502dee702ac8ebfa2
7
- data.tar.gz: 135bf38bc95d618c069179f7aaf80ce53fae001e6859bc8f5c02464b95ba6e2c8635fcc737554d9b7e7eede1a3a74ce42d22fc89ebe110cb80f19f15f740e71f
6
+ metadata.gz: b6ef89914b36b871fe83c949170caaf6b852407b5f4854902656f5199350136965941a93cac5bd1fb41197e61c8ffb6d1eefd26b176373b7e8eaf5370f6365ec
7
+ data.tar.gz: 578dbaf2fb74bcc7183e0b61d501671eefae2b08ce4721a7a659183429e6e1eccf8ccb5442750f6c8f05c75544e6af2421ad0bedfa86ce3261dabe13d6a2c2c9
@@ -22,6 +22,17 @@ module PDQTest
22
22
  hiera_yaml_host = File.join(pwd, HIERA_YAML_HOST)
23
23
  hiera_dir = File.join(pwd, HIERA_DIR)
24
24
 
25
+ # security options seem required on OSX to allow SYS_ADMIN capability to
26
+ # work - without this container starts fine with no errors but the CAP is
27
+ # missing from the inspect output and all systemd commands fail with errors
28
+ # about dbus
29
+ security_opt =
30
+ if (/darwin/ =~ RUBY_PLATFORM) != nil
31
+ ["seccomp:unconfined"]
32
+ else
33
+ []
34
+ end
35
+
25
36
  # hiera.yaml *must* exist on the host or we will get errors from Docker
26
37
  if ! File.exists?(hiera_yaml_host)
27
38
  File.write(hiera_yaml_host, '# hiera configuration for testing')
@@ -36,6 +47,7 @@ module PDQTest
36
47
  '/sys/fs/cgroup' => {'/sys/fs/cgroup' => 'ro'},
37
48
  },
38
49
  'HostConfig' => {
50
+ "SecurityOpt" => security_opt,
39
51
  "Binds": [
40
52
  "/sys/fs/cgroup:/sys/fs/cgroup:ro",
41
53
  "#{pwd}:/cut:rw", # DEPRECATED -FOR REMOVAL
@@ -1,3 +1,3 @@
1
1
  module PDQTest
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
@@ -4,4 +4,4 @@
4
4
  :yaml:
5
5
  :datadir: 'spec/fixtures/hieradata'
6
6
  :hierarchy:
7
- - 'default'
7
+ - 'test'
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: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoff Williams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-28 00:00:00.000000000 Z
11
+ date: 2017-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler