mirror of
https://github.com/helm/helm.git
synced 2026-04-29 18:19:15 -04:00
fixup test
Signed-off-by: George Jenkins <gvjenkins@gmail.com>
This commit is contained in:
parent
a9cdc78116
commit
f8a49f1852
1 changed files with 4 additions and 5 deletions
|
|
@ -350,9 +350,7 @@ func TestUpdate(t *testing.T) {
|
|||
"/namespaces/default/pods/otter:GET",
|
||||
"/namespaces/default/pods/otter:PATCH",
|
||||
"/namespaces/default/pods/dolphin:GET",
|
||||
"/namespaces/default/pods:POST", // create dolphin
|
||||
"/namespaces/default/pods:POST", // retry due to 409
|
||||
"/namespaces/default/pods:POST", // retry due to 409
|
||||
"/namespaces/default/pods/dolphin:PATCH", // create dolphin
|
||||
"/namespaces/default/pods/squid:GET",
|
||||
"/namespaces/default/pods/squid:DELETE",
|
||||
"/namespaces/default/pods/notfound:GET",
|
||||
|
|
@ -464,6 +462,8 @@ func TestUpdate(t *testing.T) {
|
|||
return newResponseJSON(http.StatusConflict, resourceQuotaConflict)
|
||||
}
|
||||
|
||||
return newResponse(http.StatusOK, &listTarget.Items[1])
|
||||
case p == "/namespaces/default/pods/dolphin" && m == http.MethodPatch:
|
||||
return newResponse(http.StatusOK, &listTarget.Items[1])
|
||||
case p == "/namespaces/default/pods/squid" && m == http.MethodDelete:
|
||||
return newResponse(http.StatusOK, &listTarget.Items[1])
|
||||
|
|
@ -485,10 +485,9 @@ func TestUpdate(t *testing.T) {
|
|||
Reason: metav1.StatusReasonForbidden,
|
||||
Code: http.StatusForbidden,
|
||||
})
|
||||
default:
|
||||
}
|
||||
|
||||
t.Fail()
|
||||
t.FailNow()
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue