diff --git a/integration/config-chain/expected/.ship/release.yml b/integration/config-chain/expected/.ship/release.yml new file mode 100644 index 000000000..2b3dac331 --- /dev/null +++ b/integration/config-chain/expected/.ship/release.yml @@ -0,0 +1,40 @@ + +--- +assets: + v1: + - inline: + contents: | + #!/bin/bash + echo "t2: {{repl ConfigOption "t2_option" }}" + echo "t3: {{repl ConfigOption "t3_option" }}" + dest: ./scripts/install.sh + mode: 0777 + - inline: + contents: | + #!/bin/bash + echo "testing testing {{repl ConfigOption "option" }}" + dest: ./scripts/test.sh + mode: 0777 + +config: + v1: + - name: option_chaining + title: Config Option Chaining + items: + - name: option + title: Base Option + type: text + - name: t2_option + title: Readonly Derivative + readonly: true + value: '{{repl ConfigOption "option" }}_{{repl ConfigOption "option" }}' + type: text + - name: t3_option + title: Tier Three Readonly Derivative + readonly: true + value: '{{repl ConfigOption "t2_option" }} + {{repl ConfigOption "option" }}' + type: text + +lifecycle: + v1: + - render: {} diff --git a/integration/config-chain/expected/.ship/state.json b/integration/config-chain/expected/.ship/state.json new file mode 100644 index 000000000..bf717b624 --- /dev/null +++ b/integration/config-chain/expected/.ship/state.json @@ -0,0 +1 @@ +{"option":"abc123","t2_option":"abc123_abc123","t3_option":"abc123_abc123 + abc123"} \ No newline at end of file diff --git a/integration/config-chain/expected/installer/scripts/install.sh b/integration/config-chain/expected/installer/scripts/install.sh new file mode 100644 index 000000000..06ae29844 --- /dev/null +++ b/integration/config-chain/expected/installer/scripts/install.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo "t2: abc123_abc123" +echo "t3: abc123_abc123 + abc123" diff --git a/integration/config-chain/expected/installer/scripts/test.sh b/integration/config-chain/expected/installer/scripts/test.sh new file mode 100644 index 000000000..848e8d217 --- /dev/null +++ b/integration/config-chain/expected/installer/scripts/test.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo "testing testing abc123" diff --git a/integration/config-chain/input/.ship/release.yml b/integration/config-chain/input/.ship/release.yml new file mode 100644 index 000000000..2b3dac331 --- /dev/null +++ b/integration/config-chain/input/.ship/release.yml @@ -0,0 +1,40 @@ + +--- +assets: + v1: + - inline: + contents: | + #!/bin/bash + echo "t2: {{repl ConfigOption "t2_option" }}" + echo "t3: {{repl ConfigOption "t3_option" }}" + dest: ./scripts/install.sh + mode: 0777 + - inline: + contents: | + #!/bin/bash + echo "testing testing {{repl ConfigOption "option" }}" + dest: ./scripts/test.sh + mode: 0777 + +config: + v1: + - name: option_chaining + title: Config Option Chaining + items: + - name: option + title: Base Option + type: text + - name: t2_option + title: Readonly Derivative + readonly: true + value: '{{repl ConfigOption "option" }}_{{repl ConfigOption "option" }}' + type: text + - name: t3_option + title: Tier Three Readonly Derivative + readonly: true + value: '{{repl ConfigOption "t2_option" }} + {{repl ConfigOption "option" }}' + type: text + +lifecycle: + v1: + - render: {} diff --git a/integration/config-chain/input/.ship/state.json b/integration/config-chain/input/.ship/state.json new file mode 100644 index 000000000..bf717b624 --- /dev/null +++ b/integration/config-chain/input/.ship/state.json @@ -0,0 +1 @@ +{"option":"abc123","t2_option":"abc123_abc123","t3_option":"abc123_abc123 + abc123"} \ No newline at end of file diff --git a/integration/config-chain/metadata.yaml b/integration/config-chain/metadata.yaml new file mode 100644 index 000000000..fb2f23c2e --- /dev/null +++ b/integration/config-chain/metadata.yaml @@ -0,0 +1,3 @@ +customer_id: "-Am-_6i5pw0u4AbspOwKN4lZUCn49u_G" +installation_id: "t6-uzytbbkSoCiLtEfNO62LDIRLFec-2" +release_version: "0.0.1-test2" \ No newline at end of file