@@ -47,7 +47,7 @@ describe('Configure AWS Credentials', {}, () => {
47
47
expect ( core . info ) . toHaveBeenCalledWith ( 'Authenticated as assumedRoleId AROAFAKEASSUMEDROLEID' ) ;
48
48
expect ( core . info ) . toHaveBeenCalledTimes ( 2 ) ;
49
49
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
50
- expect ( core . setOutput ) . toHaveBeenCalledOnce ( ) ;
50
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
51
51
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSACCESSKEYID' ) ;
52
52
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSECRETACCESSKEY' ) ;
53
53
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSESSIONTOKEN' ) ;
@@ -71,7 +71,7 @@ describe('Configure AWS Credentials', {}, () => {
71
71
expect ( core . info ) . toHaveBeenCalledWith ( 'Authenticated as assumedRoleId AROAFAKEASSUMEDROLEID' ) ;
72
72
expect ( core . info ) . toHaveBeenCalledTimes ( 3 ) ;
73
73
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
74
- expect ( core . setOutput ) . toHaveBeenCalledOnce ( ) ;
74
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
75
75
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSACCESSKEYID' ) ;
76
76
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSECRETACCESSKEY' ) ;
77
77
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSESSIONTOKEN' ) ;
@@ -106,7 +106,7 @@ describe('Configure AWS Credentials', {}, () => {
106
106
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'MYAWSSECRETACCESSKEY' ) ;
107
107
expect ( core . setSecret ) . toHaveBeenCalledTimes ( 2 ) ;
108
108
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
109
- expect ( core . setOutput ) . toHaveBeenCalledOnce ( ) ;
109
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
110
110
expect ( core . info ) . toHaveBeenCalledWith ( 'Proceeding with IAM user credentials' ) ;
111
111
expect ( core . info ) . toHaveBeenCalledOnce ( ) ;
112
112
expect ( core . setFailed ) . not . toHaveBeenCalled ( ) ;
@@ -140,7 +140,7 @@ describe('Configure AWS Credentials', {}, () => {
140
140
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'MYAWSSECRETACCESSKEY' ) ;
141
141
expect ( core . setSecret ) . toHaveBeenCalledTimes ( 5 ) ;
142
142
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
143
- expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
143
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 4 ) ;
144
144
expect ( core . info ) . toHaveBeenCalledWith ( 'Assuming role with user credentials' ) ;
145
145
expect ( core . info ) . toHaveBeenCalledWith ( 'Authenticated as assumedRoleId AROAFAKEASSUMEDROLEID' ) ;
146
146
expect ( core . info ) . toHaveBeenCalledTimes ( 2 ) ;
@@ -173,7 +173,7 @@ describe('Configure AWS Credentials', {}, () => {
173
173
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSESSIONTOKEN' ) ;
174
174
expect ( core . setSecret ) . toHaveBeenCalledTimes ( 3 ) ;
175
175
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
176
- expect ( core . setOutput ) . toHaveBeenCalledTimes ( 1 ) ;
176
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
177
177
expect ( core . setFailed ) . not . toHaveBeenCalled ( ) ;
178
178
} ) ;
179
179
} ) ;
@@ -204,7 +204,7 @@ describe('Configure AWS Credentials', {}, () => {
204
204
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSESSIONTOKEN' ) ;
205
205
expect ( core . setSecret ) . toHaveBeenCalledTimes ( 3 ) ;
206
206
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
207
- expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
207
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 4 ) ;
208
208
expect ( core . setFailed ) . not . toHaveBeenCalled ( ) ;
209
209
} ) ;
210
210
it ( 'exports environment variables from inputs' , { } , async ( ) => {
@@ -237,7 +237,7 @@ describe('Configure AWS Credentials', {}, () => {
237
237
expect ( core . setSecret ) . toHaveBeenCalledWith ( 'STSAWSSESSIONTOKEN' ) ;
238
238
expect ( core . setSecret ) . toHaveBeenCalledTimes ( 6 ) ;
239
239
expect ( core . setOutput ) . toHaveBeenCalledWith ( 'aws-account-id' , '111111111111' ) ;
240
- expect ( core . setOutput ) . toHaveBeenCalledTimes ( 2 ) ;
240
+ expect ( core . setOutput ) . toHaveBeenCalledTimes ( 4 ) ;
241
241
expect ( core . setFailed ) . not . toHaveBeenCalled ( ) ;
242
242
} ) ;
243
243
} ) ;
0 commit comments