@@ -62,6 +62,52 @@ def test_cadf_action(self):
62
62
),
63
63
'expected' : 'authenticate'
64
64
},
65
+ {
66
+ 'request' : fake .create_request (
67
+ path = '/v3/ec2tokens' ,
68
+ method = 'POST' ,
69
+ body_dict = {
70
+ "credentials" : {
71
+ "access" : "8cff51dc66594df4a2ae121f796df36c" ,
72
+ "host" : "localhost" ,
73
+ "params" : {
74
+ "Action" : "Test" ,
75
+ "SignatureMethod" : "HmacSHA256" ,
76
+ "SignatureVersion" : "2" ,
77
+ "Timestamp" : "2007-01-31T23:59:59Z"
78
+ },
79
+ "path" : "/" ,
80
+ "secret" : "df8daeaa981b40cea1217fead123bc64" ,
81
+ "signature" : "Fra2UBKKtqy3GQ0mj+JqzR8GTGsbWQW+yN5Nih9ThfI=" ,
82
+ "verb" : "GET"
83
+ }
84
+ }
85
+ ),
86
+ 'expected' : 'authenticate'
87
+ },
88
+ {
89
+ 'request' : fake .create_request (
90
+ path = '/v3/s3tokens' ,
91
+ method = 'POST' ,
92
+ body_dict = {
93
+ "credentials" : {
94
+ "access" : "8cff51dc66594df4a2ae121f796df36c" ,
95
+ "host" : "localhost" ,
96
+ "params" : {
97
+ "Action" : "Test" ,
98
+ "SignatureMethod" : "HmacSHA256" ,
99
+ "SignatureVersion" : "2" ,
100
+ "Timestamp" : "2007-01-31T23:59:59Z"
101
+ },
102
+ "path" : "/" ,
103
+ "secret" : "df8daeaa981b40cea1217fead123bc64" ,
104
+ "signature" : "Fra2UBKKtqy3GQ0mj+JqzR8GTGsbWQW+yN5Nih9ThfI=" ,
105
+ "verb" : "GET"
106
+ }
107
+ }
108
+ ),
109
+ 'expected' : 'authenticate'
110
+ },
65
111
{
66
112
'request' : fake .create_request (
67
113
path = '/v3/domains/b206a1900310484f8a9504754c84b067/config/b206a1900310484f8a9504754c84b067/ldap'
@@ -139,6 +185,14 @@ def test_target_type_uri(self):
139
185
'request' : fake .create_request (path = '/v3/auth/tokens' ),
140
186
'expected' : 'data/security/auth/tokens'
141
187
},
188
+ {
189
+ 'request' : fake .create_request (path = '/v3/ec2tokens' ),
190
+ 'expected' : 'data/security/ec2tokens'
191
+ },
192
+ {
193
+ 'request' : fake .create_request (path = '/v3/s3tokens' ),
194
+ 'expected' : 'data/security/s3tokens'
195
+ },
142
196
{
143
197
'request' : fake .create_request (
144
198
path = '/v3/domains/b206a1900310484f8a9504754c84b067/config/b206a1900310484f8a9504754c84b067/ldap'
0 commit comments