Describe the bug
GitHub Issue for boto3
Title
Amazon Connect: update_test_case with Status=PUBLISHED fails with InvalidTestCaseException but GUI succeeds
Description
Summary
When attempting to publish Amazon Connect test cases using update_test_case API with Status="PUBLISHED", the API consistently returns InvalidTestCaseException: Invalid test case content even though:
- The same test case can be published successfully via AWS Connect Console GUI
- The test case content follows the official AWS documentation schema
- The test case uploads successfully with
Status="SAVED"
Environment
- boto3 version: 1.42.59
- botocore version: 1.42.59
- Python version: 3.14.3
- Region: eu-west-2
- Instance created: 2026-03-03 (same day as testing)
Regression Issue
Expected Behavior
Expected Behavior
The update_test_case API should successfully publish the test case, just like the GUI does.
Current Behavior
Actual Behavior
botocore.errorfactory.InvalidTestCaseException: An error occurred (InvalidTestCaseException)
when calling the UpdateTestCase operation: Invalid test case content
Reproduction Steps
Steps to Reproduce
- Create test case with SAVED status (succeeds):
import boto3
import json
client = boto3.client('connect', region_name='eu-west-2')
instance_id = "45ec8eb8-b9dc-46cf-91ee-2943bcf41011"
content = {
"Version": "2025-06-21",
"Metadata": {},
"Observations": [
{
"Identifier": "TestStart",
"Event": {
"Type": "TestInitiated",
"Actor": "System",
"Properties": {}
},
"Usage": {"Type": "EXACTLY"},
"Actions": [
{
"Identifier": "EndTest",
"Type": "TestControl",
"Parameters": {
"ActionType": "TestControl",
"Command": {"Type": "EndTest"}
},
"Transitions": {"NextAction": ""}
}
],
"Transitions": {"NextObservations": []}
}
]
}
entry_point = {
"Type": "VOICE_CALL",
"VoiceCallEntryPointParameters": {
"SourcePhoneNumber": "+442046392128",
"DestinationPhoneNumber": "+442046392128"
}
}
# This succeeds
response = client.create_test_case(
InstanceId=instance_id,
Name="TEST_Minimal",
Description="Minimal test",
Content=json.dumps(content),
EntryPoint=entry_point,
Status="SAVED"
)
test_id = response['TestCaseId']
print(f"Created: {test_id}")
- Attempt to publish (fails):
# This fails with InvalidTestCaseException
client.update_test_case(
InstanceId=instance_id,
TestCaseId=test_id,
Name="TEST_Minimal",
Description="Minimal test",
Content=json.dumps(content),
EntryPoint=entry_point,
Status="PUBLISHED"
)
- Publish via AWS Console GUI (succeeds):
- Navigate to AWS Connect Console → Test Cases
- Click on the test case
- Click "Publish" button
- ✅ Successfully publishes
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3 1.42.59
Environment details (OS name and version, etc.)
Environment - boto3 version: 1.42.59 - botocore version: 1.42.59 - Python version: 3.14.3 - Region: eu-west-2 - Instance created: 2026-03-03 (same day as testing)
Describe the bug
GitHub Issue for boto3
Title
Amazon Connect: update_test_case with Status=PUBLISHED fails with InvalidTestCaseException but GUI succeeds
Description
Summary
When attempting to publish Amazon Connect test cases using
update_test_caseAPI withStatus="PUBLISHED", the API consistently returnsInvalidTestCaseException: Invalid test case contenteven though:Status="SAVED"Environment
Regression Issue
Expected Behavior
Expected Behavior
The
update_test_caseAPI should successfully publish the test case, just like the GUI does.Current Behavior
Actual Behavior
Reproduction Steps
Steps to Reproduce
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3 1.42.59
Environment details (OS name and version, etc.)
Environment - boto3 version: 1.42.59 - botocore version: 1.42.59 - Python version: 3.14.3 - Region: eu-west-2 - Instance created: 2026-03-03 (same day as testing)