af-addon-tester 0.0.5 → 0.0.6
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.
- data/bin/af-addon-tester +3 -3
- data/lib/af-addon-tester/version.rb +1 -1
- metadata +3 -3
data/bin/af-addon-tester
CHANGED
@@ -27,7 +27,7 @@ begin
|
|
27
27
|
raise "Missing api password" if manifest['api']['password'].nil?
|
28
28
|
raise "Missing apt test url" if manifest['api']['test'].nil?
|
29
29
|
raise "Manifest must have atleast one plan" if manifest['plans'].nil? || manifest['plans'][0].nil? || manifest['plans'][0]['id'].nil?
|
30
|
-
raise "
|
30
|
+
raise "Missing api config_vars" if manifest['api']['config_vars'].nil?
|
31
31
|
raise "Missing api sso_salt" if manifest['api']['sso_salt'].nil?
|
32
32
|
rescue Exception => e
|
33
33
|
puts bwhite "#{e.message}. Please specify a valid manifest file."
|
@@ -64,7 +64,7 @@ resp = nil
|
|
64
64
|
code = nil
|
65
65
|
|
66
66
|
validate "Provisioning" do
|
67
|
-
payload = { 'customer_id' =>
|
67
|
+
payload = { 'customer_id' => "appfog#{rand(10000)}@appfog.com", 'plan' => 'test', 'callback_url' => callback_url, 'options' => '{}' }
|
68
68
|
begin
|
69
69
|
resp = addon[resources_path].post JSON.generate(payload), headers
|
70
70
|
failed("response code: #{resp.code}") if resp.code != 200
|
@@ -201,7 +201,7 @@ end
|
|
201
201
|
passed
|
202
202
|
end
|
203
203
|
|
204
|
-
|
204
|
+
validate "Deprovision" do
|
205
205
|
resp = addon[File.join(resources_path, resource_id.to_s)].delete
|
206
206
|
failed("response code: #{resp.code}") if resp.code != 200
|
207
207
|
passed
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 6
|
9
|
+
version: 0.0.6
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Tim Santeford
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-01-
|
17
|
+
date: 2012-01-24 00:00:00 -08:00
|
18
18
|
default_executable: af-addon-tester
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|