Skip to content

Commit

Permalink
Fixes flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrie Chen committed Jan 25, 2023
1 parent d2483d2 commit 696a07a
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 60 deletions.
4 changes: 2 additions & 2 deletions test/e2e/scenarios/ACL/acl_create_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ steps:
userNames:
- userone$RANDOM_SUFFIX
- usertwo$RANDOM_SUFFIX
wait:
wait: 180
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 180
- id: "UPDATE_ACL"
description: "Update userNames"
patch:
Expand Down
24 changes: 12 additions & 12 deletions test/e2e/scenarios/ACL/acl_terminal_condition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ description: "In this test we create User and create/update ACL to validate term
# - slow
# - blocked
steps:
- id: "USER_ONE_CREATE"
description: "Create User One"
- id: "USER_CREATE"
description: "Create User"
create:
apiVersion: $CRD_GROUP/$CRD_VERSION
kind: User
metadata:
name: userone$RANDOM_SUFFIX
name: user$RANDOM_SUFFIX
spec:
name: userone$RANDOM_SUFFIX
name: user$RANDOM_SUFFIX
accessString: on +get
authenticationMode:
type_: password
Expand Down Expand Up @@ -42,7 +42,7 @@ steps:
ACK.Terminal:
status: "True"
timeout: 180
- id: "UPDATE_ACL"
- id: "UPDATE_ACL_VALID"
description: "Update userNames"
patch:
apiVersion: $CRD_GROUP/$CRD_VERSION
Expand All @@ -51,14 +51,14 @@ steps:
name: acl$RANDOM_SUFFIX
spec:
userNames:
- userone$RANDOM_SUFFIX
wait:
- user$RANDOM_SUFFIX
wait: 180
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 180
- id: "UPDATE_ACL"
- id: "UPDATE_ACL_INVALID"
description: "Update userNames to invalid"
patch:
apiVersion: $CRD_GROUP/$CRD_VERSION
Expand All @@ -81,10 +81,10 @@ steps:
kind: ACL
metadata:
name: acl$RANDOM_SUFFIX
- id: "USER_DELETE_ONE"
description: "Delete User one"
- id: "USER_DELETE"
description: "Delete User"
delete:
apiVersion: $CRD_GROUP/$CRD_VERSION
kind: User
metadata:
name: userone$RANDOM_SUFFIX
name: user$RANDOM_SUFFIX
10 changes: 5 additions & 5 deletions test/e2e/scenarios/ACL/acl_update_with_tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ steps:
name: acl$RANDOM_SUFFIX
userNames:
- user$RANDOM_SUFFIX
wait:
wait: 180
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 180
- id: "ACL_ADD_TAGS"
description: "Add tags in ACL"
patch:
Expand All @@ -60,7 +60,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "ACL_DELETE_TAGS"
description: "Delete tags in ACL"
patch:
Expand All @@ -77,7 +77,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "ACL_ADD_AND_DELETE_TAGS"
description: "Add some tags and delete some tags in ACL"
patch:
Expand All @@ -94,7 +94,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "ACL_DELETE"
description: "Delete ACL"
delete:
Expand Down
35 changes: 14 additions & 21 deletions test/e2e/scenarios/Cluster/cluster_create_update.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: "CREATE_UPDATE"
id: "CLUSTER_CREATE_UPDATE"
description: "In this test we create Cluster and update it"
#marks:
# - slow
Expand Down Expand Up @@ -63,15 +63,15 @@ steps:
status: "True"
timeout: 7200

- id: "USER_ONE_CREATE"
description: "Create User ONE"
- id: "USER_CREATE"
description: "Create User"
create:
apiVersion: $CRD_GROUP/$CRD_VERSION
kind: User
metadata:
name: userone$RANDOM_SUFFIX
name: user$RANDOM_SUFFIX
spec:
name: userone$RANDOM_SUFFIX
name: user$RANDOM_SUFFIX
accessString: on +get
authenticationMode:
type_: password
Expand All @@ -94,13 +94,13 @@ steps:
spec:
name: acl$RANDOM_SUFFIX
userNames:
- userone$RANDOM_SUFFIX
wait:
- user$RANDOM_SUFFIX
wait: 180
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 180

- id: "UPDATE_ACL"
description: "Update ACL"
Expand All @@ -116,7 +116,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 7200
timeout: 180

- id: "PG_INITIAL_CREATE"
description: "PG with activerehashing as no"
Expand All @@ -137,7 +137,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180

- id: "UPDATE_PG"
description: "Update PG"
Expand All @@ -153,7 +153,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 7200
timeout: 180

- id: "DELETE_CLUSTER"
description: "Delete the cluster"
Expand All @@ -177,17 +177,10 @@ steps:
kind: ACL
metadata:
name: acl$RANDOM_SUFFIX
- id: "USER_DELETE_ONE"
description: "Delete User one"
delete:
apiVersion: $CRD_GROUP/$CRD_VERSION
kind: User
metadata:
name: userone$RANDOM_SUFFIX
- id: "USER_DELETE_TWO"
description: "Delete User two"
- id: "USER_DELETE"
description: "Delete User"
delete:
apiVersion: $CRD_GROUP/$CRD_VERSION
kind: User
metadata:
name: usertwo$RANDOM_SUFFIX
name: user$RANDOM_SUFFIX
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: "SCALE_IN_SCALE_UP_INCREASE_REPLICA"
id: "CLUSTER_SCALE_IN_SCALE_UP_INCREASE_REPLICA"
description: "In this test we create Cluster and update scale in, scale up and increase replica"
#marks:
# - slow
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
id: "SCALE_OUT_SCALE_DOWN_DECREASE_REPLICA"
id: "CLUSTER_SCALE_OUT_SCALE_DOWN_DECREASE_REPLICA"
description: "In this test we create Cluster and update scale out, scale down and decrease replica"
#marks:
# - slow
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/scenarios/Snapshot/snapshot_copy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ steps:
spec:
clusterName: $SNAPSHOT_CLUSTER_NAME2
name: snapshot$RANDOM_SUFFIX
wait:
wait: 3600
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 3600
- id: "COPY_SNAPSHOT"
description: "Ack Copy Snapshot"
create:
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/scenarios/Snapshot/snapshot_create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ steps:
spec:
clusterName: $SNAPSHOT_CLUSTER_NAME1
name: snapshot$RANDOM_SUFFIX
wait:
wait: 3600
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 3600
- id: "DELETE_SNAPSHOT"
description: "Delete snapshot"
delete:
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/scenarios/Snapshot/snapshot_update_with_tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ steps:
nodeType: db.t4g.small
aclName: open-access
numShards: 1
wait:
wait: 1200
expect:
status:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 7200
- id: "SNAPSHOT_INITIAL_CREATE"
description: "Create snapshot with no tags"
create:
Expand Down
10 changes: 5 additions & 5 deletions test/e2e/scenarios/User/user_create_update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "USER_UPDATE_ACCESS_STRING"
description: "Update AccessString"
patch:
Expand All @@ -36,7 +36,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "USER_UPDATE_PASSWORD"
description: "Update Password"
patch:
Expand All @@ -51,7 +51,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "USER_UPDATE_ACCESS_STRING_AND_SECRET"
description: "Update Secret and AccessString"
patch:
Expand All @@ -67,7 +67,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "REAPPLY_SPEC"
description: "Update Secret and AccessString we should not see any errors"
patch:
Expand All @@ -83,7 +83,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "DELETE_USER"
description: "Delete User"
delete: user$RANDOM_SUFFIX
6 changes: 3 additions & 3 deletions test/e2e/scenarios/User/user_terminal_conditions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
conditions:
ACK.Terminal:
status: "True"
timeout: 100
timeout: 180
- id: "USER_UPDATE_ACCESS_STRING"
description: "Update AccessString"
patch:
Expand All @@ -36,7 +36,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "USER_UPDATE_INCORRECT_ACCESS_STRING"
description: "Update to incorrect access string"
patch:
Expand All @@ -47,7 +47,7 @@ steps:
conditions:
ACK.Terminal:
status: "True"
timeout: 100
timeout: 180
- id: "DELETE_USER"
description: "Delete User"
delete: user$RANDOM_SUFFIX
8 changes: 4 additions & 4 deletions test/e2e/scenarios/User/user_update_with_tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "USER_ADD_TAGS"
description: "Add tags in User"
patch:
Expand All @@ -40,7 +40,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "USER_DELETE_TAGS"
description: "Delete tags in User"
patch:
Expand All @@ -53,7 +53,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "SG_ADD_AND_DELETE_TAGS"
description: "Add some tags and delete some tags in User"
patch:
Expand All @@ -66,7 +66,7 @@ steps:
conditions:
ACK.ResourceSynced:
status: "True"
timeout: 100
timeout: 180
- id: "DELETE_USER"
description: "Delete User"
delete: user$RANDOM_SUFFIX

0 comments on commit 696a07a

Please sign in to comment.