4
"launchpad.net/goamz/aws"
5
"launchpad.net/goamz/exp/mturk"
6
. "launchpad.net/gocheck"
9
// Mechanical Turk REST authentication docs: http://goo.gl/wrzfn
11
var testAuth = aws.Auth{"user", "secret"}
13
// == fIJy9wCApBNL2R4J2WjJGtIBFX4=
14
func (s *S) TestBasicSignature(c *C) {
15
params := map[string]string{}
16
mturk.Sign(testAuth, "AWSMechanicalTurkRequester", "CreateHIT", "2012-02-16T20:30:47Z", params)
17
expected := "b/TnvzrdeD/L/EyzdFrznPXhido="
18
c.Assert(params["Signature"], Equals, expected)