Skip to content

Commit

Permalink
libvirt: enable sample TEE only for libvirt provider
Browse files Browse the repository at this point in the history
Fixes: #1825

Signed-off-by: Qi Feng Huo <[email protected]>
  • Loading branch information
Qi Feng Huo committed Apr 30, 2024
1 parent c1a1624 commit 88bf67d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cloud-api-adaptor/test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,11 @@ func TestMain(m *testing.M) {

kbsparams = "cc_kbc::http://" + kbsEndpoint
log.Infof("KBS PARAMS: %s", kbsparams)
if err = keyBrokerService.EnableKbsAllowAllPolicy("http://" + kbsEndpoint); err != nil {
return ctx, err
if cloudProvider == "libvirt" {
log.Info("Enable sample TEE for libvirt provider by change KBS OPA to allow all")
if err = keyBrokerService.EnableKbsAllowAllPolicy("http://" + kbsEndpoint); err != nil {
return ctx, err
}
}
}

Expand Down

0 comments on commit 88bf67d

Please sign in to comment.