@@ -26,9 +26,9 @@ func TestSTACKITCLIFlow_Init(t *testing.T) {
2626 {"ok" , args {
2727 cfg : & STACKITCLIFlowConfig {},
2828 confFn : func (t * testing.T ) {
29- _ , err := runSTACKITCLICommand (context .TODO (), "stackit auth activate-service-account --service-account-token=" + testServiceAccountToken )
29+ _ , err := RunSTACKITCLICommand (context .TODO (), "stackit auth activate-service-account --service-account-token=" + testServiceAccountToken )
3030 if err != nil {
31- t .Errorf ("runSTACKITCLICommand () error = %v" , err )
31+ t .Errorf ("RunSTACKITCLICommand () error = %v" , err )
3232 return
3333 }
3434 },
@@ -46,17 +46,17 @@ func TestSTACKITCLIFlow_Init(t *testing.T) {
4646
4747 cliProfileName := "test-stackit-cli-flow-init" + tt .name
4848
49- _ , _ = runSTACKITCLICommand (ctx , fmt .Sprintf ("stackit config profile delete %s -y" , cliProfileName ))
50- _ , err := runSTACKITCLICommand (ctx , "stackit config profile create " + cliProfileName )
49+ _ , _ = RunSTACKITCLICommand (ctx , fmt .Sprintf ("stackit config profile delete %s -y" , cliProfileName ))
50+ _ , err := RunSTACKITCLICommand (ctx , "stackit config profile create " + cliProfileName )
5151 if err != nil {
52- t .Errorf ("runSTACKITCLICommand () error = %v" , err )
52+ t .Errorf ("RunSTACKITCLICommand () error = %v" , err )
5353 return
5454 }
5555
5656 tt .args .confFn (t )
5757
5858 defer func () {
59- _ , _ = runSTACKITCLICommand (ctx , fmt .Sprintf ("stackit config profile delete %s -y" , cliProfileName ))
59+ _ , _ = RunSTACKITCLICommand (ctx , fmt .Sprintf ("stackit config profile delete %s -y" , cliProfileName ))
6060 }()
6161
6262 if err := c .Init (tt .args .cfg ); err != nil {
@@ -93,21 +93,21 @@ func TestSTACKITCLIFlow_Do(t *testing.T) {
9393 t .Run (tt .name , func (t * testing.T ) {
9494 ctx := context .TODO ()
9595
96- _ , _ = runSTACKITCLICommand (ctx , "stackit config profile delete test-stackit-cli-flow-do -y" )
97- _ , err := runSTACKITCLICommand (ctx , "stackit config profile create test-stackit-cli-flow-do" )
96+ _ , _ = RunSTACKITCLICommand (ctx , "stackit config profile delete test-stackit-cli-flow-do -y" )
97+ _ , err := RunSTACKITCLICommand (ctx , "stackit config profile create test-stackit-cli-flow-do" )
9898 if err != nil {
99- t .Errorf ("runSTACKITCLICommand () error = %v" , err )
99+ t .Errorf ("RunSTACKITCLICommand () error = %v" , err )
100100 return
101101 }
102102
103- _ , err = runSTACKITCLICommand (ctx , "stackit auth activate-service-account --service-account-token=" + testServiceAccountToken )
103+ _ , err = RunSTACKITCLICommand (ctx , "stackit auth activate-service-account --service-account-token=" + testServiceAccountToken )
104104 if err != nil {
105- t .Errorf ("runSTACKITCLICommand () error = %v" , err )
105+ t .Errorf ("RunSTACKITCLICommand () error = %v" , err )
106106 return
107107 }
108108
109109 defer func () {
110- _ , _ = runSTACKITCLICommand (ctx , "stackit config profile delete test-stackit-cli-flow-do -y" )
110+ _ , _ = RunSTACKITCLICommand (ctx , "stackit config profile delete test-stackit-cli-flow-do -y" )
111111 }()
112112
113113 c := & STACKITCLIFlow {}
0 commit comments