|
@@ -49,6 +49,10 @@ func TestGetVersion(t *testing.T) {
|
|
if result := v.Get("Version"); result != expected {
|
|
if result := v.Get("Version"); result != expected {
|
|
t.Errorf("Expected version %s, %s found", expected, result)
|
|
t.Errorf("Expected version %s, %s found", expected, result)
|
|
}
|
|
}
|
|
|
|
+ expected = "application/json"
|
|
|
|
+ if result := r.HeaderMap.Get("Content-Type"); result != expected {
|
|
|
|
+ t.Errorf("Expected Content-Type %s, %s found", expected, result)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
func TestGetInfo(t *testing.T) {
|
|
func TestGetInfo(t *testing.T) {
|
|
@@ -84,6 +88,10 @@ func TestGetInfo(t *testing.T) {
|
|
if images := i.GetInt("Images"); images != len(initialImages) {
|
|
if images := i.GetInt("Images"); images != len(initialImages) {
|
|
t.Errorf("Expected images: %d, %d found", len(initialImages), images)
|
|
t.Errorf("Expected images: %d, %d found", len(initialImages), images)
|
|
}
|
|
}
|
|
|
|
+ expected := "application/json"
|
|
|
|
+ if result := r.HeaderMap.Get("Content-Type"); result != expected {
|
|
|
|
+ t.Errorf("Expected Content-Type %s, %s found", expected, result)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
func TestGetEvents(t *testing.T) {
|
|
func TestGetEvents(t *testing.T) {
|