Skip to content

Commit e95ffea

Browse files
committed
Revert "test: update test cases and add random component fixtures"
This reverts commit 2fab060.
1 parent 9587b48 commit e95ffea

File tree

5 files changed

+8
-24
lines changed

5 files changed

+8
-24
lines changed

pkg/stack/stack_processor_test.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,9 @@ func TestStackProcessorRelativePaths(t *testing.T) {
239239
mapConfig1, err := u.UnmarshalYAML[schema.AtmosSectionMapType](listResult[0])
240240
assert.Nil(t, err)
241241

242-
// Check components
243242
components := mapConfig1["components"].(map[string]any)
244243
terraformComponents := components["terraform"].(map[string]any)
245244

246-
randomComponent := terraformComponents["random"].(map[string]any)
247-
assert.NotNil(t, randomComponent)
248-
249-
vars := randomComponent["vars"].(map[string]any)
250-
assert.Equal(t, "dev", vars["stage"])
251-
assert.Equal(t, "ue2", vars["environment"])
252-
assert.Equal(t, "platform", vars["tenant"])
253-
assert.Equal(t, "test-foo", vars["foo"])
254-
assert.Equal(t, "test-bar", vars["bar"])
255-
assert.Equal(t, "test-baz", vars["baz"])
245+
myappComponent := terraformComponents["myapp"].(map[string]any)
246+
assert.NotNil(t, myappComponent)
256247
}

tests/fixtures/scenarios/atmos-functions/atmos.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ stacks:
1212
base_path: "stacks"
1313
included_paths:
1414
- "deploy/**/*"
15-
- "workflows/**/*"
1615
excluded_paths:
1716
- "**/_defaults.yaml"
1817
name_pattern: "{stage}"

tests/fixtures/scenarios/relative-paths/stacks/catalog/random.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# yaml-language-server: $schema=https://atmos.tools/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json
2+
13
components:
24
terraform:
35
random:

tests/fixtures/scenarios/relative-paths/stacks/catalog/random/defaults.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/test-cases/atmos-functions.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ tests:
66
workdir: "fixtures/scenarios/atmos-functions/"
77
command: "atmos"
88
args:
9-
- "workflow"
9+
- "terraform"
1010
- "deploy"
11+
- "component-4"
1112
- "-s"
1213
- "nonprod"
1314
skip:
@@ -29,8 +30,9 @@ tests:
2930
workdir: "fixtures/scenarios/atmos-functions/"
3031
command: "atmos"
3132
args:
32-
- "workflow"
33+
- "terraform"
3334
- "deploy"
35+
- "component-4"
3436
- "-s"
3537
- "nonprod"
3638
expect:

0 commit comments

Comments
 (0)