af-addon-tester 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
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 "missing api config_vars" if manifest['api']['config_vars'].nil?
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' => customer_id, 'plan' => plan, 'callback_url' => callback_url, 'options' => '{}' }
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
- validate "Deprovision" do
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
@@ -1,5 +1,5 @@
1
1
  module AppFog
2
2
  module AddonTester
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
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-18 00:00:00 -08:00
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