~ubuntu-branches/ubuntu/saucy/juju-core/saucy

« back to all changes in this revision

Viewing changes to src/launchpad.net/gwacl/poller_test.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 16:02:16 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20130820160216-5yu1llasa2e2youn
Tags: 1.13.1-0ubuntu1
* New upstream release.
  - Build and install juju metadata plugin.
  - d/NEWS: Add some guidance on upgrading environments from 1.11.x
    to 1.13.x.
* d/NEWS: Add details about lack of upgrade path from juju < 1.11
  and how to interact with older juju environments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
func (suite *pollerSuite) makeAPI(c *C) *ManagementAPI {
20
20
    subscriptionId := "subscriptionId"
21
21
    subscriptionId = subscriptionId
22
 
    api, err := NewManagementAPI(subscriptionId, "")
 
22
    api, err := NewManagementAPI(subscriptionId, "", "West US")
23
23
    c.Assert(err, IsNil)
24
24
    return api
25
25
}
119
119
    _, err := poller.poll()
120
120
 
121
121
    c.Assert(err, IsNil)
122
 
    expectedURL := AZURE_URL + api.session.subscriptionId + "/operations/" + operationID
 
122
    expectedURL := defaultManagement + api.session.subscriptionId + "/operations/" + operationID
123
123
    checkOneRequest(c, recordedRequests, expectedURL, "2009-10-01", nil, "GET")
124
124
}
125
125
 
210
210
    c.Assert(err, IsNil)
211
211
    c.Assert(response, DeepEquals, secondResponse.response)
212
212
    operationPollerInstance := poller.(operationPoller)
213
 
    expectedURL := AZURE_URL + operationPollerInstance.api.session.subscriptionId + "/operations/" + operationID
 
213
    expectedURL := defaultManagement + operationPollerInstance.api.session.subscriptionId + "/operations/" + operationID
214
214
    c.Assert(len(recordedRequests), Equals, 2)
215
215
    checkRequest(c, recordedRequests[0], expectedURL, "2009-10-01", nil, "GET")
216
216
    checkRequest(c, recordedRequests[1], expectedURL, "2009-10-01", nil, "GET")