~jtv/gwacl/require-storage-location

« back to all changes in this revision

Viewing changes to helpers_http_test.go

  • Committer: jtv at canonical
  • Date: 2013-08-06 11:11:50 UTC
  • Revision ID: jtv@canonical.com-20130806111150-6ky59l9v5e6yunfv
Make StorageContext.AzureEndpoint required.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
// random base64-encoded key.
51
51
func makeStorageContext(transport http.RoundTripper) *StorageContext {
52
52
    context := &StorageContext{
53
 
        Account: MakeRandomString(10),
54
 
        Key:     base64.StdEncoding.EncodeToString(MakeRandomByteSlice(10)),
 
53
        Account:       MakeRandomString(10),
 
54
        Key:           base64.StdEncoding.EncodeToString(MakeRandomByteSlice(10)),
 
55
        AzureEndpoint: APIEndpoint("http://" + MakeRandomString(5) + ".example.com/"),
55
56
    }
56
57
    context.client = &http.Client{Transport: transport}
57
58
    return context