mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-05-04 23:35:11 -04:00
cli: add debug logging to iam create command (#1127)
* AB#2787 add debug logging to iam create command * AB#2787 add test logger * AB#2787 reword log * separate debug output with empty line Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com> --------- Co-authored-by: Daniel Weiße <66256922+daniel-weisse@users.noreply.github.com>
This commit is contained in:
parent
8b7979c500
commit
e01ddc08c2
3 changed files with 25 additions and 6 deletions
|
@ -17,6 +17,7 @@ import (
|
|||
"github.com/edgelesssys/constellation/v2/internal/config"
|
||||
"github.com/edgelesssys/constellation/v2/internal/constants"
|
||||
"github.com/edgelesssys/constellation/v2/internal/file"
|
||||
"github.com/edgelesssys/constellation/v2/internal/logger"
|
||||
"github.com/spf13/afero"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
@ -246,6 +247,7 @@ func TestIAMCreateAWS(t *testing.T) {
|
|||
|
||||
iamCreator := &iamCreator{
|
||||
cmd: cmd,
|
||||
log: logger.NewTest(t),
|
||||
spinner: &nopSpinner{},
|
||||
creator: tc.creator,
|
||||
fileHandler: fileHandler,
|
||||
|
@ -469,6 +471,7 @@ func TestIAMCreateAzure(t *testing.T) {
|
|||
|
||||
iamCreator := &iamCreator{
|
||||
cmd: cmd,
|
||||
log: logger.NewTest(t),
|
||||
spinner: &nopSpinner{},
|
||||
creator: tc.creator,
|
||||
fileHandler: fileHandler,
|
||||
|
@ -716,6 +719,7 @@ func TestIAMCreateGCP(t *testing.T) {
|
|||
|
||||
iamCreator := &iamCreator{
|
||||
cmd: cmd,
|
||||
log: logger.NewTest(t),
|
||||
spinner: &nopSpinner{},
|
||||
creator: tc.creator,
|
||||
fileHandler: fileHandler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue