mirror of https://github.com/grafana/grafana.git
fix validation test
CodeQL checks / Detect whether code changed (push) Waiting to run
Details
CodeQL checks / Analyze (actions) (push) Blocked by required conditions
Details
CodeQL checks / Analyze (go) (push) Blocked by required conditions
Details
CodeQL checks / Analyze (javascript) (push) Blocked by required conditions
Details
CodeQL checks / Detect whether code changed (push) Waiting to run
Details
CodeQL checks / Analyze (actions) (push) Blocked by required conditions
Details
CodeQL checks / Analyze (go) (push) Blocked by required conditions
Details
CodeQL checks / Analyze (javascript) (push) Blocked by required conditions
Details
This commit is contained in:
parent
9e07387de2
commit
e189d8547f
|
@ -385,6 +385,7 @@ func TestValidateOnBindingCreate(t *testing.T) {
|
||||||
TeamRef: iamv0alpha1.TeamBindingTeamRef{
|
TeamRef: iamv0alpha1.TeamBindingTeamRef{
|
||||||
Name: "test-team",
|
Name: "test-team",
|
||||||
},
|
},
|
||||||
|
Permission: iamv0alpha1.TeamBindingTeamPermissionAdmin,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: apierrors.NewBadRequest("subject is required"),
|
want: apierrors.NewBadRequest("subject is required"),
|
||||||
|
@ -403,6 +404,7 @@ func TestValidateOnBindingCreate(t *testing.T) {
|
||||||
TeamRef: iamv0alpha1.TeamBindingTeamRef{
|
TeamRef: iamv0alpha1.TeamBindingTeamRef{
|
||||||
Name: "",
|
Name: "",
|
||||||
},
|
},
|
||||||
|
Permission: iamv0alpha1.TeamBindingTeamPermissionAdmin,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
want: apierrors.NewBadRequest("teamRef is required"),
|
want: apierrors.NewBadRequest("teamRef is required"),
|
||||||
|
|
Loading…
Reference in New Issue