stormforge-ruby 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.rspec +2 -0
- data/.travis.yml +17 -0
- data/Gemfile +4 -0
- data/Guardfile +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +72 -0
- data/Rakefile +6 -0
- data/bin/stormforge +18 -0
- data/examples/README.md +27 -0
- data/examples/Stormfile +1 -0
- data/examples/demo_case.rb +12 -0
- data/examples/file_upload.rb +28 -0
- data/examples/fixtures/requests.csv +2 -0
- data/examples/fixtures/users.csv +2 -0
- data/examples/simple_and_long.rb +12 -0
- data/examples/simple_and_short.rb +12 -0
- data/examples/test_case_definition_v1.rb +206 -0
- data/lib/core_ext/fixnum.rb +20 -0
- data/lib/stormforge.rb +39 -0
- data/lib/stormforge/client.rb +227 -0
- data/lib/stormforge/dsl.rb +4 -0
- data/lib/stormforge/dsl/test_case.rb +9 -0
- data/lib/stormforge/dsl/test_case/attribute_access.rb +19 -0
- data/lib/stormforge/dsl/test_case/cloud.rb +33 -0
- data/lib/stormforge/dsl/test_case/data_source.rb +49 -0
- data/lib/stormforge/dsl/test_case/data_source/file_fixture.rb +104 -0
- data/lib/stormforge/dsl/test_case/data_source/random_number.rb +64 -0
- data/lib/stormforge/dsl/test_case/data_source/random_string.rb +52 -0
- data/lib/stormforge/dsl/test_case/definition.rb +128 -0
- data/lib/stormforge/dsl/test_case/session.rb +77 -0
- data/lib/stormforge/registry.rb +23 -0
- data/lib/stormforge/version.rb +3 -0
- data/lib/thor/generators/init.rb +14 -0
- data/lib/thor/generators/templates/Stormfile +15 -0
- data/lib/thor/main.rb +79 -0
- data/lib/thor/storm_forge_base.rb +46 -0
- data/lib/thor/testcase.rb +23 -0
- data/lib/thor/testrun.rb +75 -0
- data/spec/client_spec.rb +4 -0
- data/spec/dsl/test_case/attribute_access_spec.rb +46 -0
- data/spec/dsl/test_case/cloud_spec.rb +15 -0
- data/spec/dsl/test_case/data_source/file_fixture_spec.rb +101 -0
- data/spec/dsl/test_case/data_source/random_number_spec.rb +51 -0
- data/spec/dsl/test_case/data_source/random_string_spec.rb +33 -0
- data/spec/dsl/test_case/data_source_spec.rb +12 -0
- data/spec/dsl/test_case/definition_spec.rb +107 -0
- data/spec/dsl/test_case/session_spec.rb +102 -0
- data/spec/dsl/test_case_integration_spec.rb +148 -0
- data/spec/dsl/test_case_spec.rb +8 -0
- data/spec/fixtures/ip_addresses.csv +1 -0
- data/spec/fixtures/slug.csv +1 -0
- data/spec/fixtures/users.csv +2 -0
- data/spec/registry_spec.rb +34 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/stormforger_spec.rb +13 -0
- data/stormforge_ruby.gemspec +38 -0
- metadata +344 -0
@@ -0,0 +1,102 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe StormForge::Dsl::TestCase::Session do
|
4
|
+
|
5
|
+
describe "Validations" do
|
6
|
+
subject { StormForge::Dsl::TestCase::Session.new "Test", 42, nil, Proc.new {} }
|
7
|
+
it { should validate_presence_of(:name) }
|
8
|
+
|
9
|
+
it { should validate_numericality_of(:probability)}
|
10
|
+
it { should ensure_inclusion_of(:probability).in_range(1..100) }
|
11
|
+
|
12
|
+
it "should be invalid with no steps" do
|
13
|
+
subject.steps = []
|
14
|
+
subject.valid?
|
15
|
+
subject.errors[:steps].should be_present
|
16
|
+
end
|
17
|
+
|
18
|
+
it "requires at least one step" do
|
19
|
+
subject.steps = [:foo]
|
20
|
+
subject.valid?
|
21
|
+
subject.errors[:steps].should be_empty
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
it "should foward calls to #pick(what) to the proper data source" do
|
26
|
+
data_sources = StormForge::Dsl::TestCase::DataSource.new do
|
27
|
+
random_number :something, range: 10..42
|
28
|
+
end
|
29
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", 100, data_sources, Proc.new {}
|
30
|
+
session.pick(:something).should == "${GENERATOR|t=random_number-n=something-seq=1}"
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should know its probability" do
|
34
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", 42, nil, Proc.new {}
|
35
|
+
session.probability.should == 42
|
36
|
+
end
|
37
|
+
|
38
|
+
it "should know its name" do
|
39
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", 42, nil, Proc.new {}
|
40
|
+
session.name.should == "Test Session"
|
41
|
+
end
|
42
|
+
|
43
|
+
it "should have a description" do
|
44
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", nil, 42 do
|
45
|
+
description "lorem ipsum"
|
46
|
+
end
|
47
|
+
session.description.should == "lorem ipsum"
|
48
|
+
end
|
49
|
+
|
50
|
+
describe "Step Definition" do
|
51
|
+
it "get request" do
|
52
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", 23, nil do
|
53
|
+
get "/"
|
54
|
+
end
|
55
|
+
|
56
|
+
session.steps.should include({:action=>:request, :method=>:get, :path=>"/", :options=>{}})
|
57
|
+
end
|
58
|
+
|
59
|
+
it "post request" do
|
60
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", nil, 23 do
|
61
|
+
post "/post-endpoint"
|
62
|
+
end
|
63
|
+
|
64
|
+
session.steps.should include({:action=>:request, :method=>:post, :path=>"/post-endpoint", :options=>{}})
|
65
|
+
end
|
66
|
+
|
67
|
+
it "wait" do
|
68
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", nil, 23 do
|
69
|
+
wait 1
|
70
|
+
end
|
71
|
+
|
72
|
+
session.steps.should include({:action=>:wait, :duration=>1})
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
it "should serialize to JSON" do
|
77
|
+
data_sources = StormForge::Dsl::TestCase::DataSource.new do
|
78
|
+
random_number :something, range: 10..42
|
79
|
+
end
|
80
|
+
session = StormForge::Dsl::TestCase::Session.new "Test Session", 23, data_sources do
|
81
|
+
get "/#{pick(:something)}"
|
82
|
+
end
|
83
|
+
|
84
|
+
session.valid?.should == true
|
85
|
+
|
86
|
+
session.as_json.should match_json_expression({
|
87
|
+
name: "Test Session",
|
88
|
+
probability: 23,
|
89
|
+
steps: [
|
90
|
+
{
|
91
|
+
action: :request,
|
92
|
+
method: :get,
|
93
|
+
path: "/${GENERATOR|t=random_number-n=something-seq=1}",
|
94
|
+
options: {}
|
95
|
+
}
|
96
|
+
],
|
97
|
+
data_sources_usage: {
|
98
|
+
something: 1
|
99
|
+
}
|
100
|
+
})
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,148 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe "Test Case" do
|
4
|
+
it "should do something of everything" do
|
5
|
+
test_case = StormForge::Dsl::TestCase.define :test_blog_posts do
|
6
|
+
title "Test Case #1"
|
7
|
+
version "0.5"
|
8
|
+
|
9
|
+
description "Description of my first test case."
|
10
|
+
|
11
|
+
targets "api.example.com"
|
12
|
+
|
13
|
+
cloud :aws do
|
14
|
+
security_group "sg-123456"
|
15
|
+
end
|
16
|
+
|
17
|
+
data_sources do
|
18
|
+
file :blog_post_slug, source: File.join(File.dirname(__FILE__), "../fixtures/slug.csv")
|
19
|
+
file :ip, source: File.join(File.dirname(__FILE__), "../fixtures/ip_addresses.csv")
|
20
|
+
|
21
|
+
random_number :a_number, range: 23..42
|
22
|
+
random_string :a_token, length: 50
|
23
|
+
end
|
24
|
+
|
25
|
+
arrival_phase warmup: true, duration: 10.minutes, rate: 10.per_second
|
26
|
+
arrival_phase duration: 30.minutes, rate: 5.per_minute
|
27
|
+
arrival_phase duration: 1.hour, rate: 10.per_minute
|
28
|
+
|
29
|
+
session "read posts", 100.percent do
|
30
|
+
get "/posts/#{pick(:blog_post_slug)}",
|
31
|
+
gzip: true,
|
32
|
+
cookies: {},
|
33
|
+
headers: {
|
34
|
+
"X-Forwared-For" => pick(:ip)
|
35
|
+
}
|
36
|
+
wait 1.second
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
test_case.valid?.should == true
|
41
|
+
|
42
|
+
pattern = {
|
43
|
+
definition: {
|
44
|
+
description: "Description of my first test case.",
|
45
|
+
title: "Test Case #1",
|
46
|
+
version: "0.5",
|
47
|
+
|
48
|
+
targets: [ "api.example.com" ],
|
49
|
+
|
50
|
+
arrival_phases: [
|
51
|
+
{
|
52
|
+
warmup: true,
|
53
|
+
duration: 600,
|
54
|
+
duration_unit: "second",
|
55
|
+
rate: 10.0,
|
56
|
+
rate_unit: "second"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
warmup: false,
|
60
|
+
duration: 1800,
|
61
|
+
duration_unit: "second",
|
62
|
+
rate: 0.08333333333333333,
|
63
|
+
rate_unit: "second"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
warmup: false,
|
67
|
+
duration: 3600,
|
68
|
+
duration_unit: "second",
|
69
|
+
rate: 0.16666666666666666,
|
70
|
+
rate_unit: "second"
|
71
|
+
}
|
72
|
+
].ordered!,
|
73
|
+
|
74
|
+
cloud: {
|
75
|
+
provider: "aws",
|
76
|
+
security_groups: [ "sg-123456" ]
|
77
|
+
},
|
78
|
+
|
79
|
+
data_sources: {
|
80
|
+
blog_post_slug: {
|
81
|
+
delimiter: ";",
|
82
|
+
name: "blog_post_slug",
|
83
|
+
order: "sequentially",
|
84
|
+
source: "slug.csv",
|
85
|
+
type: "file_fixture",
|
86
|
+
md5_hash: "12034224d63a3c44dbc27f6dc58f7be6"
|
87
|
+
},
|
88
|
+
ip: {
|
89
|
+
delimiter: ";",
|
90
|
+
name: "ip",
|
91
|
+
order: "sequentially",
|
92
|
+
source: "ip_addresses.csv",
|
93
|
+
type: "file_fixture",
|
94
|
+
md5_hash: "efe485042749fad4d77451d0aa25b794"
|
95
|
+
},
|
96
|
+
a_number: {
|
97
|
+
name: "a_number",
|
98
|
+
type: "random_number",
|
99
|
+
range: [23, 42]
|
100
|
+
},
|
101
|
+
a_token: {
|
102
|
+
name: "a_token",
|
103
|
+
type: "random_string",
|
104
|
+
length: 50
|
105
|
+
}
|
106
|
+
},
|
107
|
+
|
108
|
+
sessions: {
|
109
|
+
"read posts" =>
|
110
|
+
{
|
111
|
+
name: "read posts",
|
112
|
+
probability: 100,
|
113
|
+
data_sources_usage:
|
114
|
+
{
|
115
|
+
blog_post_slug: 1,
|
116
|
+
ip: 1,
|
117
|
+
a_number: 0,
|
118
|
+
a_token: 0
|
119
|
+
},
|
120
|
+
steps: [
|
121
|
+
{
|
122
|
+
action: "request",
|
123
|
+
method: "get",
|
124
|
+
path: "/posts/${FILEFIXTURE|n=blog_post_slug-seq=1}",
|
125
|
+
options: {
|
126
|
+
gzip: true,
|
127
|
+
cookies: {},
|
128
|
+
headers: {
|
129
|
+
"X-Forwared-For" => "${FILEFIXTURE|n=ip-seq=1}"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
},
|
133
|
+
{
|
134
|
+
action: "wait",
|
135
|
+
duration: 1
|
136
|
+
}
|
137
|
+
].ordered!
|
138
|
+
}
|
139
|
+
},
|
140
|
+
},
|
141
|
+
|
142
|
+
dsl_version: "v1",
|
143
|
+
slug: "test_blog_posts"
|
144
|
+
}
|
145
|
+
|
146
|
+
test_case.to_json.should match_json_expression(pattern)
|
147
|
+
end
|
148
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
2.1.3.4
|
@@ -0,0 +1 @@
|
|
1
|
+
my_2nd_post
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe StormForge::Registry do
|
4
|
+
it "#define and #get" do
|
5
|
+
subject.define :slug, Proc.new {}
|
6
|
+
|
7
|
+
subject.get(:slug).should be_a StormForge::Dsl::TestCase::Definition
|
8
|
+
subject.get(:slug).slug.should == "slug"
|
9
|
+
end
|
10
|
+
|
11
|
+
it "aliases #get to #[]" do
|
12
|
+
subject.define :slug, Proc.new {}
|
13
|
+
|
14
|
+
subject.get(:slug).should == subject[:slug]
|
15
|
+
end
|
16
|
+
|
17
|
+
it "is enumerable" do
|
18
|
+
subject.define :slug, Proc.new {}
|
19
|
+
|
20
|
+
cases = subject.map { |slug, definition| slug }
|
21
|
+
|
22
|
+
cases.should == [:slug]
|
23
|
+
end
|
24
|
+
|
25
|
+
it "can #reset registered cases" do
|
26
|
+
subject.define :a_slug, Proc.new {}
|
27
|
+
|
28
|
+
subject.get(:a_slug).slug.should == "a_slug"
|
29
|
+
|
30
|
+
subject.reset!
|
31
|
+
|
32
|
+
subject.get(:a_slug).should == nil
|
33
|
+
end
|
34
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require "json_expressions/rspec"
|
2
|
+
require "simplecov"
|
3
|
+
|
4
|
+
SimpleCov.adapters.define "stormforge" do
|
5
|
+
add_filter "/spec"
|
6
|
+
add_filter "/examples"
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.start 'stormforge'
|
10
|
+
|
11
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
12
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
13
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
14
|
+
# loaded once.
|
15
|
+
#
|
16
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
17
|
+
RSpec.configure do |config|
|
18
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
19
|
+
config.run_all_when_everything_filtered = true
|
20
|
+
config.filter_run :focus
|
21
|
+
|
22
|
+
# Run specs in random order to surface order dependencies. If you find an
|
23
|
+
# order dependency and want to debug it, you can fix the order by providing
|
24
|
+
# the seed, which is printed after each run.
|
25
|
+
# --seed 1234
|
26
|
+
config.order = 'random'
|
27
|
+
end
|
28
|
+
|
29
|
+
require "stormforge"
|
30
|
+
|
31
|
+
require "shoulda-matchers"
|
32
|
+
|
33
|
+
FIXTURE_PATH = File.join(File.dirname(__FILE__), "/fixtures/")
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe StormForge do
|
4
|
+
before(:each) do
|
5
|
+
StormForge.registry.reset!
|
6
|
+
end
|
7
|
+
|
8
|
+
it "delegates #define_case and #test_case to the registry" do
|
9
|
+
StormForge.define_case :test_case_slug, Proc.new {}
|
10
|
+
|
11
|
+
StormForge.test_case(:test_case_slug).should_not be_nil
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path("../lib", __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require "stormforge/version"
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "stormforge-ruby"
|
8
|
+
gem.version = StormForge::VERSION
|
9
|
+
gem.authors = ["Sebastian Cohnen"]
|
10
|
+
gem.email = ["basti@stormforger.com"]
|
11
|
+
gem.description = %q{stormforge-ruby is ruby the client library for the StormForger load test service}
|
12
|
+
gem.summary = %q{stormforge-ruby is ruby the client library for the StormForger load test service}
|
13
|
+
gem.homepage = "https://stormforger.com"
|
14
|
+
|
15
|
+
gem.add_dependency "activesupport", ">= 3.2.9"
|
16
|
+
gem.add_dependency "activemodel", ">= 3.2.9"
|
17
|
+
gem.add_dependency "faraday", "~> 0.8.8"
|
18
|
+
gem.add_dependency "faraday_middleware", "~> 0.9.0"
|
19
|
+
gem.add_dependency "thor"
|
20
|
+
|
21
|
+
gem.add_development_dependency "rspec", "~> 2.14.1"
|
22
|
+
gem.add_development_dependency "fuubar"
|
23
|
+
gem.add_development_dependency "shoulda-matchers", "~> 2.3.0"
|
24
|
+
gem.add_development_dependency "json_expressions"
|
25
|
+
gem.add_development_dependency "rake"
|
26
|
+
|
27
|
+
gem.add_development_dependency "guard", "~> 1.8.0"
|
28
|
+
gem.add_development_dependency "guard-rspec"
|
29
|
+
gem.add_development_dependency "rb-fsevent"
|
30
|
+
gem.add_development_dependency "terminal-notifier-guard"
|
31
|
+
gem.add_development_dependency "wirble"
|
32
|
+
gem.add_development_dependency "simplecov", "~> 0.7.1"
|
33
|
+
|
34
|
+
gem.files = `git ls-files`.split($/)
|
35
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
36
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
37
|
+
gem.require_paths = ["lib"]
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,344 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stormforge-ruby
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.5.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Sebastian Cohnen
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activesupport
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.9
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.9
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activemodel
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.2.9
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.2.9
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: faraday
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.8.8
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.8.8
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: faraday_middleware
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: thor
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.14.1
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.14.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: fuubar
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: shoulda-matchers
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 2.3.0
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 2.3.0
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: json_expressions
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - '>='
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rake
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - '>='
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: guard
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 1.8.0
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.8.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: guard-rspec
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - '>='
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0'
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: rb-fsevent
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - '>='
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - '>='
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: terminal-notifier-guard
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - '>='
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: '0'
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - '>='
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: '0'
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: wirble
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - '>='
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - '>='
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '0'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: simplecov
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ~>
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 0.7.1
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ~>
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.7.1
|
237
|
+
description: stormforge-ruby is ruby the client library for the StormForger load test
|
238
|
+
service
|
239
|
+
email:
|
240
|
+
- basti@stormforger.com
|
241
|
+
executables:
|
242
|
+
- stormforge
|
243
|
+
extensions: []
|
244
|
+
extra_rdoc_files: []
|
245
|
+
files:
|
246
|
+
- .gitignore
|
247
|
+
- .rspec
|
248
|
+
- .travis.yml
|
249
|
+
- Gemfile
|
250
|
+
- Guardfile
|
251
|
+
- LICENSE.txt
|
252
|
+
- README.md
|
253
|
+
- Rakefile
|
254
|
+
- bin/stormforge
|
255
|
+
- examples/README.md
|
256
|
+
- examples/Stormfile
|
257
|
+
- examples/demo_case.rb
|
258
|
+
- examples/file_upload.rb
|
259
|
+
- examples/fixtures/requests.csv
|
260
|
+
- examples/fixtures/users.csv
|
261
|
+
- examples/simple_and_long.rb
|
262
|
+
- examples/simple_and_short.rb
|
263
|
+
- examples/test_case_definition_v1.rb
|
264
|
+
- lib/core_ext/fixnum.rb
|
265
|
+
- lib/stormforge.rb
|
266
|
+
- lib/stormforge/client.rb
|
267
|
+
- lib/stormforge/dsl.rb
|
268
|
+
- lib/stormforge/dsl/test_case.rb
|
269
|
+
- lib/stormforge/dsl/test_case/attribute_access.rb
|
270
|
+
- lib/stormforge/dsl/test_case/cloud.rb
|
271
|
+
- lib/stormforge/dsl/test_case/data_source.rb
|
272
|
+
- lib/stormforge/dsl/test_case/data_source/file_fixture.rb
|
273
|
+
- lib/stormforge/dsl/test_case/data_source/random_number.rb
|
274
|
+
- lib/stormforge/dsl/test_case/data_source/random_string.rb
|
275
|
+
- lib/stormforge/dsl/test_case/definition.rb
|
276
|
+
- lib/stormforge/dsl/test_case/session.rb
|
277
|
+
- lib/stormforge/registry.rb
|
278
|
+
- lib/stormforge/version.rb
|
279
|
+
- lib/thor/generators/init.rb
|
280
|
+
- lib/thor/generators/templates/Stormfile
|
281
|
+
- lib/thor/main.rb
|
282
|
+
- lib/thor/storm_forge_base.rb
|
283
|
+
- lib/thor/testcase.rb
|
284
|
+
- lib/thor/testrun.rb
|
285
|
+
- spec/client_spec.rb
|
286
|
+
- spec/dsl/test_case/attribute_access_spec.rb
|
287
|
+
- spec/dsl/test_case/cloud_spec.rb
|
288
|
+
- spec/dsl/test_case/data_source/file_fixture_spec.rb
|
289
|
+
- spec/dsl/test_case/data_source/random_number_spec.rb
|
290
|
+
- spec/dsl/test_case/data_source/random_string_spec.rb
|
291
|
+
- spec/dsl/test_case/data_source_spec.rb
|
292
|
+
- spec/dsl/test_case/definition_spec.rb
|
293
|
+
- spec/dsl/test_case/session_spec.rb
|
294
|
+
- spec/dsl/test_case_integration_spec.rb
|
295
|
+
- spec/dsl/test_case_spec.rb
|
296
|
+
- spec/fixtures/ip_addresses.csv
|
297
|
+
- spec/fixtures/slug.csv
|
298
|
+
- spec/fixtures/users.csv
|
299
|
+
- spec/registry_spec.rb
|
300
|
+
- spec/spec_helper.rb
|
301
|
+
- spec/stormforger_spec.rb
|
302
|
+
- stormforge_ruby.gemspec
|
303
|
+
homepage: https://stormforger.com
|
304
|
+
licenses: []
|
305
|
+
metadata: {}
|
306
|
+
post_install_message:
|
307
|
+
rdoc_options: []
|
308
|
+
require_paths:
|
309
|
+
- lib
|
310
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
311
|
+
requirements:
|
312
|
+
- - '>='
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '0'
|
315
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
316
|
+
requirements:
|
317
|
+
- - '>='
|
318
|
+
- !ruby/object:Gem::Version
|
319
|
+
version: '0'
|
320
|
+
requirements: []
|
321
|
+
rubyforge_project:
|
322
|
+
rubygems_version: 2.1.11
|
323
|
+
signing_key:
|
324
|
+
specification_version: 4
|
325
|
+
summary: stormforge-ruby is ruby the client library for the StormForger load test
|
326
|
+
service
|
327
|
+
test_files:
|
328
|
+
- spec/client_spec.rb
|
329
|
+
- spec/dsl/test_case/attribute_access_spec.rb
|
330
|
+
- spec/dsl/test_case/cloud_spec.rb
|
331
|
+
- spec/dsl/test_case/data_source/file_fixture_spec.rb
|
332
|
+
- spec/dsl/test_case/data_source/random_number_spec.rb
|
333
|
+
- spec/dsl/test_case/data_source/random_string_spec.rb
|
334
|
+
- spec/dsl/test_case/data_source_spec.rb
|
335
|
+
- spec/dsl/test_case/definition_spec.rb
|
336
|
+
- spec/dsl/test_case/session_spec.rb
|
337
|
+
- spec/dsl/test_case_integration_spec.rb
|
338
|
+
- spec/dsl/test_case_spec.rb
|
339
|
+
- spec/fixtures/ip_addresses.csv
|
340
|
+
- spec/fixtures/slug.csv
|
341
|
+
- spec/fixtures/users.csv
|
342
|
+
- spec/registry_spec.rb
|
343
|
+
- spec/spec_helper.rb
|
344
|
+
- spec/stormforger_spec.rb
|