Skip to content

Commit fddfda9

Browse files
committed
Continue to fix tests
1 parent 1a8a170 commit fddfda9

File tree

7 files changed

+50
-16
lines changed

7 files changed

+50
-16
lines changed

tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def test_alarm_creation(deploy_cfn_template, snapshot):
4848
"$..StateReason",
4949
"$..StateReasonData",
5050
"$..StateValue",
51+
# For v1
52+
"$..StateTransitionedTimestamp",
5153
]
5254
)
5355
def test_composite_alarm_creation(aws_client, deploy_cfn_template, snapshot):
@@ -94,6 +96,11 @@ def alarm_action_name_transformer(key: str, val: str):
9496

9597

9698
@markers.aws.validated
99+
@markers.snapshot.skip_snapshot_verify(
100+
paths=[
101+
"$..StateTransitionedTimestamp",
102+
]
103+
)
97104
def test_alarm_ext_statistic(aws_client, deploy_cfn_template, snapshot):
98105
snapshot.add_transformer(snapshot.transform.cloudwatch_api())
99106
stack = deploy_cfn_template(

tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.snapshot.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.py::test_composite_alarm_creation": {
12-
"recorded-date": "16-07-2024, 10:41:22",
12+
"recorded-date": "29-08-2025, 09:42:14",
1313
"recorded-content": {
1414
"composite_alarm": [
1515
{
@@ -28,14 +28,14 @@
2828
"StateReasonData": {
2929
"triggeringAlarms": [
3030
{
31-
"arn": "arn:<partition>:cloudwatch:<region>:111111111111:alarm:HighCPUUsage",
31+
"arn": "arn:<partition>:cloudwatch:<region>:111111111111:alarm:HighMemoryUsage",
3232
"state": {
3333
"value": "INSUFFICIENT_DATA",
3434
"timestamp": "date"
3535
}
3636
},
3737
{
38-
"arn": "arn:<partition>:cloudwatch:<region>:111111111111:alarm:HighMemoryUsage",
38+
"arn": "arn:<partition>:cloudwatch:<region>:111111111111:alarm:HighCPUUsage",
3939
"state": {
4040
"value": "INSUFFICIENT_DATA",
4141
"timestamp": "date"
@@ -80,7 +80,7 @@
8080
"recorded-content": {}
8181
},
8282
"tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.py::test_alarm_ext_statistic": {
83-
"recorded-date": "27-11-2023, 10:09:46",
83+
"recorded-date": "29-08-2025, 09:42:28",
8484
"recorded-content": {
8585
"simple_alarm": [
8686
{

tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.validation.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,21 @@
33
"last_validated_date": "2023-09-25T08:28:42+00:00"
44
},
55
"tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.py::test_alarm_ext_statistic": {
6-
"last_validated_date": "2023-11-27T09:09:46+00:00"
6+
"last_validated_date": "2025-08-29T09:42:28+00:00",
7+
"durations_in_seconds": {
8+
"setup": 0.0,
9+
"call": 14.58,
10+
"teardown": 0.09,
11+
"total": 14.67
12+
}
713
},
814
"tests/aws/services/cloudwatch/resource_providers/test_cloudwatch.py::test_composite_alarm_creation": {
9-
"last_validated_date": "2024-07-16T10:43:30+00:00"
15+
"last_validated_date": "2025-08-29T09:42:14+00:00",
16+
"durations_in_seconds": {
17+
"setup": 1.03,
18+
"call": 64.76,
19+
"teardown": 0.1,
20+
"total": 65.89
21+
}
1022
}
1123
}

tests/aws/services/kinesis/resource_providers/test_kinesis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def test_default_parameters_kinesis(deploy_cfn_template, aws_client, snapshot):
6666
snapshot.add_transformer(snapshot.transform.key_value("StreamName"))
6767
snapshot.add_transformer(snapshot.transform.key_value("ShardId"))
6868
snapshot.add_transformer(snapshot.transform.key_value("StartingSequenceNumber"))
69+
snapshot.add_transformer(snapshot.transform.key_value("StartingHashKey"))
70+
snapshot.add_transformer(snapshot.transform.key_value("EndingHashKey"))
6971

7072

7173
@markers.aws.validated

tests/aws/services/kinesis/resource_providers/test_kinesis.snapshot.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"tests/aws/services/kinesis/resource_providers/test_kinesis.py::test_stream_creation": {
3-
"recorded-date": "12-09-2022, 14:11:29",
3+
"recorded-date": "29-08-2025, 09:32:40",
44
"recorded-content": {
55
"stack_output": {
66
"StreamArnFromAtt": "arn:<partition>:kinesis:<region>:111111111111:stream/<resource:1>",
@@ -40,10 +40,10 @@
4040
{
4141
"HashKeyRange": {
4242
"EndingHashKey": "<ending-hash-key:1>",
43-
"StartingHashKey": "0"
43+
"StartingHashKey": "starting_hash"
4444
},
4545
"SequenceNumberRange": {
46-
"StartingSequenceNumber": "<sequence-number:1>"
46+
"StartingSequenceNumber": "<starting_sequence_number:1>"
4747
},
4848
"ShardId": "shard-id"
4949
}
@@ -219,7 +219,7 @@
219219
}
220220
},
221221
"tests/aws/services/kinesis/resource_providers/test_kinesis.py::test_default_parameters_kinesis": {
222-
"recorded-date": "02-07-2024, 18:59:10",
222+
"recorded-date": "29-08-2025, 09:14:13",
223223
"recorded-content": {
224224
"describe_stream": {
225225
"StreamDescription": {
@@ -234,13 +234,13 @@
234234
"Shards": [
235235
{
236236
"HashKeyRange": {
237-
"EndingHashKey": "340282366920938463463374607431768211455",
238-
"StartingHashKey": "0"
237+
"EndingHashKey": "<ending-hash-key:1>",
238+
"StartingHashKey": "<starting-hash-key:1>"
239239
},
240240
"SequenceNumberRange": {
241-
"StartingSequenceNumber": "<starting-sequence-number:1>"
241+
"StartingSequenceNumber": "<starting_sequence_number:1>"
242242
},
243-
"ShardId": "<shard-id:1>"
243+
"ShardId": "<shard_id:1>"
244244
}
245245
],
246246
"StreamARN": "arn:<partition>:kinesis:<region>:111111111111:stream/<stream-name:1>",

tests/aws/services/kinesis/resource_providers/test_kinesis.validation.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
"last_validated_date": "2024-07-02T19:10:35+00:00"
44
},
55
"tests/aws/services/kinesis/resource_providers/test_kinesis.py::test_default_parameters_kinesis": {
6-
"last_validated_date": "2024-07-02T18:59:10+00:00"
6+
"last_validated_date": "2025-08-29T09:14:13+00:00",
7+
"durations_in_seconds": {
8+
"setup": 1.53,
9+
"call": 14.7,
10+
"teardown": 10.6,
11+
"total": 26.83
12+
}
713
},
814
"tests/aws/services/kinesis/resource_providers/test_kinesis.py::test_describe_template": {
915
"last_validated_date": "2023-05-22T07:25:32+00:00"
@@ -12,6 +18,12 @@
1218
"last_validated_date": "2024-07-02T19:48:27+00:00"
1319
},
1420
"tests/aws/services/kinesis/resource_providers/test_kinesis.py::test_stream_creation": {
15-
"last_validated_date": "2022-09-12T12:11:29+00:00"
21+
"last_validated_date": "2025-08-29T09:32:40+00:00",
22+
"durations_in_seconds": {
23+
"setup": 1.04,
24+
"call": 14.75,
25+
"teardown": 8.55,
26+
"total": 24.34
27+
}
1628
}
1729
}

tests/aws/services/opensearch/test_opensearch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def test_get_compatible_version_for_domain(self, opensearch_create_domain, aws_c
182182
"$..VPCOptions.Status.UpdateVersion",
183183
# added to skip parity change while moving the tests
184184
"$..ClusterConfig.ZoneAwarenessEnabled",
185+
"$..ClusterConfig.Options.ZoneAwarenessEnabled",
185186
]
186187
)
187188
def test_domain_lifecycle(

0 commit comments

Comments
 (0)