diff options
| author | Shulhan <ms@kilabit.info> | 2023-09-26 00:29:10 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2023-09-26 00:30:20 +0700 |
| commit | 40b9fe9b854ca90ed55e13c8fe74e13a506b76d1 (patch) | |
| tree | c7886becc75cda8ccf980af728ebbd5db7b053aa /testdata/local | |
| parent | 98f212f8cd74cafc15b0eb9716853940aa891bf6 (diff) | |
| download | awwan-40b9fe9b854ca90ed55e13c8fe74e13a506b76d1.tar.xz | |
testdata: rename "encrypt" to "local"
We change the directory name because the "encrpyt" is not specific to
encryption only but only for local.
Diffstat (limited to 'testdata/local')
| -rw-r--r-- | testdata/local/.awwan.env.plain | 2 | ||||
| -rw-r--r-- | testdata/local/.awwan.env.vault | bin | 0 -> 384 bytes | |||
| l--------- | testdata/local/.awwan.key | 1 | ||||
| -rw-r--r-- | testdata/local/.ssh/empty | 0 | ||||
| -rw-r--r-- | testdata/local/awwan.env | 2 | ||||
| -rw-r--r-- | testdata/local/encrypted.txt.org | 2 | ||||
| -rw-r--r-- | testdata/local/encrypted.txt.vault | 2 | ||||
| -rw-r--r-- | testdata/local/local.aww | 5 | ||||
| -rw-r--r-- | testdata/local/plain.txt | 2 | ||||
| -rw-r--r-- | testdata/local/sub/.awwan.env.plain | 2 | ||||
| -rw-r--r-- | testdata/local/sub/.awwan.env.vault | bin | 0 -> 384 bytes | |||
| -rw-r--r-- | testdata/local/sub/local.aww | 1 | ||||
| -rw-r--r-- | testdata/local/test.data | 17 | ||||
| -rw-r--r-- | testdata/local/tmp/.gitignore | 2 |
14 files changed, 38 insertions, 0 deletions
diff --git a/testdata/local/.awwan.env.plain b/testdata/local/.awwan.env.plain new file mode 100644 index 0000000..26ed285 --- /dev/null +++ b/testdata/local/.awwan.env.plain @@ -0,0 +1,2 @@ +[secret] +pass = this_is_a_secret diff --git a/testdata/local/.awwan.env.vault b/testdata/local/.awwan.env.vault Binary files differnew file mode 100644 index 0000000..a4e4bdd --- /dev/null +++ b/testdata/local/.awwan.env.vault diff --git a/testdata/local/.awwan.key b/testdata/local/.awwan.key new file mode 120000 index 0000000..aa99eff --- /dev/null +++ b/testdata/local/.awwan.key @@ -0,0 +1 @@ +../encrypt-with-passphrase/.awwan.key
\ No newline at end of file diff --git a/testdata/local/.ssh/empty b/testdata/local/.ssh/empty new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/testdata/local/.ssh/empty diff --git a/testdata/local/awwan.env b/testdata/local/awwan.env new file mode 100644 index 0000000..81b55e7 --- /dev/null +++ b/testdata/local/awwan.env @@ -0,0 +1,2 @@ +[host] +name = encrypt diff --git a/testdata/local/encrypted.txt.org b/testdata/local/encrypted.txt.org new file mode 100644 index 0000000..de6797e --- /dev/null +++ b/testdata/local/encrypted.txt.org @@ -0,0 +1,2 @@ +The host name is {{.Val "host::name"}}. +The secret password is {{.Val "secret::pass"}}. diff --git a/testdata/local/encrypted.txt.vault b/testdata/local/encrypted.txt.vault new file mode 100644 index 0000000..43cb223 --- /dev/null +++ b/testdata/local/encrypted.txt.vault @@ -0,0 +1,2 @@ +E{ +;_%uۂK?C5+BclP8"b5mD B!PA\`2TW,
d<.$V-{S3UTָgjj@*qAXBb42$TTnX@OKwa$}j|Hʹ#Ma15m1M!+(,k:ctsB0l7P췧o6J'<Tqsp`Qo>i;_6zVijS m2D?&73'yf=T&aj~A#!Qu@Jc?qcp9 (&,ʑoN1BTNN|YG%Xt
\ No newline at end of file diff --git a/testdata/local/local.aww b/testdata/local/local.aww new file mode 100644 index 0000000..a77ec42 --- /dev/null +++ b/testdata/local/local.aww @@ -0,0 +1,5 @@ +echo {{.Val "secret::pass"}} + +#put: {{.ScriptDir}}/plain.txt {{.ScriptDir}}/tmp/plain.txt + +#put: {{.ScriptDir}}/encrypted.txt {{.ScriptDir}}/tmp/decrypted.txt diff --git a/testdata/local/plain.txt b/testdata/local/plain.txt new file mode 100644 index 0000000..de6797e --- /dev/null +++ b/testdata/local/plain.txt @@ -0,0 +1,2 @@ +The host name is {{.Val "host::name"}}. +The secret password is {{.Val "secret::pass"}}. diff --git a/testdata/local/sub/.awwan.env.plain b/testdata/local/sub/.awwan.env.plain new file mode 100644 index 0000000..02b2ae0 --- /dev/null +++ b/testdata/local/sub/.awwan.env.plain @@ -0,0 +1,2 @@ +[secret] +pass = this_is_a_secret_in_sub diff --git a/testdata/local/sub/.awwan.env.vault b/testdata/local/sub/.awwan.env.vault Binary files differnew file mode 100644 index 0000000..21aa5b1 --- /dev/null +++ b/testdata/local/sub/.awwan.env.vault diff --git a/testdata/local/sub/local.aww b/testdata/local/sub/local.aww new file mode 100644 index 0000000..d9127db --- /dev/null +++ b/testdata/local/sub/local.aww @@ -0,0 +1 @@ +echo {{.Val "secret::pass"}} diff --git a/testdata/local/test.data b/testdata/local/test.data new file mode 100644 index 0000000..330e646 --- /dev/null +++ b/testdata/local/test.data @@ -0,0 +1,17 @@ +<<< local.aww:1 + +--> local: 1: echo this_is_a_secret +this_is_a_secret + +<<< sub/local.aww:1 + +--> local: 1: echo this_is_a_secret_in_sub +this_is_a_secret_in_sub + +<<< tmp/plain.txt +The host name is encrypt. +The secret password is . + +<<< tmp/decrypted.txt +The host name is encrypt. +The secret password is this_is_a_secret. diff --git a/testdata/local/tmp/.gitignore b/testdata/local/tmp/.gitignore new file mode 100644 index 0000000..120f485 --- /dev/null +++ b/testdata/local/tmp/.gitignore @@ -0,0 +1,2 @@ +* +!/.gitignore |
