Skip to content

Commit fdf9ff3

Browse files
committed
fix: increate test wait time
1 parent 6b22f03 commit fdf9ff3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Diff for: pkg/resource/table/hooks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ func (rm *resourceManager) setContributorInsights(
779779
// If the name ends in ED (ENABLED, DISABLED) just assign the value
780780
endsWithED := false
781781
if ko.Spec.ContributorInsights != nil {
782-
endsWithED = strings.HasSuffix(*ko.Spec.TableName, "ED")
782+
endsWithED = strings.HasSuffix(*ko.Spec.ContributorInsights, "ED")
783783
}
784784
if endsWithED {
785785
ko.Spec.ContributorInsights = aws.String(string(resp.ContributorInsightsStatus))

Diff for: test/e2e/resources/table_insights.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ spec:
77
tableName: $TABLE_NAME
88
billingMode: PAY_PER_REQUEST
99
tableClass: STANDARD
10-
contributorInsights: ENABLE
10+
contributorInsights: ENABLED
1111
attributeDefinitions:
1212
- attributeName: Bill
1313
attributeType: S

Diff for: test/e2e/tests/test_table.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,8 @@ def test_enable_ttl(self, table_lsi):
279279
# Patch k8s resource
280280
k8s.patch_custom_resource(ref, updates)
281281

282+
time.sleep(MODIFY_WAIT_AFTER_SECONDS)
283+
282284
table.wait_until(
283285
table_name,
284286
table.ttl_on_attribute_matches("ForumName"),
@@ -480,7 +482,7 @@ def test_update_insights(self, table_insights):
480482

481483
# Check DynamoDB Table exists
482484
assert self.table_exists(table_name)
483-
assert cr['spec']['contributorInsights'] == "ENABLE"
485+
assert cr['spec']['contributorInsights'] == "ENABLED"
484486
assert self.table_insight_status(table_name, "ENABLED")
485487

486488
# Set provisionedThroughput

0 commit comments

Comments
 (0)