cf-perm-test-helpers 0.0.5 → 0.0.6

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: a6b5cca332b35e11b69d4b989cdd7edea56369d6cd7f851e625bf69941a3aecf
4
- data.tar.gz: fb66cd2f69de1894f4cd58145bd39a3eb18645d890529be7fefb74134845d180
3
+ metadata.gz: fb2319b5392a977c171d2fdc1e3120b0748822d4278b1ebeb328f92f11fea67e
4
+ data.tar.gz: a4bf14623e5b329b75154e9b374c22d3c2ff405b32ccbd7d94a9e5e1e8b117e1
5
5
  SHA512:
6
- metadata.gz: f2afae297bf88523aeb02b39373c3c75195d7a77aa6cb0390730c428ca4fb917ae785317390b84c6ef3060c287aec513ceb13107c3e364d2612bbd30fc93e8b2
7
- data.tar.gz: 93beb280def100489f506b2528c4f7a52689f125f40f5500852e5f2f6ca95e6be4b3d0d25a06739bd9aa87606a9c2e5158bc4dd8de57de784a44635ef0ded015
6
+ metadata.gz: c787ff1f9ab85e8df1788d96767c3e6135abeafe26f0a2efe42a3afe5c87c937224ae9d9f6f81d531b83b16082587baa090a444484a15dd1ace803b7e140bfd2
7
+ data.tar.gz: 1bb6e65c9fb2852d54321d50f936317ff6d3c00b41f27867b93e41e1ee79bfd14a255516d4b733c8d3dee1b4f5234b62a316c294df1891646134631b718b84c8
@@ -26,6 +26,7 @@ module CloudFoundry
26
26
  @tls_ca_path = options.attr(:tls_ca_path, 'PERM_TEST_TLS_CA_PATH', File.join(cert_path, 'tls_ca.crt'))
27
27
  @audit_file_path = options.attr(:audit_file_path, 'PERM_TEST_AUDIT_FILE_PATH', '/dev/null')
28
28
  @tls_ca = File.open(tls_ca_path).read
29
+ @keepalive = options.attr(:keepalive, 'PERM_TEST_KEEPALIVE', '10s')
29
30
 
30
31
  @stdout = options.attr(:stdout, 'PERM_TEST_STDOUT_PATH', STDOUT)
31
32
  @stderr = options.attr(:stderr, 'PERM_TEST_STDERR_PATH', STDERR)
@@ -54,7 +55,7 @@ module CloudFoundry
54
55
  end
55
56
 
56
57
  attr_writer :port
57
- attr_reader :perm_path, :log_level, :process, :tls_cert, :tls_key, :audit_file_path
58
+ attr_reader :perm_path, :log_level, :process, :tls_cert, :tls_key, :audit_file_path, :keepalive
58
59
  attr_reader :stdout, :stderr
59
60
 
60
61
  # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
@@ -72,7 +73,8 @@ module CloudFoundry
72
73
  '--tls-certificate', tls_cert,
73
74
  '--tls-key', tls_key,
74
75
  '--db-driver', 'in-memory',
75
- '--audit-file-path', audit_file_path
76
+ '--audit-file-path', audit_file_path,
77
+ '--max-connection-idle', @keepalive
76
78
  ]
77
79
 
78
80
  process = Subprocess.popen(cmd, stdout: stdout, stderr: stderr)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module CloudFoundry
4
4
  module PermTestHelpers
5
- VERSION = '0.0.5'
5
+ VERSION = '0.0.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cf-perm-test-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - CloudFoundry Permissions Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-01 00:00:00.000000000 Z
11
+ date: 2018-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: subprocess