Update cAdvisor ContainerInfo references to v1 API.

The cAdvisor data structures were versioned recently. We use the v1
versions so this commit makes that explicit.
This commit is contained in:
Victor Marmol
2015-03-06 15:42:06 -08:00
parent 7e97d22e91
commit a35f4374c5
6 changed files with 11 additions and 11 deletions

View File

@@ -28,8 +28,8 @@ import (
"testing"
"time"
"github.com/google/cadvisor/info"
itest "github.com/google/cadvisor/info/test"
info "github.com/google/cadvisor/info/v1"
itest "github.com/google/cadvisor/info/v1/test"
)
func testHTTPContainerInfoGetter(
@@ -62,7 +62,7 @@ func testHTTPContainerInfoGetter(
// So changing req after Get*Info would be a race.
expectedReq := req
// Fill any empty fields with default value
if !reflect.DeepEqual(expectedReq, &receivedReq) {
if !expectedReq.Equals(receivedReq) {
t.Errorf("received wrong request")
}
err = json.NewEncoder(w).Encode(cinfo)