mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-22 06:50:43 -04:00
Fix tests and linting (#370)
* Fix license integration test * Fix build tags in lint config * Fix missing error checks * Fix use of MarkNodeAsInitialized * Fix attestation tests * Add license integration test to cmake list
This commit is contained in:
parent
397c9013ea
commit
0969ff4ac3
9 changed files with 28 additions and 21 deletions
|
@ -3,6 +3,7 @@
|
|||
package license
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
@ -11,7 +12,7 @@ import (
|
|||
func TestCheckQuotaIntegration(t *testing.T) {
|
||||
testCases := map[string]struct {
|
||||
license string
|
||||
action string
|
||||
action Action
|
||||
wantQuota int
|
||||
wantError bool
|
||||
}{
|
||||
|
@ -48,10 +49,11 @@ func TestCheckQuotaIntegration(t *testing.T) {
|
|||
|
||||
client := NewClient()
|
||||
|
||||
resp, err := client.CheckQuota(CheckQuotaRequest{
|
||||
req := CheckQuotaRequest{
|
||||
Action: tc.action,
|
||||
License: tc.license,
|
||||
})
|
||||
}
|
||||
resp, err := client.CheckQuota(context.Background(), req)
|
||||
|
||||
if tc.wantError {
|
||||
assert.Error(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue