stella 0.8.7.003 → 0.8.8.001

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,10 @@ STELLA, CHANGES
10
10
  * TODO: request block conditions.
11
11
  * TODO: process templates for calls to set in get blocks
12
12
 
13
+ #### 0.8.8 (2011-02-26) ###############################
14
+
15
+ * FIXED: Require benelux 0.5.17 (fixed for Ruby 1.9.2)
16
+
13
17
  #### 0.8.7.002 (2010-06-14) ###############################
14
18
 
15
19
  * FIXED: Specifying a host w/ a path and no testplan no longer doubles up the path
data/Rakefile CHANGED
@@ -27,7 +27,7 @@ begin
27
27
  gem.authors = ["Delano Mandelbaum"]
28
28
  gem.add_dependency("gibbler", ">= 0.8.1")
29
29
  gem.add_dependency("drydock", ">= 0.6.9")
30
- gem.add_dependency("benelux", "= 0.5.15")
30
+ gem.add_dependency("benelux", "= 0.5.17")
31
31
  gem.add_dependency('sysinfo', '>= 0.7.3')
32
32
  gem.add_dependency('storable', '>= 0.7.3')
33
33
  gem.add_dependency("nokogiri")
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :MAJOR: 0
3
3
  :MINOR: 8
4
- :PATCH: 7
5
- :BUILD: '003'
4
+ :PATCH: 8
5
+ :BUILD: '001'
@@ -22,7 +22,7 @@ usecase "Dynamic Data" do
22
22
  # Specify a username, password, and optional value
23
23
  # to use for the authentication domain. If no domain
24
24
  # is specifed, the root URI will be used.
25
- #auth :user, :password, 'http://domain/'
25
+ #http_auth :user, :password, 'http://domain/'
26
26
 
27
27
  # Retrieve a list of listings and store
28
28
  # them in a resource called listing_ids.
@@ -80,6 +80,7 @@
80
80
  desc "Product Finder"
81
81
 
82
82
  usecase 65, "Simple search" do
83
+ auth :user, :password, 'http://domain/'
83
84
 
84
85
  # An important factor in simulating traffic
85
86
  # is using real, dynamic data. You can load
@@ -0,0 +1,33 @@
1
+ # Stella Test Plan - HTTP Authentication (2011-02-26)
2
+ #
3
+ #
4
+ # 1. START THE EXAMPLE APPLICATION
5
+ #
6
+ # This test plan is written to work with the
7
+ # example application at bff.heroku.com.
8
+ #
9
+ #
10
+ # 2. RUN THE TEST PLAN
11
+ #
12
+ # $ stella verify -p examples/httpauth/plan.rb http://bff.heroku.com/
13
+ #
14
+ usecase "Use basic HTTP authentication" do
15
+
16
+ auth 'stella', 'why??'
17
+
18
+ get '/admin' do
19
+ response 401 do
20
+ # Called if authentication fails
21
+ end
22
+ response 200 do
23
+ # Called if authentication succeeds
24
+ end
25
+ end
26
+
27
+ # You can also set the HTTP auth per request.
28
+ # Note that here we give an incorrect password.
29
+ get '/admin' do
30
+ auth 'stella', 'badpassword'
31
+ end
32
+
33
+ end
@@ -5,7 +5,7 @@ STELLA_LIB_HOME = File.expand_path File.dirname(__FILE__) unless defined?(STELLA
5
5
  # $:.unshift File.join(STELLA_LIB_HOME, '..', '..', dir, 'lib')
6
6
  #end
7
7
 
8
- autoload :SysInfo, 'sysinfo'
8
+ require 'sysinfo'
9
9
  autoload :Drydock, 'drydock'
10
10
  autoload :URI, 'uri'
11
11
  autoload :OpenStruct, 'ostruct'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{stella}
8
- s.version = "0.8.7.003"
8
+ s.version = "0.8.8.001"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Delano Mandelbaum"]
12
- s.date = %q{2011-02-15}
12
+ s.date = %q{2011-02-26}
13
13
  s.default_executable = %q{stella}
14
14
  s.description = %q{Blame Stella for breaking your web application!}
15
15
  s.email = %q{delano@solutious.com}
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
36
36
  "examples/essentials/plan.rb",
37
37
  "examples/essentials/search_terms.txt",
38
38
  "examples/exceptions/plan.rb",
39
+ "examples/httpauth/plan.rb",
39
40
  "examples/timeout/plan.rb",
40
41
  "examples/variables/plan.rb",
41
42
  "lib/stella.rb",
@@ -88,6 +89,7 @@ Gem::Specification.new do |s|
88
89
  "examples/dynamic/plan.rb",
89
90
  "examples/essentials/plan.rb",
90
91
  "examples/exceptions/plan.rb",
92
+ "examples/httpauth/plan.rb",
91
93
  "examples/timeout/plan.rb",
92
94
  "examples/variables/plan.rb"
93
95
  ]
@@ -98,14 +100,14 @@ Gem::Specification.new do |s|
98
100
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
99
101
  s.add_runtime_dependency(%q<gibbler>, [">= 0.8.1"])
100
102
  s.add_runtime_dependency(%q<drydock>, [">= 0.6.9"])
101
- s.add_runtime_dependency(%q<benelux>, ["= 0.5.15"])
103
+ s.add_runtime_dependency(%q<benelux>, ["= 0.5.17"])
102
104
  s.add_runtime_dependency(%q<sysinfo>, [">= 0.7.3"])
103
105
  s.add_runtime_dependency(%q<storable>, [">= 0.7.3"])
104
106
  s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
105
107
  else
106
108
  s.add_dependency(%q<gibbler>, [">= 0.8.1"])
107
109
  s.add_dependency(%q<drydock>, [">= 0.6.9"])
108
- s.add_dependency(%q<benelux>, ["= 0.5.15"])
110
+ s.add_dependency(%q<benelux>, ["= 0.5.17"])
109
111
  s.add_dependency(%q<sysinfo>, [">= 0.7.3"])
110
112
  s.add_dependency(%q<storable>, [">= 0.7.3"])
111
113
  s.add_dependency(%q<nokogiri>, [">= 0"])
@@ -113,7 +115,7 @@ Gem::Specification.new do |s|
113
115
  else
114
116
  s.add_dependency(%q<gibbler>, [">= 0.8.1"])
115
117
  s.add_dependency(%q<drydock>, [">= 0.6.9"])
116
- s.add_dependency(%q<benelux>, ["= 0.5.15"])
118
+ s.add_dependency(%q<benelux>, ["= 0.5.17"])
117
119
  s.add_dependency(%q<sysinfo>, [">= 0.7.3"])
118
120
  s.add_dependency(%q<storable>, [">= 0.7.3"])
119
121
  s.add_dependency(%q<nokogiri>, [">= 0"])
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: stella
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.8.7.003
5
+ version: 0.8.8.001
6
6
  platform: ruby
7
7
  authors:
8
8
  - Delano Mandelbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-02-15 00:00:00 -05:00
13
+ date: 2011-02-26 00:00:00 -05:00
14
14
  default_executable: stella
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ dependencies:
43
43
  requirements:
44
44
  - - "="
45
45
  - !ruby/object:Gem::Version
46
- version: 0.5.15
46
+ version: 0.5.17
47
47
  type: :runtime
48
48
  version_requirements: *id003
49
49
  - !ruby/object:Gem::Dependency
@@ -106,6 +106,7 @@ files:
106
106
  - examples/essentials/plan.rb
107
107
  - examples/essentials/search_terms.txt
108
108
  - examples/exceptions/plan.rb
109
+ - examples/httpauth/plan.rb
109
110
  - examples/timeout/plan.rb
110
111
  - examples/variables/plan.rb
111
112
  - lib/stella.rb
@@ -179,5 +180,6 @@ test_files:
179
180
  - examples/dynamic/plan.rb
180
181
  - examples/essentials/plan.rb
181
182
  - examples/exceptions/plan.rb
183
+ - examples/httpauth/plan.rb
182
184
  - examples/timeout/plan.rb
183
185
  - examples/variables/plan.rb