apirunner 0.5.0 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +302 -33
- data/VERSION +1 -1
- data/apirunner.gemspec +2 -17
- data/examples/config/api_runner.yml +2 -2
- data/examples/test/api_runner/001_create_user.yml +199 -112
- data/lib/api_runner.rb +3 -3
- data/lib/apirunner/railtie.rb +6 -5
- data/lib/result.rb +2 -1
- data/lib/tasks/api.rake +7 -0
- data/spec/api_runner_spec.rb +1 -1
- metadata +4 -19
- data/examples/test/api_runner/002_update_resources.yml +0 -360
- data/examples/test/api_runner/003_update_ratings.yml +0 -88
- data/examples/test/api_runner/004_update_series_ratings.yml +0 -88
- data/examples/test/api_runner/005_rateables_and_pagination.yml +0 -34
- data/examples/test/api_runner/006_recommendations.yml +0 -78
- data/examples/test/api_runner/007_item_predictions.yml +0 -286
- data/examples/test/api_runner/008_discovery.yml +0 -299
- data/examples/test/api_runner/009_cacheable_operations.yml +0 -1
- data/examples/test/api_runner/010_fsk.yml +0 -168
- data/examples/test/api_runner/011_misc.yml +0 -116
- data/examples/test/api_runner/012_telekom_error_reports.yml +0 -1831
- data/examples/test/api_runner/013-extended-unpersonalized-discovery.yml +0 -711
- data/examples/test/api_runner/014-extended-personalized-discovery.yml +0 -764
- data/examples/test/api_runner/015_create_10000_users.yml +0 -43
- data/examples/test/api_runner/999_delete_user.yml +0 -78
@@ -1,43 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- name: 'Create new User'
|
3
|
-
iterations: 10000
|
4
|
-
priority: 4
|
5
|
-
request:
|
6
|
-
headers:
|
7
|
-
Content-Type: 'application/json'
|
8
|
-
path: '/users/duffyduck@@'
|
9
|
-
method: 'PUT'
|
10
|
-
body:
|
11
|
-
watchlist:
|
12
|
-
- m1035
|
13
|
-
- m2087
|
14
|
-
blacklist:
|
15
|
-
- m1554
|
16
|
-
- m2981
|
17
|
-
skiplist:
|
18
|
-
- m1590
|
19
|
-
- m1056
|
20
|
-
ratings:
|
21
|
-
m10506: 1.0
|
22
|
-
m462: 2.0
|
23
|
-
m5968: 3.0
|
24
|
-
m7511: 4.0
|
25
|
-
m11995: 5.0
|
26
|
-
m2274: 1.0
|
27
|
-
m25796: 2.0
|
28
|
-
m9698: 3.0
|
29
|
-
m6289: 4.0
|
30
|
-
m4350: 5.0
|
31
|
-
m10735: 1.0
|
32
|
-
m3492: 2.0
|
33
|
-
m645: 3.0
|
34
|
-
m24772: 4.0
|
35
|
-
m1880: 5.0
|
36
|
-
m6434: 1.0
|
37
|
-
m6538: 2.0
|
38
|
-
m10009: 3.0
|
39
|
-
m5900: 4.0
|
40
|
-
m22668: 5.0
|
41
|
-
expires_at: 2011-09-09T22:41:50+00:00
|
42
|
-
response_expectation:
|
43
|
-
status_code: 201
|
@@ -1,78 +0,0 @@
|
|
1
|
-
---
|
2
|
-
- name: 'Delete Basich User'
|
3
|
-
request:
|
4
|
-
path: '/users/duffybasic'
|
5
|
-
method: 'DELETE'
|
6
|
-
body: {}
|
7
|
-
response_expectation:
|
8
|
-
status_code: 202
|
9
|
-
- name: 'Delete User 1'
|
10
|
-
request:
|
11
|
-
path: '/users/duffyduck'
|
12
|
-
method: 'DELETE'
|
13
|
-
body: {}
|
14
|
-
response_expectation:
|
15
|
-
status_code: 202
|
16
|
-
- name: 'User 1 should be nonexistant afterwards'
|
17
|
-
request:
|
18
|
-
path: '/users/duffyduck'
|
19
|
-
method: 'GET'
|
20
|
-
body: {}
|
21
|
-
response_expectation:
|
22
|
-
status_code: 404
|
23
|
-
- name: 'Delete User 2'
|
24
|
-
request:
|
25
|
-
path: '/users/duffyduck2'
|
26
|
-
method: 'DELETE'
|
27
|
-
body: {}
|
28
|
-
response_expectation:
|
29
|
-
status_code: 202
|
30
|
-
- name: 'User 2 should be nonexistant afterwards'
|
31
|
-
request:
|
32
|
-
path: '/users/duffyduck2'
|
33
|
-
method: 'GET'
|
34
|
-
body: {}
|
35
|
-
response_expectation:
|
36
|
-
status_code: 404
|
37
|
-
- name: 'Delete User 3'
|
38
|
-
request:
|
39
|
-
path: '/users/duffyduck3'
|
40
|
-
method: 'DELETE'
|
41
|
-
body: {}
|
42
|
-
response_expectation:
|
43
|
-
status_code: 202
|
44
|
-
- name: 'User 3 should be nonexistant afterwards'
|
45
|
-
request:
|
46
|
-
path: '/users/duffyduck3'
|
47
|
-
method: 'GET'
|
48
|
-
body: {}
|
49
|
-
response_expectation:
|
50
|
-
status_code: 404
|
51
|
-
- name: 'Delete adult user duffydad'
|
52
|
-
request:
|
53
|
-
path: '/users/duffydad'
|
54
|
-
method: 'DELETE'
|
55
|
-
body: {}
|
56
|
-
response_expectation:
|
57
|
-
status_code: 202
|
58
|
-
- name: 'Adult user duffydad should be nonexistant afterwards'
|
59
|
-
request:
|
60
|
-
path: '/users/duffydad'
|
61
|
-
method: 'GET'
|
62
|
-
body: {}
|
63
|
-
response_expectation:
|
64
|
-
status_code: 404
|
65
|
-
- name: 'Delete non-adult user duffykid'
|
66
|
-
request:
|
67
|
-
path: '/users/duffykid'
|
68
|
-
method: 'DELETE'
|
69
|
-
body: {}
|
70
|
-
response_expectation:
|
71
|
-
status_code: 202
|
72
|
-
- name: 'Non-Adult duffykid user should be nonexistant afterwards'
|
73
|
-
request:
|
74
|
-
path: '/users/duffykid'
|
75
|
-
method: 'GET'
|
76
|
-
body: {}
|
77
|
-
response_expectation:
|
78
|
-
status_code: 404
|