Skip to content

Commit

Permalink
fix unit tests issue
Browse files Browse the repository at this point in the history
  • Loading branch information
李龙峰 committed Dec 3, 2023
1 parent 8c6cab4 commit 2a3048b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func TestValidateUpdate(t *testing.T) {
Type: "invalid type",
},
},
errcode: http.StatusUnprocessableEntity,
errcode: http.StatusForbidden,
},
"type is changed": {
oldPool: &appsv1beta1.NodePool{
Expand All @@ -144,7 +144,7 @@ func TestValidateUpdate(t *testing.T) {
Type: appsv1beta1.Cloud,
},
},
errcode: http.StatusUnprocessableEntity,
errcode: http.StatusForbidden,
},
"host network is changed": {
oldPool: &appsv1beta1.NodePool{
Expand All @@ -159,7 +159,7 @@ func TestValidateUpdate(t *testing.T) {
HostNetwork: true,
},
},
errcode: http.StatusUnprocessableEntity,
errcode: http.StatusForbidden,
},
}

Expand Down Expand Up @@ -258,7 +258,7 @@ func TestValidateDelete(t *testing.T) {
Name: "hangzhou",
},
},
errcode: http.StatusUnprocessableEntity,
errcode: http.StatusForbidden,
},
"it is not a nodepool": {
pool: &corev1.Node{},
Expand Down

0 comments on commit 2a3048b

Please sign in to comment.