~jtv/gwacl/require-storage-location

« back to all changes in this revision

Viewing changes to testing_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:
19
19
    transport := &TestTransport{Error: error}
20
20
    client := &http.Client{Transport: transport}
21
21
    context := NewTestStorageContext(client)
 
22
    context.AzureEndpoint = "http://example.com/"
22
23
    request := &ListContainersRequest{Marker: ""}
23
24
    _, err := context.ListContainers(request)
24
25
    c.Check(err, ErrorMatches, ".*"+errorMessage+".*")