mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-05 07:45:27 -04:00
license: refactor license check to be agnostic of input (#2659)
* license: refactor license check to be agnostic of input * license: remove unused code * cli: only check license file in enterprise version Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> * bazel: fix enterprise CLI build * bazel: add keep directive * Update internal/constellation/apply.go Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> * license: check for return value --------- Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com> Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
This commit is contained in:
parent
381c546c88
commit
4d6a7fa759
15 changed files with 201 additions and 124 deletions
|
@ -233,9 +233,11 @@ func TestCreate(t *testing.T) {
|
|||
newInfraApplier: func(_ context.Context) (cloudApplier, func(), error) {
|
||||
return tc.creator, func() {}, tc.getCreatorErr
|
||||
},
|
||||
|
||||
applier: &stubConstellApplier{},
|
||||
}
|
||||
|
||||
err := a.apply(cmd, stubAttestationFetcher{}, &stubLicenseClient{}, "create")
|
||||
err := a.apply(cmd, stubAttestationFetcher{}, "create")
|
||||
|
||||
if tc.wantErr {
|
||||
assert.Error(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue