Skip to content

Commit ae4126d

Browse files
fixing CI for paused test cluster
1 parent 19ae278 commit ae4126d

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

cfn-resources/test/e2e/cluster/cluster_pause.json.template

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@
1010
"Profile": "{{ .Profile }}",
1111
"ClusterType": "REPLICASET",
1212
"Paused": "{{ .Paused }}",
13-
"ReplicationSpecs": [
14-
{
15-
"NumShards": 1,
16-
"AdvancedRegionConfigs": [
17-
{
18-
"RegionName": "US_EAST_1",
19-
"Priority": 7,
20-
"ProviderName": "AWS",
21-
"ElectableSpecs": {
22-
"EbsVolumeType": "STANDARD",
23-
"InstanceSize": "M10",
24-
"NodeCount": 3
13+
"ReplicationSpecs": [
14+
{
15+
"NumShards": 1,
16+
"AdvancedRegionConfigs": [
17+
{
18+
"RegionName": "US_EAST_1",
19+
"Priority": 7,
20+
"ProviderName": "AWS",
21+
"ElectableSpecs": {
22+
"EbsVolumeType": "STANDARD",
23+
"InstanceSize": "M10",
24+
"NodeCount": 3
25+
}
2526
}
26-
}
27-
]
28-
}
29-
]
27+
]
28+
}
29+
]
3030
}
3131
}
3232
},

cfn-resources/test/e2e/cluster/cluster_pause_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ type pauseTestCluster struct {
4141
}
4242

4343
const (
44-
pauseResourceDirectory = "cluster"
45-
pauseCfnTemplatePath = "cluster_pause.json.template"
44+
pauseCfnTemplatePath = "cluster_pause.json.template"
4645
)
4746

4847
// Replication specs are hardcoded in the CFN template for this test.
@@ -90,7 +89,7 @@ func setupPauseSuite(t *testing.T) *pauseTestContext {
9089

9190
func (c *pauseTestContext) setUp(t *testing.T) {
9291
t.Helper()
93-
c.resourceCtx = utility.InitResourceCtx(pauseStackName, pauseRandSuffix, os.Getenv("RESOURCE_TYPE_NAME_FOR_E2E"), pauseResourceDirectory)
92+
c.resourceCtx = utility.InitResourceCtx(pauseStackName, pauseRandSuffix, resourceTypeName, resourceDirectory)
9493
c.cfnClient, _ = utility.NewClients(t)
9594
_, c.atlasClient20231115014 = utility.NewClients20231115014(t)
9695

0 commit comments

Comments
 (0)