~tribaal/txaws/xss-hardening

« back to all changes in this revision

Viewing changes to txaws/client/discover/tests/test_command.py

Merged 921421-completemultipart [r=oubiwann][f=921421]

This branch adds Complete Multipart method to s3 client.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
            url = (
75
75
                "http://endpoint?AWSAccessKeyId=key&"
76
76
                "Action=DescribeRegions&"
77
 
                "Signature=7fyxNidMkL%2B85udGOxqm%2BgM2o1gLyeLG2a0UOmfBOXQ%3D&"
 
77
                "Signature=3%2BHSkQQosF1Sr9AL3kdY31tEfTWQ2whjJOUSc3kvc2c%3D&"
78
78
                "SignatureMethod=HmacSHA256&SignatureVersion=2&"
79
 
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2012-08-15")
 
79
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2009-11-30")
80
80
            self.assertEqual("GET", self.method)
81
81
            self.assertEqual(url, self.url)
82
82
            self.assertEqual("URL: %s\n"
99
99
            url = (
100
100
                "http://endpoint?AWSAccessKeyId=key&"
101
101
                "Action=DescribeRegions&RegionName.0=us-west-1&"
102
 
                "Signature=FL4JjDKbWdg531q1KKUPild%2BvyqspA5wxSmOeWXWsJI%3D&"
 
102
                "Signature=6D8aCgSPQOYixowRHy26aRFzK2Vwgixl9uwegYX9nLA%3D&"
103
103
                "SignatureMethod=HmacSHA256&SignatureVersion=2&"
104
 
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2012-08-15")
 
104
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2009-11-30")
105
105
            self.assertEqual("GET", self.method)
106
106
            self.assertEqual(url, self.url)
107
107
            self.assertEqual("URL: %s\n"
128
128
            url = (
129
129
                "http://endpoint?AWSAccessKeyId=key&"
130
130
                "Action=DescribeRegions&RegionName.0=us-west-1&"
131
 
                "Signature=FL4JjDKbWdg531q1KKUPild%2BvyqspA5wxSmOeWXWsJI%3D&"
 
131
                "Signature=6D8aCgSPQOYixowRHy26aRFzK2Vwgixl9uwegYX9nLA%3D&"
132
132
                "SignatureMethod=HmacSHA256&SignatureVersion=2&"
133
 
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2012-08-15")
 
133
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2009-11-30")
134
134
            self.assertEqual("GET", self.method)
135
135
            self.assertEqual(url, self.url)
136
136
            self.assertEqual("URL: %s\n"
185
185
            url = (
186
186
                "http://endpoint?AWSAccessKeyId=key&"
187
187
                "Action=DescribeRegions&RegionName.0=us-west-1&"
188
 
                "Signature=FL4JjDKbWdg531q1KKUPild%2BvyqspA5wxSmOeWXWsJI%3D&"
 
188
                "Signature=6D8aCgSPQOYixowRHy26aRFzK2Vwgixl9uwegYX9nLA%3D&"
189
189
                "SignatureMethod=HmacSHA256&SignatureVersion=2&"
190
 
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2012-08-15")
 
190
                "Timestamp=2010-06-04T23%3A40%3A00Z&Version=2009-11-30")
191
191
            self.assertEqual("GET", self.method)
192
192
            self.assertEqual(url, self.url)
193
193
            self.assertEqual("URL: %s\n"