781
781
c.Check(props.LeaseDuration, Equals, "duration")
784
func (suite *TestGetContainerProperties) TestWithoutAllHeaders(c *C) {
785
response := &http.Response{
786
Status: fmt.Sprintf("%d", http.StatusOK),
787
StatusCode: http.StatusOK,
788
Body: makeResponseBody(""),
791
transport := &TestTransport{Response: response}
792
context := makeStorageContext(transport)
793
containerName := MakeRandomString(10)
794
props, err := context.GetContainerProperties(containerName)
797
c.Check(props.LastModified, Equals, "")
798
c.Check(props.ETag, Equals, "")
799
c.Check(props.LeaseStatus, Equals, "")
800
c.Check(props.LeaseState, Equals, "")
801
c.Check(props.LeaseDuration, Equals, "")
784
805
// Client-side errors from the HTTP client are propagated back to the caller.
785
806
func (suite *TestGetContainerProperties) TestError(c *C) {
786
807
error := fmt.Errorf("canned-error")