Skip to content

Commit c6ab432

Browse files
authored
Add clientToken to contract test (#555)
* Add clientToken to contract test * Reformatting changes for black
1 parent af41bad commit c6ab432

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/rpdk/core/contract/resource_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ def make_request(
358358
"awsAccountId": account,
359359
"action": action,
360360
"callbackContext": callback_context,
361+
"bearerToken": token,
361362
**kwargs,
362363
}
363364

@@ -417,6 +418,7 @@ def _call(self, payload):
417418
"region",
418419
"awsPartition",
419420
"awsAccountId",
421+
"bearerToken",
420422
]
421423
}
422424
LOG.debug(

tests/contract/test_resource_client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ def test_make_request():
269269
"awsPartition": "aws",
270270
"awsAccountId": ACCOUNT,
271271
"action": "CREATE",
272+
"bearerToken": token,
272273
"callbackContext": None,
273274
}
274275

@@ -542,6 +543,7 @@ def test_make_payload(resource_client):
542543
"awsPartition": "aws",
543544
"awsAccountId": ACCOUNT,
544545
"action": "CREATE",
546+
"bearerToken": token,
545547
"callbackContext": None,
546548
}
547549

0 commit comments

Comments
 (0)