stella 0.8.8.001 → 2.0.1.001
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +9 -1
- data/Gemfile +19 -0
- data/Gemfile.lock +50 -0
- data/README.md +5 -79
- data/Rakefile +10 -7
- data/Rudyfile +1 -1
- data/TODO +31 -0
- data/VERSION.yml +3 -4
- data/bin/stella +23 -81
- data/certs/README.txt +17 -0
- data/certs/cacerts.pem +1529 -0
- data/certs/gd-class2-root.crt +24 -0
- data/certs/gd_bundle.crt +76 -0
- data/certs/gd_intermediate.crt +29 -0
- data/certs/startssl-ca.pem +44 -0
- data/certs/startssl-sub.class1.server.ca.pem +36 -0
- data/certs/stella-master.crt +1738 -0
- data/lib/stella.rb +191 -123
- data/lib/stella/cli.rb +47 -67
- data/lib/stella/client.rb +424 -360
- data/lib/stella/core_ext.rb +527 -0
- data/lib/stella/engine.rb +126 -419
- data/lib/stella/report.rb +391 -0
- data/lib/stella/testplan.rb +432 -306
- data/lib/stella/utils.rb +227 -2
- data/stella.gemspec +56 -55
- data/try/00_basics_try.rb +29 -0
- data/try/01_selectable_try.rb +25 -0
- data/try/09_utils_try.rb +67 -0
- data/try/10_stella_object_try.rb +49 -0
- data/try/40_report_try.rb +133 -0
- data/try/90_class_syntax_try.rb +13 -0
- data/try/emhttp.rb +62 -0
- data/try/rubyroute.rb +70 -0
- data/try/support/file.bmp +0 -0
- data/try/support/file.gif +0 -0
- data/try/support/file.ico +0 -0
- data/try/support/file.jpeg +0 -0
- data/try/support/file.jpg +0 -0
- data/try/support/file.png +0 -0
- data/try/traceviz.rb +60 -0
- data/vendor/httpclient-2.1.5.2/httpclient/session.rb +5 -2
- metadata +81 -53
- data/examples/cookies/plan.rb +0 -49
- data/examples/csvdata/plan.rb +0 -32
- data/examples/csvdata/search_terms.csv +0 -14
- data/examples/dynamic/plan.rb +0 -60
- data/examples/essentials/logo.png +0 -0
- data/examples/essentials/plan.rb +0 -248
- data/examples/essentials/search_terms.txt +0 -19
- data/examples/exceptions/plan.rb +0 -20
- data/examples/httpauth/plan.rb +0 -33
- data/examples/timeout/plan.rb +0 -18
- data/examples/variables/plan.rb +0 -41
- data/lib/stella/client/container.rb +0 -378
- data/lib/stella/common.rb +0 -363
- data/lib/stella/data.rb +0 -59
- data/lib/stella/data/http.rb +0 -189
- data/lib/stella/engine/functional.rb +0 -156
- data/lib/stella/engine/load.rb +0 -516
- data/lib/stella/guidelines.rb +0 -18
- data/lib/stella/logger.rb +0 -150
- data/lib/stella/utils/httputil.rb +0 -266
- data/try/01_numeric_mixins_tryouts.rb +0 -40
- data/try/12_digest_tryouts.rb +0 -42
- data/try/70_module_usage.rb +0 -21
- data/try/api/10_functional.rb +0 -20
- data/try/configs/failed_requests.rb +0 -31
- data/try/configs/global_sequential.rb +0 -18
- data/try/proofs/thread_queue.rb +0 -21
data/try/12_digest_tryouts.rb
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
|
2
|
-
group "Stella"
|
3
|
-
library :stella, 'lib'
|
4
|
-
tryouts "Object Digests" do
|
5
|
-
setup do
|
6
|
-
#Gibbler.enable_debug
|
7
|
-
end
|
8
|
-
clean do
|
9
|
-
Gibbler.disable_debug
|
10
|
-
end
|
11
|
-
|
12
|
-
dream "90199c341ea7ea4e22139e690e3d68a78ec6fce3"
|
13
|
-
drill "Request can gibbler" do
|
14
|
-
r = Stella::Data::HTTP::Request.new :get, '/'
|
15
|
-
r.digest
|
16
|
-
end
|
17
|
-
|
18
|
-
dream "9ef5fb0707526e47547b3e6a59d8d3e3de64667f"
|
19
|
-
drill "Usecase can gibbler" do
|
20
|
-
u = Stella::Testplan::Usecase.new
|
21
|
-
u.digest
|
22
|
-
end
|
23
|
-
|
24
|
-
dream "0d5d6ac215563f09d4143d7e1ca9ac0611cc164d"
|
25
|
-
drill "Testplan can gibbler" do
|
26
|
-
t = Stella::Testplan.new 'localhost'
|
27
|
-
t.digest
|
28
|
-
end
|
29
|
-
|
30
|
-
dream "a04e699bf8d354c68101ae62bf3e4f32fbae3221"
|
31
|
-
drill "Complex Testplan can gibbler" do
|
32
|
-
u = Stella::Testplan::Usecase.new
|
33
|
-
r = u.add_request :get, '/', 'homepage'
|
34
|
-
r.param :user => :name
|
35
|
-
t = Stella::Testplan.new 'localhost'
|
36
|
-
t.add_usecase u
|
37
|
-
t.digest
|
38
|
-
end
|
39
|
-
|
40
|
-
end
|
41
|
-
|
42
|
-
|
data/try/70_module_usage.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
# ruby -Ilib tryouts/70_module_usage.rb
|
2
|
-
|
3
|
-
require 'stella'
|
4
|
-
|
5
|
-
#Benelux.enable_debug
|
6
|
-
#Stella.stdout.lev = 3
|
7
|
-
|
8
|
-
Stella.enable_quiet
|
9
|
-
|
10
|
-
plan = Stella::Testplan.new('http://localhost:3114/search')
|
11
|
-
opts = {
|
12
|
-
:hosts => '',
|
13
|
-
:mode => :generate,
|
14
|
-
:clients => 100,
|
15
|
-
#:duration => 10
|
16
|
-
}
|
17
|
-
|
18
|
-
testrun = Stella::Testrun.new plan, opts
|
19
|
-
testrun.run
|
20
|
-
|
21
|
-
puts testrun.to_yaml
|
data/try/api/10_functional.rb
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
# ruby -Ilib tryouts/api/10_functional.rb
|
2
|
-
require 'stella'
|
3
|
-
require 'bone'
|
4
|
-
|
5
|
-
Stella.enable_debug
|
6
|
-
|
7
|
-
Bone['STELLA_TOKEN'] = '1'.gibbler
|
8
|
-
abort 'Set STELLA_SOURCE' unless Bone['STELLA_SOURCE']
|
9
|
-
|
10
|
-
plan_path = File.join STELLA_LIB_HOME, '..', 'examples', 'essentials', 'plan.rb'
|
11
|
-
plan = Stella::Testplan.load_file plan_path
|
12
|
-
|
13
|
-
service = Stella::Service.new Bone['STELLA_SOURCE'], Bone['STELLA_TOKEN']
|
14
|
-
service.testplan_sync plan
|
15
|
-
|
16
|
-
service.testrun_create :hosts => ['http://locahost:3000', 'http://locahost:3001']
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
usecase "Failed Requests" do
|
3
|
-
|
4
|
-
get "/" do
|
5
|
-
param :req => 1 # success
|
6
|
-
end
|
7
|
-
|
8
|
-
get "/badpath" do
|
9
|
-
param :req => 2 # failed
|
10
|
-
end
|
11
|
-
|
12
|
-
get "/badpath" do
|
13
|
-
param :req => 3
|
14
|
-
response 404 do # success
|
15
|
-
end
|
16
|
-
end
|
17
|
-
|
18
|
-
get "/badpath" do
|
19
|
-
param :req => 4
|
20
|
-
response 404 do # failed
|
21
|
-
fail
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
get "/badpath" do
|
26
|
-
param :req => 5
|
27
|
-
response do # success
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
end
|
@@ -1,18 +0,0 @@
|
|
1
|
-
|
2
|
-
usecase "Global Sequential" do
|
3
|
-
|
4
|
-
get "/" do
|
5
|
-
param :req => 1
|
6
|
-
param :a => sequential([1,2,3])
|
7
|
-
param :b => sequential([4,5,6])
|
8
|
-
param :c => sequential([7,8,9])
|
9
|
-
end
|
10
|
-
|
11
|
-
get "/" do
|
12
|
-
param :req => 2
|
13
|
-
param :a => rsequential([33,22,11])
|
14
|
-
param :b => rsequential([66,55,44])
|
15
|
-
param :c => rsequential([99,88,77])
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
data/try/proofs/thread_queue.rb
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'thread'
|
2
|
-
|
3
|
-
queue = Queue.new
|
4
|
-
|
5
|
-
producer = Thread.new do
|
6
|
-
5.times do |i|
|
7
|
-
sleep rand(i) # simulate expense
|
8
|
-
queue << i
|
9
|
-
puts "#{i} produced"
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
consumer = Thread.new do
|
14
|
-
5.times do |i|
|
15
|
-
value = queue.pop
|
16
|
-
sleep rand(i/2) # simulate expense
|
17
|
-
puts "consumed #{value}"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
consumer.join
|