'Test signature validation with the access/secret provided.'

def test_signature_validate_no_host_port(self):

    access = self.blob['access']
    secret = self.blob['secret']
    signer = ec2_utils.Ec2Signer(secret)
    params = {'SignatureMethod': 'HmacSHA256', 'SignatureVersion': '2', 'AWSAccessKeyId': access}
    request = {'host': 'foo', 'verb': 'GET', 'path': '/bar', 'params': params}
    signature = signer.generate(request)
    sig_ref = {'access': access, 'signature': signature, 'host': 'foo', 'verb': 'GET', 'path': '/bar', 'params': params}
    self.assertTrue(self.controller.check_signature(self.creds_ref, sig_ref))
