Skip to content

Commit 36331ff

Browse files
committed
temp
1 parent 53d3d50 commit 36331ff

13 files changed

+825
-628
lines changed

test/e2e/bootstrap_resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ def read_bootstrap_config(config_dir: Path, bootstrap_file_name: str = "bootstra
9191
path = config_dir / bootstrap_file_name
9292
with open(path, "r") as stream:
9393
bootstrap = yaml.safe_load(stream)
94-
return bootstrap
94+
return bootstrap

test/e2e/resources/replicationgroup_cmd_update.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
spec:
77
cacheNodeType: cache.t3.micro
88
engine: redis
9-
engineVersion: $ENGINE_VERSION
9+
engineVersion: "$ENGINE_VERSION"
1010
numNodeGroups: $NUM_NODE_GROUPS
1111
replicasPerNodeGroup: $REPLICAS_PER_NODE_GROUP
1212
description: cluster-mode disabled RG
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# CMD replication group for testing modification fault tolerance features (multi AZ, auto failover, primary promotion)
2+
apiVersion: elasticache.services.k8s.aws/v1alpha1
3+
kind: ReplicationGroup
4+
metadata:
5+
name: $RG_ID
6+
spec:
7+
automaticFailoverEnabled: $AF_ENABLED
8+
cacheNodeType: cache.t3.micro
9+
engine: redis
10+
multiAZEnabled: $MAZ_ENABLED
11+
numNodeGroups: 1
12+
replicasPerNodeGroup: 1
13+
description: description
14+
replicationGroupID: $RG_ID
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
apiVersion: elasticache.services.k8s.aws/v1alpha1
2+
kind: ReplicationGroup
3+
metadata:
4+
name: $RG_ID
5+
spec:
6+
cacheNodeType: cache.t3.micro
7+
engine: redis
8+
description: test replication group for input field coverage
9+
replicationGroupID: $RG_ID
10+
kmsKeyId: $KMS_KEY_ID
11+
notificationTopicArn: $SNS_TOPIC_ARN
12+
securityGroupIDs:
13+
- $SG_ID
14+
userGroupIds:
15+
- $USERGROUP_ID
16+
logDeliveryConfigurations:
17+
- logType: slow-log
18+
destinationType: cloudwatch-logs
19+
destinationDetails:
20+
cloudWatchLogsDetails:
21+
logGroup: $LOG_GROUP
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
apiVersion: elasticache.services.k8s.aws/v1alpha1
2+
kind: ReplicationGroup
3+
metadata:
4+
name: $RG_ID
5+
spec:
6+
cacheNodeType: cache.t3.micro
7+
engine: redis
8+
numNodeGroups: 2
9+
preferredMaintenanceWindow: $PMW
10+
replicasPerNodeGroup: 1
11+
description: $DESCRIPTION
12+
replicationGroupID: $RG_ID
13+
snapshotRetentionLimit: $SRL
14+
snapshotWindow: $SW
15+
tags:
16+
- key: tag_to_remove
17+
value: should_be_removed
18+
- key: tag_to_update
19+
value: old_value

test/e2e/service_cleanup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ def service_cleanup(config: dict):
148148

149149
if __name__ == "__main__":
150150
bootstrap_config = read_bootstrap_config(bootstrap_directory)
151-
service_cleanup(bootstrap_config)
151+
service_cleanup(bootstrap_config)

0 commit comments

Comments
 (0)