nephophobia 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nephophobia.rb +1 -0
- data/lib/nephophobia/client.rb +8 -0
- data/lib/nephophobia/compute.rb +11 -15
- data/lib/nephophobia/credential.rb +80 -0
- data/lib/nephophobia/image.rb +6 -7
- data/lib/nephophobia/project.rb +3 -3
- data/lib/nephophobia/user.rb +0 -17
- data/lib/nephophobia/version.rb +1 -1
- data/test/cassettes/compute_all.yml +58 -4
- data/test/cassettes/compute_all_with_filter.yml +57 -3
- data/test/cassettes/compute_create.yml +31 -4
- data/test/cassettes/compute_create_with_optional_params.yml +31 -4
- data/test/cassettes/compute_destroy.yml +59 -3
- data/test/cassettes/compute_find.yml +81 -0
- data/test/cassettes/compute_reboot.yml +57 -3
- data/test/cassettes/credential_all.yml +98 -0
- data/test/cassettes/credential_all_without_keys.yml +28 -0
- data/test/cassettes/credential_create.yml +71 -0
- data/test/cassettes/credential_destroy.yml +71 -0
- data/test/cassettes/image_all.yml +4 -4
- data/test/cassettes/image_all_with_filter.yml +27 -0
- data/test/cassettes/image_find.yml +31 -4
- data/test/cassettes/project_add_member.yml +84 -3
- data/test/cassettes/project_all.yml +4 -114
- data/test/cassettes/project_all_with_user_name.yml +190 -0
- data/test/cassettes/project_create.yml +85 -4
- data/test/cassettes/project_destroy.yml +84 -3
- data/test/cassettes/project_find.yml +4 -4
- data/test/cassettes/project_find_with_invalid_project_name.yml +3 -3
- data/test/cassettes/project_member.yml +136 -0
- data/test/cassettes/project_members.yml +58 -4
- data/test/cassettes/project_members_with_invalid_project_name.yml +3 -3
- data/test/cassettes/project_remove_member.yml +84 -3
- data/test/cassettes/role_all.yml +112 -4
- data/test/cassettes/role_all_with_project_name.yml +111 -3
- data/test/cassettes/role_all_without_roles.yml +109 -0
- data/test/cassettes/role_create.yml +84 -3
- data/test/cassettes/role_create_with_project_name.yml +84 -3
- data/test/cassettes/role_create_with_project_name_and_role_name.yml +84 -3
- data/test/cassettes/role_destroy.yml +84 -3
- data/test/cassettes/role_destroy_with_project_name.yml +60 -6
- data/test/cassettes/role_destroy_with_project_name_and_role_name.yml +60 -6
- data/test/cassettes/user_create.yml +31 -4
- data/test/cassettes/user_destroy.yml +30 -3
- data/test/cassettes/user_find.yml +58 -4
- data/test/cassettes/user_find_with_invalid_user_name.yml +3 -3
- data/test/cassettes/user_register.yml +67 -13
- data/test/cassettes/{user_register_assert.yml → user_register_asserts.yml} +10 -10
- data/test/lib/hashify_test.rb +3 -3
- data/test/lib/nephophobia/compute_test.rb +85 -69
- data/test/lib/nephophobia/credential_test.rb +91 -0
- data/test/lib/nephophobia/image_test.rb +29 -29
- data/test/lib/nephophobia/project_test.rb +115 -51
- data/test/lib/nephophobia/role_test.rb +151 -42
- data/test/lib/nephophobia/user_test.rb +48 -28
- data/test/test_helper.rb +9 -8
- metadata +21 -22
- data/test/cassettes/compute_all_with_string_into_int_error.yml +0 -28
- data/test/cassettes/image_all_with_string_into_int_error.yml +0 -28
- data/test/cassettes/project_all_with_string_into_int_error.yml +0 -55
- data/test/cassettes/project_all_with_with_user_name.yml +0 -136
- data/test/cassettes/project_members_with_no_members.yml +0 -28
- data/test/cassettes/project_members_with_string_into_int_error.yml +0 -28
- data/test/cassettes/role_all_with_no_roles.yml +0 -28
- data/test/cassettes/role_all_with_string_into_int_error.yml +0 -28
- data/test/cassettes/user_credentials.yml +0 -30
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://10.
|
5
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DescribeProjectMembers&Name=invalid_project_name&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=GQgNtNtAfiaMGTrPppNwF9ApA%2Fni4QTsQZeC281zjy0%3D
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -21,10 +21,10 @@
|
|
21
21
|
content-length:
|
22
22
|
- "197"
|
23
23
|
date:
|
24
|
-
- Tue,
|
24
|
+
- Tue, 19 Apr 2011 01:20:05 GMT
|
25
25
|
connection:
|
26
26
|
- keep-alive
|
27
27
|
body: |-
|
28
28
|
<?xml version="1.0"?>
|
29
|
-
<Response><Errors><Error><Code>NotFound</Code><Message>No project with id invalid_project_name</Message></Error></Errors><RequestID>
|
29
|
+
<Response><Errors><Error><Code>NotFound</Code><Message>No project with id invalid_project_name</Message></Error></Errors><RequestID>R904R9XHZ6HD2RX8YDB9</RequestID></Response>
|
30
30
|
http_version: "1.1"
|
@@ -2,7 +2,61 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://10.
|
5
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=RegisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=nthXQq43tPrgjgiuaeCImXCS3kfDdv47YuT6tzxZ6wg%3D
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
connection:
|
11
|
+
- keep-alive
|
12
|
+
keep-alive:
|
13
|
+
- 30
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
|
+
- text/xml
|
21
|
+
content-length:
|
22
|
+
- "313"
|
23
|
+
date:
|
24
|
+
- Tue, 19 Apr 2011 01:01:40 GMT
|
25
|
+
connection:
|
26
|
+
- keep-alive
|
27
|
+
body: <?xml version="1.0" ?><RegisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>7MNYFVHBKEKE0KP182YK</requestId><username>vcr_user</username><secretkey>7d64c93f-3761-4087-b213-9f8ccf2482cd</secretkey><accesskey>0c2abd1d-b5c6-4531-bd59-70d70b78805f</accesskey><file/></RegisterUserResponse>
|
28
|
+
http_version: "1.1"
|
29
|
+
- !ruby/struct:VCR::HTTPInteraction
|
30
|
+
request: !ruby/struct:VCR::Request
|
31
|
+
method: :get
|
32
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyProjectMember&Operation=add&Project=sandbox&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=IrvE46vanO2TpR4KZT%2FTyvmyERyATesOdA9iY8Wxlmo%3D
|
33
|
+
body:
|
34
|
+
headers:
|
35
|
+
accept:
|
36
|
+
- application/xml
|
37
|
+
connection:
|
38
|
+
- keep-alive
|
39
|
+
keep-alive:
|
40
|
+
- 30
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
content-type:
|
47
|
+
- text/xml
|
48
|
+
content-length:
|
49
|
+
- "194"
|
50
|
+
date:
|
51
|
+
- Tue, 19 Apr 2011 01:01:40 GMT
|
52
|
+
connection:
|
53
|
+
- keep-alive
|
54
|
+
body: <?xml version="1.0" ?><ModifyProjectMemberResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>34RP2TYGCQ3V96B7FO0W</requestId><return>true</return></ModifyProjectMemberResponse>
|
55
|
+
http_version: "1.1"
|
56
|
+
- !ruby/struct:VCR::HTTPInteraction
|
57
|
+
request: !ruby/struct:VCR::Request
|
58
|
+
method: :get
|
59
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyProjectMember&Operation=remove&Project=sandbox&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=JUnvvNONN0%2FHmk83IzkhZW%2FRySqqBfWcF94lYvO9qoc%3D
|
6
60
|
body:
|
7
61
|
headers:
|
8
62
|
accept:
|
@@ -21,8 +75,35 @@
|
|
21
75
|
content-length:
|
22
76
|
- "194"
|
23
77
|
date:
|
24
|
-
- Tue,
|
78
|
+
- Tue, 19 Apr 2011 01:01:40 GMT
|
79
|
+
connection:
|
80
|
+
- keep-alive
|
81
|
+
body: <?xml version="1.0" ?><ModifyProjectMemberResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>5-ITY8H8J3Z10JPECIA7</requestId><return>true</return></ModifyProjectMemberResponse>
|
82
|
+
http_version: "1.1"
|
83
|
+
- !ruby/struct:VCR::HTTPInteraction
|
84
|
+
request: !ruby/struct:VCR::Request
|
85
|
+
method: :get
|
86
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DeregisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=aa2vpTcy0i2JfYcxUgDitUVqb3aPgH1FzgCcbQc2D5E%3D
|
87
|
+
body:
|
88
|
+
headers:
|
89
|
+
accept:
|
90
|
+
- application/xml
|
91
|
+
connection:
|
92
|
+
- keep-alive
|
93
|
+
keep-alive:
|
94
|
+
- 30
|
95
|
+
response: !ruby/struct:VCR::Response
|
96
|
+
status: !ruby/struct:VCR::ResponseStatus
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
content-type:
|
101
|
+
- text/xml
|
102
|
+
content-length:
|
103
|
+
- "184"
|
104
|
+
date:
|
105
|
+
- Tue, 19 Apr 2011 01:01:41 GMT
|
25
106
|
connection:
|
26
107
|
- keep-alive
|
27
|
-
body: <?xml version="1.0" ?><
|
108
|
+
body: <?xml version="1.0" ?><DeregisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>QCF3M4VHWSU-0ZFP16YI</requestId><return>true</return></DeregisterUserResponse>
|
28
109
|
http_version: "1.1"
|
data/test/cassettes/role_all.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://10.
|
5
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=RegisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=nthXQq43tPrgjgiuaeCImXCS3kfDdv47YuT6tzxZ6wg%3D
|
6
6
|
body:
|
7
7
|
headers:
|
8
8
|
accept:
|
@@ -19,10 +19,118 @@
|
|
19
19
|
content-type:
|
20
20
|
- text/xml
|
21
21
|
content-length:
|
22
|
-
- "
|
22
|
+
- "313"
|
23
23
|
date:
|
24
|
-
-
|
24
|
+
- Mon, 18 Apr 2011 23:50:10 GMT
|
25
25
|
connection:
|
26
26
|
- keep-alive
|
27
|
-
body: <?xml version="1.0" ?><
|
27
|
+
body: <?xml version="1.0" ?><RegisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>F0PMMHTA6VTD8BOS-XE7</requestId><username>vcr_user</username><secretkey>6c718370-6a63-43f2-a872-9f8ea037d80b</secretkey><accesskey>e60bdc6e-4aba-465a-be0d-117ecbea20c0</accesskey><file/></RegisterUserResponse>
|
28
|
+
http_version: "1.1"
|
29
|
+
- !ruby/struct:VCR::HTTPInteraction
|
30
|
+
request: !ruby/struct:VCR::Request
|
31
|
+
method: :get
|
32
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyUserRole&Operation=add&Role=sysadmin&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=nwaWtt4r1uicUNAcS1KYOWuwv94o0HiTcFfMoh3jM6o%3D
|
33
|
+
body:
|
34
|
+
headers:
|
35
|
+
accept:
|
36
|
+
- application/xml
|
37
|
+
connection:
|
38
|
+
- keep-alive
|
39
|
+
keep-alive:
|
40
|
+
- 30
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
content-type:
|
47
|
+
- text/xml
|
48
|
+
content-length:
|
49
|
+
- "184"
|
50
|
+
date:
|
51
|
+
- Mon, 18 Apr 2011 23:50:10 GMT
|
52
|
+
connection:
|
53
|
+
- keep-alive
|
54
|
+
body: <?xml version="1.0" ?><ModifyUserRoleResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>WASXCFYM0DOBVVOPK-UU</requestId><return>true</return></ModifyUserRoleResponse>
|
55
|
+
http_version: "1.1"
|
56
|
+
- !ruby/struct:VCR::HTTPInteraction
|
57
|
+
request: !ruby/struct:VCR::Request
|
58
|
+
method: :get
|
59
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DescribeUserRoles&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=XwheiYoIglQYt3%2BRvx8MckigXMm8omhhgpwvpJh9f7g%3D
|
60
|
+
body:
|
61
|
+
headers:
|
62
|
+
accept:
|
63
|
+
- application/xml
|
64
|
+
connection:
|
65
|
+
- keep-alive
|
66
|
+
keep-alive:
|
67
|
+
- 30
|
68
|
+
response: !ruby/struct:VCR::Response
|
69
|
+
status: !ruby/struct:VCR::ResponseStatus
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
content-type:
|
74
|
+
- text/xml
|
75
|
+
content-length:
|
76
|
+
- "218"
|
77
|
+
date:
|
78
|
+
- Mon, 18 Apr 2011 23:50:10 GMT
|
79
|
+
connection:
|
80
|
+
- keep-alive
|
81
|
+
body: <?xml version="1.0" ?><DescribeUserRolesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>R8IU0ZGZUU35AYZOX4JJ</requestId><roles><item><role>sysadmin</role></item></roles></DescribeUserRolesResponse>
|
82
|
+
http_version: "1.1"
|
83
|
+
- !ruby/struct:VCR::HTTPInteraction
|
84
|
+
request: !ruby/struct:VCR::Request
|
85
|
+
method: :get
|
86
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DeregisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=aa2vpTcy0i2JfYcxUgDitUVqb3aPgH1FzgCcbQc2D5E%3D
|
87
|
+
body:
|
88
|
+
headers:
|
89
|
+
accept:
|
90
|
+
- application/xml
|
91
|
+
connection:
|
92
|
+
- keep-alive
|
93
|
+
keep-alive:
|
94
|
+
- 30
|
95
|
+
response: !ruby/struct:VCR::Response
|
96
|
+
status: !ruby/struct:VCR::ResponseStatus
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
content-type:
|
101
|
+
- text/xml
|
102
|
+
content-length:
|
103
|
+
- "184"
|
104
|
+
date:
|
105
|
+
- Mon, 18 Apr 2011 23:50:11 GMT
|
106
|
+
connection:
|
107
|
+
- keep-alive
|
108
|
+
body: <?xml version="1.0" ?><DeregisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>H84K8TTQ1GYGIYBW-KVL</requestId><return>true</return></DeregisterUserResponse>
|
109
|
+
http_version: "1.1"
|
110
|
+
- !ruby/struct:VCR::HTTPInteraction
|
111
|
+
request: !ruby/struct:VCR::Request
|
112
|
+
method: :get
|
113
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyUserRole&Operation=remove&Role=sysadmin&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=Ugaaj1Z%2FEHCZLAu5qOtN5Ui5TvT2tF2LFl%2FFYtNjZ9Q%3D
|
114
|
+
body:
|
115
|
+
headers:
|
116
|
+
accept:
|
117
|
+
- application/xml
|
118
|
+
connection:
|
119
|
+
- keep-alive
|
120
|
+
keep-alive:
|
121
|
+
- 30
|
122
|
+
response: !ruby/struct:VCR::Response
|
123
|
+
status: !ruby/struct:VCR::ResponseStatus
|
124
|
+
code: 200
|
125
|
+
message: OK
|
126
|
+
headers:
|
127
|
+
content-type:
|
128
|
+
- text/xml
|
129
|
+
content-length:
|
130
|
+
- "184"
|
131
|
+
date:
|
132
|
+
- Mon, 18 Apr 2011 23:50:11 GMT
|
133
|
+
connection:
|
134
|
+
- keep-alive
|
135
|
+
body: <?xml version="1.0" ?><ModifyUserRoleResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>3-3G3EQACFRMD7IHVUG5</requestId><return>true</return></ModifyUserRoleResponse>
|
28
136
|
http_version: "1.1"
|
@@ -2,7 +2,61 @@
|
|
2
2
|
- !ruby/struct:VCR::HTTPInteraction
|
3
3
|
request: !ruby/struct:VCR::Request
|
4
4
|
method: :get
|
5
|
-
uri: http://10.
|
5
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=RegisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=nthXQq43tPrgjgiuaeCImXCS3kfDdv47YuT6tzxZ6wg%3D
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
connection:
|
11
|
+
- keep-alive
|
12
|
+
keep-alive:
|
13
|
+
- 30
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
|
+
- text/xml
|
21
|
+
content-length:
|
22
|
+
- "313"
|
23
|
+
date:
|
24
|
+
- Tue, 19 Apr 2011 00:05:55 GMT
|
25
|
+
connection:
|
26
|
+
- keep-alive
|
27
|
+
body: <?xml version="1.0" ?><RegisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>4H6OISPGH58RPCT5AV-H</requestId><username>vcr_user</username><secretkey>c69839a3-de0f-4ac0-bdcd-fe9dde917514</secretkey><accesskey>6c0a495a-0d57-425c-b9a5-8ef9ab7b122e</accesskey><file/></RegisterUserResponse>
|
28
|
+
http_version: "1.1"
|
29
|
+
- !ruby/struct:VCR::HTTPInteraction
|
30
|
+
request: !ruby/struct:VCR::Request
|
31
|
+
method: :get
|
32
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyUserRole&Operation=add&Project=sandbox&Role=sysadmin&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=SpZpNjE%2FU%2F4WE8bj34u34Ooc0ObM0R%2FJOfWcU228g8s%3D
|
33
|
+
body:
|
34
|
+
headers:
|
35
|
+
accept:
|
36
|
+
- application/xml
|
37
|
+
connection:
|
38
|
+
- keep-alive
|
39
|
+
keep-alive:
|
40
|
+
- 30
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
content-type:
|
47
|
+
- text/xml
|
48
|
+
content-length:
|
49
|
+
- "184"
|
50
|
+
date:
|
51
|
+
- Tue, 19 Apr 2011 00:05:56 GMT
|
52
|
+
connection:
|
53
|
+
- keep-alive
|
54
|
+
body: <?xml version="1.0" ?><ModifyUserRoleResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>77KGEW27PQCW7H21UCEO</requestId><return>true</return></ModifyUserRoleResponse>
|
55
|
+
http_version: "1.1"
|
56
|
+
- !ruby/struct:VCR::HTTPInteraction
|
57
|
+
request: !ruby/struct:VCR::Request
|
58
|
+
method: :get
|
59
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DescribeUserRoles&Project=sandbox&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=vnaYLhtJUGql3OrZXEngRuoYHKVjiN%2FV5sEY56vEooM%3D
|
6
60
|
body:
|
7
61
|
headers:
|
8
62
|
accept:
|
@@ -21,8 +75,62 @@
|
|
21
75
|
content-length:
|
22
76
|
- "218"
|
23
77
|
date:
|
24
|
-
- Tue,
|
78
|
+
- Tue, 19 Apr 2011 00:05:56 GMT
|
79
|
+
connection:
|
80
|
+
- keep-alive
|
81
|
+
body: <?xml version="1.0" ?><DescribeUserRolesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>ZT0T23UZ6ZNIMDNU32EI</requestId><roles><item><role>sysadmin</role></item></roles></DescribeUserRolesResponse>
|
82
|
+
http_version: "1.1"
|
83
|
+
- !ruby/struct:VCR::HTTPInteraction
|
84
|
+
request: !ruby/struct:VCR::Request
|
85
|
+
method: :get
|
86
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DeregisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=aa2vpTcy0i2JfYcxUgDitUVqb3aPgH1FzgCcbQc2D5E%3D
|
87
|
+
body:
|
88
|
+
headers:
|
89
|
+
accept:
|
90
|
+
- application/xml
|
91
|
+
connection:
|
92
|
+
- keep-alive
|
93
|
+
keep-alive:
|
94
|
+
- 30
|
95
|
+
response: !ruby/struct:VCR::Response
|
96
|
+
status: !ruby/struct:VCR::ResponseStatus
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
content-type:
|
101
|
+
- text/xml
|
102
|
+
content-length:
|
103
|
+
- "184"
|
104
|
+
date:
|
105
|
+
- Tue, 19 Apr 2011 00:05:56 GMT
|
106
|
+
connection:
|
107
|
+
- keep-alive
|
108
|
+
body: <?xml version="1.0" ?><DeregisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>H9CPPYU6-DBTHGY2C3JV</requestId><return>true</return></DeregisterUserResponse>
|
109
|
+
http_version: "1.1"
|
110
|
+
- !ruby/struct:VCR::HTTPInteraction
|
111
|
+
request: !ruby/struct:VCR::Request
|
112
|
+
method: :get
|
113
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyUserRole&Operation=remove&Project=sandbox&Role=sysadmin&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=9NDSbN2e7rJYiFuVicbaY%2F0VUk01loPiU4GkO8%2BUGto%3D
|
114
|
+
body:
|
115
|
+
headers:
|
116
|
+
accept:
|
117
|
+
- application/xml
|
118
|
+
connection:
|
119
|
+
- keep-alive
|
120
|
+
keep-alive:
|
121
|
+
- 30
|
122
|
+
response: !ruby/struct:VCR::Response
|
123
|
+
status: !ruby/struct:VCR::ResponseStatus
|
124
|
+
code: 200
|
125
|
+
message: OK
|
126
|
+
headers:
|
127
|
+
content-type:
|
128
|
+
- text/xml
|
129
|
+
content-length:
|
130
|
+
- "184"
|
131
|
+
date:
|
132
|
+
- Tue, 19 Apr 2011 00:05:56 GMT
|
25
133
|
connection:
|
26
134
|
- keep-alive
|
27
|
-
body: <?xml version="1.0" ?><
|
135
|
+
body: <?xml version="1.0" ?><ModifyUserRoleResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>QM8S9HWY21G66PYGO2NR</requestId><return>true</return></ModifyUserRoleResponse>
|
28
136
|
http_version: "1.1"
|
@@ -0,0 +1,109 @@
|
|
1
|
+
---
|
2
|
+
- !ruby/struct:VCR::HTTPInteraction
|
3
|
+
request: !ruby/struct:VCR::Request
|
4
|
+
method: :get
|
5
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=RegisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=nthXQq43tPrgjgiuaeCImXCS3kfDdv47YuT6tzxZ6wg%3D
|
6
|
+
body:
|
7
|
+
headers:
|
8
|
+
accept:
|
9
|
+
- application/xml
|
10
|
+
connection:
|
11
|
+
- keep-alive
|
12
|
+
keep-alive:
|
13
|
+
- 30
|
14
|
+
response: !ruby/struct:VCR::Response
|
15
|
+
status: !ruby/struct:VCR::ResponseStatus
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
content-type:
|
20
|
+
- text/xml
|
21
|
+
content-length:
|
22
|
+
- "313"
|
23
|
+
date:
|
24
|
+
- Tue, 19 Apr 2011 00:00:54 GMT
|
25
|
+
connection:
|
26
|
+
- keep-alive
|
27
|
+
body: <?xml version="1.0" ?><RegisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>O6OT6QXSNDWHJL0Y8CIT</requestId><username>vcr_user</username><secretkey>acc512d3-571c-46d7-ba90-3bc22b33a77d</secretkey><accesskey>f2a85e4c-001e-40fe-8b0d-2a402627c061</accesskey><file/></RegisterUserResponse>
|
28
|
+
http_version: "1.1"
|
29
|
+
- !ruby/struct:VCR::HTTPInteraction
|
30
|
+
request: !ruby/struct:VCR::Request
|
31
|
+
method: :get
|
32
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DescribeUserRoles&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=XwheiYoIglQYt3%2BRvx8MckigXMm8omhhgpwvpJh9f7g%3D
|
33
|
+
body:
|
34
|
+
headers:
|
35
|
+
accept:
|
36
|
+
- application/xml
|
37
|
+
connection:
|
38
|
+
- keep-alive
|
39
|
+
keep-alive:
|
40
|
+
- 30
|
41
|
+
response: !ruby/struct:VCR::Response
|
42
|
+
status: !ruby/struct:VCR::ResponseStatus
|
43
|
+
code: 200
|
44
|
+
message: OK
|
45
|
+
headers:
|
46
|
+
content-type:
|
47
|
+
- text/xml
|
48
|
+
content-length:
|
49
|
+
- "177"
|
50
|
+
date:
|
51
|
+
- Tue, 19 Apr 2011 00:00:54 GMT
|
52
|
+
connection:
|
53
|
+
- keep-alive
|
54
|
+
body: <?xml version="1.0" ?><DescribeUserRolesResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>L2W9D7R60552VKP5ZH-U</requestId><roles/></DescribeUserRolesResponse>
|
55
|
+
http_version: "1.1"
|
56
|
+
- !ruby/struct:VCR::HTTPInteraction
|
57
|
+
request: !ruby/struct:VCR::Request
|
58
|
+
method: :get
|
59
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=DeregisterUser&Name=vcr_user&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&Version=2010-11-15&Signature=aa2vpTcy0i2JfYcxUgDitUVqb3aPgH1FzgCcbQc2D5E%3D
|
60
|
+
body:
|
61
|
+
headers:
|
62
|
+
accept:
|
63
|
+
- application/xml
|
64
|
+
connection:
|
65
|
+
- keep-alive
|
66
|
+
keep-alive:
|
67
|
+
- 30
|
68
|
+
response: !ruby/struct:VCR::Response
|
69
|
+
status: !ruby/struct:VCR::ResponseStatus
|
70
|
+
code: 200
|
71
|
+
message: OK
|
72
|
+
headers:
|
73
|
+
content-type:
|
74
|
+
- text/xml
|
75
|
+
content-length:
|
76
|
+
- "184"
|
77
|
+
date:
|
78
|
+
- Tue, 19 Apr 2011 00:00:54 GMT
|
79
|
+
connection:
|
80
|
+
- keep-alive
|
81
|
+
body: <?xml version="1.0" ?><DeregisterUserResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>5D0FTKHHMIWA8RU-TPXS</requestId><return>true</return></DeregisterUserResponse>
|
82
|
+
http_version: "1.1"
|
83
|
+
- !ruby/struct:VCR::HTTPInteraction
|
84
|
+
request: !ruby/struct:VCR::Request
|
85
|
+
method: :get
|
86
|
+
uri: http://10.3.170.32:8773/services/Admin/?AWSAccessKeyId=03982c2e-8e28-40b6-95e2-f2811383b4a2%3Asandbox&Action=ModifyUserRole&Operation=remove&Role=sysadmin&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=1999-12-31T19%3A59%3A59Z&User=vcr_user&Version=2010-11-15&Signature=Ugaaj1Z%2FEHCZLAu5qOtN5Ui5TvT2tF2LFl%2FFYtNjZ9Q%3D
|
87
|
+
body:
|
88
|
+
headers:
|
89
|
+
accept:
|
90
|
+
- application/xml
|
91
|
+
connection:
|
92
|
+
- keep-alive
|
93
|
+
keep-alive:
|
94
|
+
- 30
|
95
|
+
response: !ruby/struct:VCR::Response
|
96
|
+
status: !ruby/struct:VCR::ResponseStatus
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
content-type:
|
101
|
+
- text/xml
|
102
|
+
content-length:
|
103
|
+
- "184"
|
104
|
+
date:
|
105
|
+
- Tue, 19 Apr 2011 00:00:55 GMT
|
106
|
+
connection:
|
107
|
+
- keep-alive
|
108
|
+
body: <?xml version="1.0" ?><ModifyUserRoleResponse xmlns="http://ec2.amazonaws.com/doc/2010-11-15/"><requestId>K8HDRKLSDCRXJ1FPDUBP</requestId><return>true</return></ModifyUserRoleResponse>
|
109
|
+
http_version: "1.1"
|