-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
bugThis issue is a confirmed bug.This issue is a confirmed bug.connectp3This is a minor priority issueThis is a minor priority issueservice-apiThis issue is caused by the service API, not the SDK implementation.This issue is caused by the service API, not the SDK implementation.
Description
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
- Select this option if this issue appears to be a regression.
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugThis issue is a confirmed bug.This issue is a confirmed bug.connectp3This is a minor priority issueThis is a minor priority issueservice-apiThis issue is caused by the service API, not the SDK implementation.This issue is caused by the service API, not the SDK implementation.