mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-23 05:41:19 -05:00
only use test action in license integration test
This commit is contained in:
parent
bff4351839
commit
3d50869ed6
@ -18,28 +18,15 @@ import (
|
||||
func TestQuotaCheckIntegration(t *testing.T) {
|
||||
testCases := map[string]struct {
|
||||
license string
|
||||
action Action
|
||||
wantQuota int
|
||||
wantError bool
|
||||
}{
|
||||
"OSS license has quota 8": {
|
||||
license: CommunityLicense,
|
||||
action: test,
|
||||
wantQuota: 8,
|
||||
},
|
||||
"OSS license missing action": {
|
||||
license: CommunityLicense,
|
||||
action: "",
|
||||
wantQuota: 8,
|
||||
},
|
||||
"Empty license assumes community": {
|
||||
license: "",
|
||||
action: test,
|
||||
wantQuota: 8,
|
||||
},
|
||||
"Empty request": {
|
||||
license: "",
|
||||
action: "",
|
||||
wantQuota: 8,
|
||||
},
|
||||
}
|
||||
@ -51,7 +38,7 @@ func TestQuotaCheckIntegration(t *testing.T) {
|
||||
client := NewClient()
|
||||
|
||||
req := QuotaCheckRequest{
|
||||
Action: tc.action,
|
||||
Action: test,
|
||||
License: tc.license,
|
||||
}
|
||||
resp, err := client.QuotaCheck(context.Background(), req)
|
||||
|
Loading…
Reference in New Issue
Block a user