prof 0.29.4 → 0.30.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc3e874340f1268df04fc3ec269a96ec7fef8867
|
4
|
+
data.tar.gz: 8162e2cddf4540447ae9f29aef512c61c62648b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ad99c53dec9d256a64b55b7c9aaf8c33af4df61f7ff500b11a8208405fc2303c6983dcc3338753131956862ee4e1de007d0611b085ea4ba528f024465f19af
|
7
|
+
data.tar.gz: cd47767df21e3544cd1fa795b10f6fb93a2549d7666f8bb46c111cb857cc68e130760f2942dc5ef8086e4f42665d8cdbcceb15dadf3316f9246896e1d075c959
|
data/lib/prof/cloud_foundry.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2014-
|
1
|
+
# Copyright (c) 2014-2016 Pivotal Software, Inc.
|
2
2
|
# All rights reserved.
|
3
3
|
# THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
4
4
|
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
@@ -48,6 +48,14 @@ module Prof
|
|
48
48
|
@password = opts.fetch(:password)
|
49
49
|
end
|
50
50
|
|
51
|
+
def push_and_keep_app(app)
|
52
|
+
pushed_app_name = "cf-app-#{SecureRandom.hex(4)}"
|
53
|
+
deployed_app = PushedTestApp.new(name: pushed_app_name, url: hula_cloud_foundry.url_for_app(pushed_app_name))
|
54
|
+
|
55
|
+
hula_cloud_foundry.push_app(app.path, deployed_app.name)
|
56
|
+
[deployed_app.name, deployed_app.url]
|
57
|
+
end
|
58
|
+
|
51
59
|
def push_app(app, &_block)
|
52
60
|
pushed_app_name = "cf-app-#{SecureRandom.hex(4)}"
|
53
61
|
deployed_app = PushedTestApp.new(name: pushed_app_name, url: hula_cloud_foundry.url_for_app(pushed_app_name))
|
@@ -82,6 +90,11 @@ module Prof
|
|
82
90
|
end
|
83
91
|
end
|
84
92
|
|
93
|
+
def bind_service_and_keep_running(pushed_app_name, service_instance_name)
|
94
|
+
hula_cloud_foundry.bind_app_to_service(pushed_app_name, service_instance_name)
|
95
|
+
hula_cloud_foundry.start_app(pushed_app_name)
|
96
|
+
end
|
97
|
+
|
85
98
|
def bind_service_and_run(pushed_app, service_instance, &_block)
|
86
99
|
hula_cloud_foundry.bind_app_to_service(pushed_app.name, service_instance.name)
|
87
100
|
hula_cloud_foundry.start_app(pushed_app.name)
|
@@ -120,6 +133,13 @@ module Prof
|
|
120
133
|
hula_cloud_foundry.delete_service_key(service_instance.name, service_key)
|
121
134
|
end
|
122
135
|
|
136
|
+
def provision_and_keep_service(service)
|
137
|
+
service_instance = ServiceInstance.new
|
138
|
+
|
139
|
+
hula_cloud_foundry.create_service_instance(service.name, service_instance.name, service.plan)
|
140
|
+
service_instance.name
|
141
|
+
end
|
142
|
+
|
123
143
|
def provision_service(service, &_block)
|
124
144
|
service_instance = ServiceInstance.new
|
125
145
|
|
@@ -11,8 +11,7 @@
|
|
11
11
|
require 'ostruct'
|
12
12
|
|
13
13
|
require 'prof/ssl/check'
|
14
|
-
|
15
|
-
require 'rspec/matchers/pretty'
|
14
|
+
require 'rspec/matchers/english_phrasing'
|
16
15
|
|
17
16
|
module Prof
|
18
17
|
module Matchers
|
@@ -26,8 +25,6 @@ module Prof
|
|
26
25
|
|
27
26
|
class OnlySupportSslWithCipherSet
|
28
27
|
|
29
|
-
include RSpec::Matchers::Pretty
|
30
|
-
|
31
28
|
def initialize(cipher_set)
|
32
29
|
@cipher_set = cipher_set
|
33
30
|
end
|
@@ -46,10 +43,10 @@ module Prof
|
|
46
43
|
|
47
44
|
def failure_message
|
48
45
|
[
|
49
|
-
("The server is missing support for#{
|
50
|
-
("The server supports#{
|
51
|
-
("The server is missing support for#{
|
52
|
-
|
46
|
+
("The server is missing support for#{RSpec::Matchers::EnglishPhrasing.list(server_missing_supported_ciphers)}" if server_missing_supported_ciphers.any?),
|
47
|
+
("The server supports#{RSpec::Matchers::EnglishPhrasing.list(server_extra_ciphers)} when it should not" if server_extra_ciphers.any?),
|
48
|
+
("The server is missing support for#{RSpec::Matchers::EnglishPhrasing.list(server_missing_supported_protocols)}" if server_missing_supported_protocols.any?),
|
49
|
+
("The server supports#{RSpec::Matchers::EnglishPhrasing.list(server_extra_protocols)} when it should not" if server_extra_protocols.any?),
|
53
50
|
("The server supports HTTP when it should not" if http_enabled)
|
54
51
|
].compact.join("\n")
|
55
52
|
end
|
data/lib/prof/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prof
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CF London
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem-release
|
@@ -266,16 +266,16 @@ dependencies:
|
|
266
266
|
name: rspec
|
267
267
|
requirement: !ruby/object:Gem::Requirement
|
268
268
|
requirements:
|
269
|
-
- -
|
269
|
+
- - "~>"
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: '3.
|
271
|
+
version: '3.3'
|
272
272
|
type: :runtime
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
|
-
- -
|
276
|
+
- - "~>"
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version: '3.
|
278
|
+
version: '3.3'
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: rspec_junit_formatter
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -396,7 +396,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
396
396
|
version: '0'
|
397
397
|
requirements: []
|
398
398
|
rubyforge_project:
|
399
|
-
rubygems_version: 2.4.
|
399
|
+
rubygems_version: 2.4.5.1
|
400
400
|
signing_key:
|
401
401
|
specification_version: 4
|
402
402
|
summary: A gem to test CF service brokers
|