polytrix 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.groc.json +7 -0
- data/.rspec +11 -0
- data/.rspec_parallel +10 -0
- data/Gemfile +23 -0
- data/README.md +48 -0
- data/Rakefile +143 -0
- data/Vagrantfile +41 -0
- data/features/0_identity_spec.rb +40 -0
- data/features/1_cloud_files_spec.rb +48 -0
- data/features/2_servers_spec.rb +19 -0
- data/features/features_helper.rb +46 -0
- data/features/helpers/cloudfiles_helper.rb +31 -0
- data/features/helpers/pacto_helper.rb +33 -0
- data/features/helpers/teardown_helper.rb +49 -0
- data/features/pacto/extensions/loaders/api_blueprint_loader.rb +63 -0
- data/features/pacto/extensions/loaders/simple_loader.rb +55 -0
- data/features/pacto/extensions/loaders/yaml_or_json_loader.rb +17 -0
- data/features/pacto/extensions/matchers.rb +38 -0
- data/features/phase2/feature_coverage_report.rb +109 -0
- data/features/phase2/run_all_features.rb +14 -0
- data/features/static_site/fixtures/index.html +6 -0
- data/lib/polytrix/challenge.rb +27 -0
- data/lib/polytrix/challenge_builder.rb +16 -0
- data/lib/polytrix/challenge_runner.rb +87 -0
- data/lib/polytrix/configuration.rb +31 -0
- data/lib/polytrix/core/file_finder.rb +43 -0
- data/lib/polytrix/core/implementor.rb +17 -0
- data/lib/polytrix/core/result_tracker.rb +25 -0
- data/lib/polytrix/documentation_generator.rb +18 -0
- data/lib/polytrix/manifest.rb +46 -0
- data/lib/polytrix/result.rb +9 -0
- data/lib/polytrix/rspec/documentation_formatter.rb +41 -0
- data/lib/polytrix/rspec.rb +75 -0
- data/lib/polytrix/runners/linux_challenge_runner.rb +22 -0
- data/lib/polytrix/runners/middleware/change_directory.rb +20 -0
- data/lib/polytrix/runners/middleware/feature_executor.rb +23 -0
- data/lib/polytrix/runners/middleware/pacto.rb +59 -0
- data/lib/polytrix/runners/middleware/setup_env_vars.rb +38 -0
- data/lib/polytrix/runners/windows_challenge_runner.rb +25 -0
- data/lib/polytrix/version.rb +3 -0
- data/lib/polytrix.rb +56 -0
- data/packer/.gitignore +3 -0
- data/packer/Berksfile +15 -0
- data/packer/Gemfile +5 -0
- data/packer/Vagrantfile +128 -0
- data/packer/cookbooks/drg/metadata.rb +27 -0
- data/packer/cookbooks/drg/recipes/admins.rb +22 -0
- data/packer/cookbooks/drg/recipes/default.rb +9 -0
- data/packer/cookbooks/drg/recipes/dotnet.rb +4 -0
- data/packer/cookbooks/drg/recipes/golang.rb +4 -0
- data/packer/cookbooks/drg/recipes/java.rb +5 -0
- data/packer/cookbooks/drg/recipes/php.rb +10 -0
- data/packer/cookbooks/drg/recipes/ruby.rb +29 -0
- data/packer/cookbooks/drg/recipes/system.rb +13 -0
- data/packer/create_box.sh +10 -0
- data/packer/http/preseed.cfg +87 -0
- data/packer/packer.json +91 -0
- data/packer/scripts/root_setup.sh +37 -0
- data/packer/scripts/setup.sh +32 -0
- data/pacto/config/pacto_server.rb +40 -0
- data/pacto/contracts/dfw.servers.api.rackspacecloud.com/v2/account_id/extensions.json +64 -0
- data/pacto/contracts/dfw.servers.api.rackspacecloud.com/v2/account_id/flavors/id.json +100 -0
- data/pacto/contracts/dfw.servers.api.rackspacecloud.com/v2/account_id/images/id.json +176 -0
- data/pacto/contracts/dfw.servers.api.rackspacecloud.com/v2/account_id/servers/id.json +189 -0
- data/pacto/contracts/dfw.servers.api.rackspacecloud.com/v2/account_id/servers.json +63 -0
- data/pacto/contracts/dns.api.rackspacecloud.com/v1.0/_tenant_id/domains.json +62 -0
- data/pacto/contracts/identity.api.rackspacecloud.com/v2.0/tokens.json +192 -0
- data/pacto/contracts/monitoring.api.rackspacecloud.com/v1.0/_tenant_id/account.json +39 -0
- data/pacto/contracts/ord.autoscale.api.rackspacecloud.com/v1.0/_tenant_id/groups.json +38 -0
- data/pacto/contracts/ord.blockstorage.api.rackspacecloud.com/v1/_tenant_id/volumes.json +30 -0
- data/pacto/contracts/ord.databases.api.rackspacecloud.com/v1.0/_tenant_id/instances.json +30 -0
- data/pacto/contracts/ord.loadbalancers.api.rackspacecloud.com/v1.0/_tenant_id/loadbalancers.json +114 -0
- data/pacto/contracts/ord.queues.api.rackspacecloud.com/v1/_tenant_id/queues.json +13 -0
- data/pacto/contracts/ord.servers.api.rackspacecloud.com/v2/_tenant_id/os-networksv2.json +46 -0
- data/pacto/contracts/ord.servers.api.rackspacecloud.com/v2/_tenant_id/servers/detail.json +230 -0
- data/pacto/contracts/storage101.dfw1.clouddrive.com/v1/mosso_account/container/object.json +15 -0
- data/pacto/contracts/storage101.dfw1.clouddrive.com/v1/mosso_account.json +43 -0
- data/pacto/contracts/storage101.ord1.clouddrive.com/v1/_mosso_id.json +44 -0
- data/pacto/pacto_server.rb +100 -0
- data/pacto/rackspace_uri_map.yaml +229 -0
- data/polytrix.gemspec +27 -0
- data/scripts/bootstrap +10 -0
- data/scripts/cibuild +4 -0
- data/sdks/fog/.gitignore +1 -0
- data/sdks/fog/Gemfile +5 -0
- data/sdks/fog/challenges/all_connections.rb +45 -0
- data/sdks/fog/challenges/authenticate_token.rb +15 -0
- data/sdks/fog/challenges/cdn_enable_container.rb +20 -0
- data/sdks/fog/challenges/create_a_container.rb +17 -0
- data/sdks/fog/challenges/create_server.rb +36 -0
- data/sdks/fog/challenges/get_object_metadata.rb +13 -0
- data/sdks/fog/challenges/list_containers.rb +10 -0
- data/sdks/fog/challenges/provision_scalable_webapp.rb +30 -0
- data/sdks/fog/challenges/upload_folder.rb +25 -0
- data/sdks/fog/scripts/bootstrap +4 -0
- data/sdks/fog/scripts/bootstrap.ps1 +1 -0
- data/sdks/fog/scripts/wrapper +2 -0
- data/sdks/fog/scripts/wrapper.ps1 +1 -0
- data/sdks/gophercloud/.gitignore +2 -0
- data/sdks/gophercloud/challenges/authenticate_token.go +23 -0
- data/sdks/gophercloud/scripts/bootstrap +6 -0
- data/sdks/gophercloud/scripts/wrapper +10 -0
- data/sdks/jclouds/.gitignore +1 -0
- data/sdks/jclouds/challenges/AuthenticateToken.java +115 -0
- data/sdks/jclouds/pom.xml +34 -0
- data/sdks/jclouds/scripts/bootstrap +3 -0
- data/sdks/jclouds/scripts/wrapper +7 -0
- data/sdks/openstack.net/.gitignore +4 -0
- data/sdks/openstack.net/.nuget/Microsoft.Build.dll +0 -0
- data/sdks/openstack.net/.nuget/NuGet.Config +6 -0
- data/sdks/openstack.net/.nuget/NuGet.exe +0 -0
- data/sdks/openstack.net/.nuget/NuGet.targets +136 -0
- data/sdks/openstack.net/Challenge.cs +10 -0
- data/sdks/openstack.net/RunChallenge.cs +19 -0
- data/sdks/openstack.net/challenges/AuthenticateToken.cs +24 -0
- data/sdks/openstack.net/challenges/Weird.cs +133 -0
- data/sdks/openstack.net/openstack.net.csproj +58 -0
- data/sdks/openstack.net/openstack.net.sln +27 -0
- data/sdks/openstack.net/openstack.net.userprefs +8 -0
- data/sdks/openstack.net/packages.config +6 -0
- data/sdks/openstack.net/scripts/bootstrap +2 -0
- data/sdks/openstack.net/scripts/bootstrap.ps1 +2 -0
- data/sdks/openstack.net/scripts/wrapper +7 -0
- data/sdks/openstack.net/scripts/wrapper.ps1 +1 -0
- data/sdks/php-opencloud/.gitignore +4 -0
- data/sdks/php-opencloud/challenges/all_connections.php +64 -0
- data/sdks/php-opencloud/challenges/authenticate_token.php +14 -0
- data/sdks/php-opencloud/challenges/create_server.php +39 -0
- data/sdks/php-opencloud/challenges/get_object_metadata.php +19 -0
- data/sdks/php-opencloud/composer.json +5 -0
- data/sdks/php-opencloud/scripts/bootstrap +4 -0
- data/sdks/php-opencloud/scripts/bootstrap.ps1 +2 -0
- data/sdks/php-opencloud/scripts/wrapper +2 -0
- data/sdks/php-opencloud/scripts/wrapper.ps1 +1 -0
- data/sdks/pkgcloud/.gitignore +1 -0
- data/sdks/pkgcloud/challenges/authenticate_token.js +17 -0
- data/sdks/pkgcloud/challenges/get_object_metadata.js +18 -0
- data/sdks/pkgcloud/scripts/bootstrap +2 -0
- data/sdks/pkgcloud/scripts/bootstrap.ps1 +1 -0
- data/sdks/pkgcloud/scripts/wrapper +2 -0
- data/sdks/pkgcloud/scripts/wrapper.ps1 +1 -0
- data/sdks/pyrax/.gitignore +2 -0
- data/sdks/pyrax/challenges/all_connections.py +61 -0
- data/sdks/pyrax/challenges/authenticate_token.py +17 -0
- data/sdks/pyrax/challenges/cdn_enable_container.py +22 -0
- data/sdks/pyrax/challenges/create_a_container.py +21 -0
- data/sdks/pyrax/challenges/create_server.py +35 -0
- data/sdks/pyrax/challenges/get_object_metadata.py +17 -0
- data/sdks/pyrax/challenges/upload_folder.py +32 -0
- data/sdks/pyrax/requirements.txt +21 -0
- data/sdks/pyrax/scripts/bootstrap +9 -0
- data/sdks/pyrax/scripts/bootstrap.ps1 +7 -0
- data/sdks/pyrax/scripts/wrapper +3 -0
- data/sdks/pyrax/scripts/wrapper.ps1 +2 -0
- data/spec/fixtures/factorial.py +18 -0
- data/spec/fixtures/polytrix.yml +16 -0
- data/spec/fixtures/src-doc/quine.md.erb +20 -0
- data/spec/polytrix/challenge_builder_spec.rb +16 -0
- data/spec/polytrix/challenge_runner_spec.rb +14 -0
- data/spec/polytrix/challenge_spec.rb +20 -0
- data/spec/polytrix/configuration_spec.rb +10 -0
- data/spec/polytrix/documentation_generator_spec.rb +36 -0
- data/spec/polytrix/file_finder_spec.rb +24 -0
- data/spec/polytrix/manifest_spec.rb +26 -0
- data/spec/polytrix/middleware/feature_executor_spec.rb +48 -0
- data/spec/polytrix_spec.rb +13 -0
- data/spec/rspec_spec.rb +17 -0
- data/spec/spec_helper.rb +7 -0
- metadata +325 -0
@@ -0,0 +1,189 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "get",
|
6
|
+
"params": {
|
7
|
+
},
|
8
|
+
"path": "/v2/:account_id/servers/:id"
|
9
|
+
},
|
10
|
+
"response": {
|
11
|
+
"headers": {
|
12
|
+
"Content-Type": "application/json"
|
13
|
+
},
|
14
|
+
"status": 200,
|
15
|
+
"body": {
|
16
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
17
|
+
"description": "Generated from vcr with shasum e0d9982dff7545409a7686f24f01ce06a0b1e853",
|
18
|
+
"type": "object",
|
19
|
+
"required": true,
|
20
|
+
"properties": {
|
21
|
+
"server": {
|
22
|
+
"type": "object",
|
23
|
+
"required": true,
|
24
|
+
"properties": {
|
25
|
+
"status": {
|
26
|
+
"type": "string",
|
27
|
+
"required": true
|
28
|
+
},
|
29
|
+
"updated": {
|
30
|
+
"type": "string",
|
31
|
+
"required": true
|
32
|
+
},
|
33
|
+
"hostId": {
|
34
|
+
"type": "string",
|
35
|
+
"required": true
|
36
|
+
},
|
37
|
+
"addresses": {
|
38
|
+
"type": "object",
|
39
|
+
"required": true,
|
40
|
+
"properties": {
|
41
|
+
}
|
42
|
+
},
|
43
|
+
"links": {
|
44
|
+
"type": "array",
|
45
|
+
"required": true,
|
46
|
+
"minItems": 1,
|
47
|
+
"uniqueItems": true,
|
48
|
+
"items": {
|
49
|
+
"type": "object",
|
50
|
+
"required": true,
|
51
|
+
"properties": {
|
52
|
+
"href": {
|
53
|
+
"type": "string",
|
54
|
+
"required": true
|
55
|
+
},
|
56
|
+
"rel": {
|
57
|
+
"type": "string",
|
58
|
+
"required": true
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
},
|
63
|
+
"key_name": {
|
64
|
+
"type": ["string", "null"],
|
65
|
+
"required": false
|
66
|
+
},
|
67
|
+
"image": {
|
68
|
+
"type": "object",
|
69
|
+
"required": true,
|
70
|
+
"properties": {
|
71
|
+
"id": {
|
72
|
+
"type": "string",
|
73
|
+
"required": true
|
74
|
+
},
|
75
|
+
"links": {
|
76
|
+
"type": "array",
|
77
|
+
"required": true,
|
78
|
+
"minItems": 1,
|
79
|
+
"uniqueItems": true,
|
80
|
+
"items": {
|
81
|
+
"type": "object",
|
82
|
+
"required": true,
|
83
|
+
"properties": {
|
84
|
+
"href": {
|
85
|
+
"type": "string",
|
86
|
+
"required": true
|
87
|
+
},
|
88
|
+
"rel": {
|
89
|
+
"type": "string",
|
90
|
+
"required": true
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
},
|
97
|
+
"OS-EXT-STS:task_state": {
|
98
|
+
"type": ["string", "null"],
|
99
|
+
"required": false
|
100
|
+
},
|
101
|
+
"OS-EXT-STS:vm_state": {
|
102
|
+
"type": "string",
|
103
|
+
"required": true
|
104
|
+
},
|
105
|
+
"flavor": {
|
106
|
+
"type": "object",
|
107
|
+
"required": true,
|
108
|
+
"properties": {
|
109
|
+
"id": {
|
110
|
+
"type": "string",
|
111
|
+
"required": true
|
112
|
+
},
|
113
|
+
"links": {
|
114
|
+
"type": "array",
|
115
|
+
"required": true,
|
116
|
+
"minItems": 1,
|
117
|
+
"uniqueItems": true,
|
118
|
+
"items": {
|
119
|
+
"type": "object",
|
120
|
+
"required": true,
|
121
|
+
"properties": {
|
122
|
+
"href": {
|
123
|
+
"type": "string",
|
124
|
+
"required": true
|
125
|
+
},
|
126
|
+
"rel": {
|
127
|
+
"type": "string",
|
128
|
+
"required": true
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
}
|
134
|
+
},
|
135
|
+
"id": {
|
136
|
+
"type": "string",
|
137
|
+
"required": true
|
138
|
+
},
|
139
|
+
"user_id": {
|
140
|
+
"type": "string",
|
141
|
+
"required": true
|
142
|
+
},
|
143
|
+
"name": {
|
144
|
+
"type": "string",
|
145
|
+
"required": true
|
146
|
+
},
|
147
|
+
"created": {
|
148
|
+
"type": "string",
|
149
|
+
"required": true
|
150
|
+
},
|
151
|
+
"tenant_id": {
|
152
|
+
"type": "string",
|
153
|
+
"required": true
|
154
|
+
},
|
155
|
+
"OS-DCF:diskConfig": {
|
156
|
+
"type": "string",
|
157
|
+
"required": true
|
158
|
+
},
|
159
|
+
"accessIPv4": {
|
160
|
+
"type": "string",
|
161
|
+
"required": true
|
162
|
+
},
|
163
|
+
"accessIPv6": {
|
164
|
+
"type": "string",
|
165
|
+
"required": true
|
166
|
+
},
|
167
|
+
"progress": {
|
168
|
+
"type": "integer",
|
169
|
+
"required": true
|
170
|
+
},
|
171
|
+
"OS-EXT-STS:power_state": {
|
172
|
+
"type": "integer",
|
173
|
+
"required": true
|
174
|
+
},
|
175
|
+
"config_drive": {
|
176
|
+
"type": "string",
|
177
|
+
"required": true
|
178
|
+
},
|
179
|
+
"metadata": {
|
180
|
+
"type": "object",
|
181
|
+
"required": true,
|
182
|
+
"additionalProperties": true
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "post",
|
6
|
+
"params": {
|
7
|
+
},
|
8
|
+
"path": "/v2/:account_id/servers"
|
9
|
+
},
|
10
|
+
"response": {
|
11
|
+
"headers": {
|
12
|
+
"Content-Type": "application/json",
|
13
|
+
"Location": "https://{region}.servers.api.rackspacecloud.com/v2/{account_id}/servers/{server_id}"
|
14
|
+
},
|
15
|
+
"status": 202,
|
16
|
+
"body": {
|
17
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
18
|
+
"description": "Generated from vcr with shasum a4f7a7725c144d64603518689321a46c51c8e68f",
|
19
|
+
"type": "object",
|
20
|
+
"required": true,
|
21
|
+
"properties": {
|
22
|
+
"server": {
|
23
|
+
"type": "object",
|
24
|
+
"required": true,
|
25
|
+
"properties": {
|
26
|
+
"OS-DCF:diskConfig": {
|
27
|
+
"type": "string",
|
28
|
+
"required": true
|
29
|
+
},
|
30
|
+
"id": {
|
31
|
+
"type": "string",
|
32
|
+
"required": true
|
33
|
+
},
|
34
|
+
"links": {
|
35
|
+
"type": "array",
|
36
|
+
"required": true,
|
37
|
+
"minItems": 1,
|
38
|
+
"uniqueItems": true,
|
39
|
+
"items": {
|
40
|
+
"type": "object",
|
41
|
+
"required": true,
|
42
|
+
"properties": {
|
43
|
+
"href": {
|
44
|
+
"type": "string",
|
45
|
+
"required": true
|
46
|
+
},
|
47
|
+
"rel": {
|
48
|
+
"type": "string",
|
49
|
+
"required": true
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"adminPass": {
|
55
|
+
"type": "string",
|
56
|
+
"required": true
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "get",
|
6
|
+
"path": "/v1.0/:tenant_id/domains"
|
7
|
+
},
|
8
|
+
"response": {
|
9
|
+
"headers": {
|
10
|
+
"Content-Type": "application/json"
|
11
|
+
},
|
12
|
+
"status": 200,
|
13
|
+
"body": {
|
14
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
15
|
+
"description": "Generated from https://dns.api.rackspacecloud.com/v1.0/:tenant_id/domains with shasum c68ac566c135580d93f8a7043b5fa7794655356b",
|
16
|
+
"type": "object",
|
17
|
+
"required": true,
|
18
|
+
"properties": {
|
19
|
+
"domains": {
|
20
|
+
"type": "array",
|
21
|
+
"required": true,
|
22
|
+
"minItems": 1,
|
23
|
+
"uniqueItems": true,
|
24
|
+
"items": {
|
25
|
+
"type": "object",
|
26
|
+
"required": true,
|
27
|
+
"properties": {
|
28
|
+
"name": {
|
29
|
+
"type": "string",
|
30
|
+
"required": true
|
31
|
+
},
|
32
|
+
"id": {
|
33
|
+
"type": "integer",
|
34
|
+
"required": true
|
35
|
+
},
|
36
|
+
"accountId": {
|
37
|
+
"type": "integer",
|
38
|
+
"required": true
|
39
|
+
},
|
40
|
+
"emailAddress": {
|
41
|
+
"type": "string",
|
42
|
+
"required": true
|
43
|
+
},
|
44
|
+
"updated": {
|
45
|
+
"type": "string",
|
46
|
+
"required": true
|
47
|
+
},
|
48
|
+
"created": {
|
49
|
+
"type": "string",
|
50
|
+
"required": true
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
},
|
55
|
+
"totalEntries": {
|
56
|
+
"type": "integer",
|
57
|
+
"required": true
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,192 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "post",
|
6
|
+
"params": {
|
7
|
+
},
|
8
|
+
"path": "/v2.0/tokens",
|
9
|
+
"body": {
|
10
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
11
|
+
"description": "Generated from pacto with shasum b5ec82bb381eac4a445c35bbfbfcc324135a742c",
|
12
|
+
"type": "object",
|
13
|
+
"required": true,
|
14
|
+
"properties": {
|
15
|
+
"auth": {
|
16
|
+
"type": "object",
|
17
|
+
"required": true,
|
18
|
+
"properties": {
|
19
|
+
"RAX-KSKEY:apiKeyCredentials": {
|
20
|
+
"type": "object",
|
21
|
+
"required": true,
|
22
|
+
"properties": {
|
23
|
+
"username": {
|
24
|
+
"type": "string",
|
25
|
+
"required": true
|
26
|
+
},
|
27
|
+
"apiKey": {
|
28
|
+
"type": "string",
|
29
|
+
"required": true
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
},
|
38
|
+
"response": {
|
39
|
+
"headers": {
|
40
|
+
"Content-Type": "application/json",
|
41
|
+
"Vary": "Accept, Accept-Encoding, X-Auth-Token",
|
42
|
+
"Front-End-Https": "on"
|
43
|
+
},
|
44
|
+
"status": 200,
|
45
|
+
"body": {
|
46
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
47
|
+
"description": "Generated from vcr with shasum 08229587d646a34b98537922185383935c77205a",
|
48
|
+
"type": "object",
|
49
|
+
"required": true,
|
50
|
+
"properties": {
|
51
|
+
"access": {
|
52
|
+
"type": "object",
|
53
|
+
"required": true,
|
54
|
+
"properties": {
|
55
|
+
"token": {
|
56
|
+
"type": "object",
|
57
|
+
"required": true,
|
58
|
+
"properties": {
|
59
|
+
"id": {
|
60
|
+
"type": "string",
|
61
|
+
"required": true
|
62
|
+
},
|
63
|
+
"expires": {
|
64
|
+
"type": "string",
|
65
|
+
"required": true
|
66
|
+
},
|
67
|
+
"tenant": {
|
68
|
+
"type": "object",
|
69
|
+
"required": true,
|
70
|
+
"properties": {
|
71
|
+
"id": {
|
72
|
+
"type": "string",
|
73
|
+
"required": true
|
74
|
+
},
|
75
|
+
"name": {
|
76
|
+
"type": "string",
|
77
|
+
"required": true
|
78
|
+
}
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"RAX-AUTH:authenticatedBy": {
|
82
|
+
"type": "array",
|
83
|
+
"required": true,
|
84
|
+
"minItems": 1,
|
85
|
+
"uniqueItems": true,
|
86
|
+
"items": {
|
87
|
+
"type": "string",
|
88
|
+
"required": false
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
},
|
93
|
+
"serviceCatalog": {
|
94
|
+
"type": "array",
|
95
|
+
"required": true,
|
96
|
+
"minItems": 1,
|
97
|
+
"uniqueItems": true,
|
98
|
+
"items": {
|
99
|
+
"type": "object",
|
100
|
+
"required": true,
|
101
|
+
"properties": {
|
102
|
+
"name": {
|
103
|
+
"type": "string",
|
104
|
+
"required": true
|
105
|
+
},
|
106
|
+
"endpoints": {
|
107
|
+
"type": "array",
|
108
|
+
"required": true,
|
109
|
+
"minItems": 1,
|
110
|
+
"uniqueItems": true,
|
111
|
+
"items": {
|
112
|
+
"type": "object",
|
113
|
+
"required": true,
|
114
|
+
"properties": {
|
115
|
+
"region": {
|
116
|
+
"type": "string",
|
117
|
+
"required": false
|
118
|
+
},
|
119
|
+
"tenantId": {
|
120
|
+
"type": "string",
|
121
|
+
"required": true
|
122
|
+
},
|
123
|
+
"publicURL": {
|
124
|
+
"type": "string",
|
125
|
+
"required": true
|
126
|
+
},
|
127
|
+
"internalURL": {
|
128
|
+
"type": "string",
|
129
|
+
"required": false
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
},
|
134
|
+
"type": {
|
135
|
+
"type": "string",
|
136
|
+
"required": true
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
},
|
141
|
+
"user": {
|
142
|
+
"type": "object",
|
143
|
+
"required": true,
|
144
|
+
"properties": {
|
145
|
+
"id": {
|
146
|
+
"type": "string",
|
147
|
+
"required": true
|
148
|
+
},
|
149
|
+
"roles": {
|
150
|
+
"type": "array",
|
151
|
+
"required": true,
|
152
|
+
"minItems": 1,
|
153
|
+
"uniqueItems": true,
|
154
|
+
"items": {
|
155
|
+
"type": "object",
|
156
|
+
"required": true,
|
157
|
+
"properties": {
|
158
|
+
"tenantId": {
|
159
|
+
"type": "string",
|
160
|
+
"required": false
|
161
|
+
},
|
162
|
+
"id": {
|
163
|
+
"type": "string",
|
164
|
+
"required": true
|
165
|
+
},
|
166
|
+
"description": {
|
167
|
+
"type": "string",
|
168
|
+
"required": true
|
169
|
+
},
|
170
|
+
"name": {
|
171
|
+
"type": "string",
|
172
|
+
"required": true
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
},
|
177
|
+
"name": {
|
178
|
+
"type": "string",
|
179
|
+
"required": true
|
180
|
+
},
|
181
|
+
"RAX-AUTH:defaultRegion": {
|
182
|
+
"type": "string",
|
183
|
+
"required": true
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
"Accept-Encoding": "gzip, deflate"
|
5
|
+
},
|
6
|
+
"method": "get",
|
7
|
+
"path": "/v1.0/:tenant_id/account"
|
8
|
+
},
|
9
|
+
"response": {
|
10
|
+
"headers": {
|
11
|
+
"Content-Type": "application/json; charset=UTF-8",
|
12
|
+
"Vary": "Accept-Encoding",
|
13
|
+
"Content-Encoding": "gzip"
|
14
|
+
},
|
15
|
+
"status": 200,
|
16
|
+
"body": {
|
17
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
18
|
+
"description": "Generated from https://monitoring.api.rackspacecloud.com/v1.0/:tenant_id/account with shasum 289752c74aff6826c35115a6393b6eb4e0bb553d",
|
19
|
+
"type": "object",
|
20
|
+
"required": true,
|
21
|
+
"properties": {
|
22
|
+
"id": {
|
23
|
+
"type": "string",
|
24
|
+
"required": true
|
25
|
+
},
|
26
|
+
"metadata": {
|
27
|
+
"type": "object",
|
28
|
+
"required": true,
|
29
|
+
"properties": {
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"webhook_token": {
|
33
|
+
"type": "string",
|
34
|
+
"required": true
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "get",
|
6
|
+
"path": "/v1.0/:tenant_id/groups"
|
7
|
+
},
|
8
|
+
"response": {
|
9
|
+
"headers": {
|
10
|
+
"Content-Type": "application/json"
|
11
|
+
},
|
12
|
+
"status": 200,
|
13
|
+
"body": {
|
14
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
15
|
+
"description": "Generated from https://ord.autoscale.api.rackspacecloud.com/v1.0/:tenant_id/groups with shasum 3b9a4e76e4b1bd055860d0de1ded4f9d303a98dc",
|
16
|
+
"type": "object",
|
17
|
+
"required": true,
|
18
|
+
"properties": {
|
19
|
+
"groups_links": {
|
20
|
+
"type": "array",
|
21
|
+
"required": true,
|
22
|
+
"minItems": 0,
|
23
|
+
"uniqueItems": true,
|
24
|
+
"items": {
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"groups": {
|
28
|
+
"type": "array",
|
29
|
+
"required": true,
|
30
|
+
"minItems": 0,
|
31
|
+
"uniqueItems": true,
|
32
|
+
"items": {
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "get",
|
6
|
+
"path": "/v1/:tenant_id/volumes"
|
7
|
+
},
|
8
|
+
"response": {
|
9
|
+
"headers": {
|
10
|
+
"Content-Type": "application/json"
|
11
|
+
},
|
12
|
+
"status": 200,
|
13
|
+
"body": {
|
14
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
15
|
+
"description": "Generated from https://ord.blockstorage.api.rackspacecloud.com/v1/:tenant_id/volumes with shasum bbb7a47a64c28f974dbcab579b68b70f2919734a",
|
16
|
+
"type": "object",
|
17
|
+
"required": true,
|
18
|
+
"properties": {
|
19
|
+
"volumes": {
|
20
|
+
"type": "array",
|
21
|
+
"required": true,
|
22
|
+
"minItems": 0,
|
23
|
+
"uniqueItems": true,
|
24
|
+
"items": {
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"request": {
|
3
|
+
"headers": {
|
4
|
+
},
|
5
|
+
"method": "get",
|
6
|
+
"path": "/v1.0/:tenant_id/instances"
|
7
|
+
},
|
8
|
+
"response": {
|
9
|
+
"headers": {
|
10
|
+
"Content-Type": "application/json"
|
11
|
+
},
|
12
|
+
"status": 200,
|
13
|
+
"body": {
|
14
|
+
"$schema": "http://json-schema.org/draft-03/schema#",
|
15
|
+
"description": "Generated from https://ord.databases.api.rackspacecloud.com/v1.0/:tenant_id/instances with shasum b6ddf7e003abfd1b01e6137cadf30d50ee00b5d2",
|
16
|
+
"type": "object",
|
17
|
+
"required": true,
|
18
|
+
"properties": {
|
19
|
+
"instances": {
|
20
|
+
"type": "array",
|
21
|
+
"required": true,
|
22
|
+
"minItems": 0,
|
23
|
+
"uniqueItems": true,
|
24
|
+
"items": {
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|