summaryrefslogtreecommitdiffstats
path: root/testsuite/Testsrc/Testsbin/bcfg2-crypt
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/Testsrc/Testsbin/bcfg2-crypt')
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/all-basic.xml12
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/basic-des-cbc.crypt1
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/basic.crypt1
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/basic2.crypt1
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus-forced.xml5
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus.xml5
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/complex.crypt1
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext9
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-all.xml12
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-xpath.xml12
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext.xml18
-rw-r--r--testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext2.xml18
12 files changed, 95 insertions, 0 deletions
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/all-basic.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/all-basic.xml
new file mode 100644
index 000000000..ce68300b6
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/all-basic.xml
@@ -0,0 +1,12 @@
+<Properties>
+ <Foo name="1" encrypted="basic">U2FsdGVkX19C6Cy0nM0mlcGGBjqBMAC+GqyPfLpqgT0=</Foo>
+ <Bar name="1" encrypted="basic">U2FsdGVkX18KUHJTHdrgz3gWtNA5U3g3gq0i/AsdCVE=</Bar>
+ <Foo name="2" encrypted="basic">U2FsdGVkX1+9nUFxmbl8UJh1t5fWo4cQQa5nQm8hVtw=</Foo>
+ <Group name="test">
+ <Bar name="2" encrypted="basic">U2FsdGVkX18tScJs1si9y45NxPkjYj66Ee+TsYDZAd0=</Bar>
+ <Foo name="3" encrypted="basic">U2FsdGVkX19q3USU1cnvgfV8roHeSNSQ2bCMD1CCR3jE0e53aT71ATtqHmfsJfDnTgQ28xbKGZhAwoML8ixXkdkyqnsSF69bnIwebaI4qqYXFA2FWF1Cop3bYEV67m6dSM9BkSluKIcs7VdPRANE71OQnd9P2cQbMig50IkBtuE3El8bnc+n4E0k31NT7ZZJ9s/9FJMHg/AfIjvB4KgMqylHcfT43gGICeq4JYPKIsxYjKq0bzFISPBgztD1++YTdCKbJDtjNJJOlqanB3LsBR3PQt6rliWqqPVT3aLP8BU/gIcGE3oyyce04ULxNGTPqFlWgw2r7RopygqgZbzTgU21thzef7bXRi/NATQpXkM70BdCLwRvRNaC3JrMY/z4k0//QliTiNYPNejpGvwezHf99PTN7VPWMhQyONSpLO905KmEJYRt1BXx8p+72b1Q/1S/QFfzU8JU3MO4yiLFf6kyB6nS+pCA40g/UfwKLQI2Fr6Oi5acOK7SRTXqSmxhI+96TQms6bWmm889BO8QOfiuAI1CvHWEBljPACXydcM9wACjhBvpra41UzVgkzadaUO8yBV0Z0bLVHuyIdI1I78vgrkd99tJvC/AmYazEwM=</Foo>
+ </Group>
+ <Group name="test2">
+ <Bar name="3" encrypted="basic">U2FsdGVkX19aE/IqfkkhgkbhA0i9cb1PYp7tdTmfidg=<Foo name="4" encrypted="basic">U2FsdGVkX1+J4nhfxE5GjwDF1PzOjw2q5e5vrcFZyCQ=</Foo></Bar>
+ </Group>
+</Properties>
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic-des-cbc.crypt b/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic-des-cbc.crypt
new file mode 100644
index 000000000..31aa80e26
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic-des-cbc.crypt
@@ -0,0 +1 @@
+U2FsdGVkX1/2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ASQpz5dll3Z1U/5vKqzrY8/88/SLINPP8nQ6mV1JbnXuRS8CD/LbzI3T0CTDKrsxQkkFsArtdUpYRHBqsPYyuikmG1GGeEtRznkNqcE2EXKoNdIU4Rm6GIK6thes3bYqnp5MK/HLQ2vKkOraSR3IyQJXW7EUVCqZk3M5wFGem+8aEw3sjYljrxNzSAB2EPitnxpBp21Mfu+6SmlGWOXANBNSBG630JzNgfqh31SKrWCw6jyFYrI43UXJEsAdEerfKK/UKBs2rb7Y/DGNF1lM9LDxH2nQ5ByELn/PxxpRdKYoXgsHmPwBHMuXhjPXxY1uw25GZgVVk58GR/l/Q78sRiqiwr2D0rriUTQfLW+bqpxEbdqxJjHa/rGjZQffHC08/xqY9P2FHqcE9VIGH3OdpoM6FKQ/NfBF8FMnkp756JC+nUVgFPTQ5Wn331DlUGyf4MVH6mKskUjOKGCnbt7GnG2K64eFcs0q8k0UK4f8lACtJEA5zSX2qNhPdkpG/yHyzvvLuX2p7j53QyIvX1Nz9k7ZoqD1rjhjDSsfV9C36KORyzqm/MKq8v8YVhEfnGI2UtWM=
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic.crypt b/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic.crypt
new file mode 100644
index 000000000..386544ca8
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic.crypt
@@ -0,0 +1 @@
+U2FsdGVkX1+fzWyB9BSYjGZTIEw6WGCFJvgWeS5BlGSVcLK6cDuoajcTj47falmJhrCg6uew41tps12UDaGe8Uaw8gzZnqGBCRYYSCazD3mqGsUQDbHdjRdsN5C1uTBlrUt52GuqP0EHEmJrqcmNYCkFw2KM8/RCflpuHkEj3L44PTsuq/TsxUmNLkn01z+U9Y1qK13bl60Gn0T3EYkI1hcO2JzyHW0HHwwe2E9xRB1u56Xj9xL8EozshlafTN2J9iIysG5j7P2dlmGHBQtVgrvbgZ8SycmiIOSenRgpln/Ax9WAwcXXbcvCcSUqxA5CrjfQAk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jf6wQgxzFe9eo1BXypxtx+y5jEuN788d0jwLrZ8bF2KrnbzOinch2WkU+7eFt4pHCClX38hQ/d28q8UOyFEbZp1N9Guwtun3NzX4V0DbcZxIxJDGo45uPLDcT6r9dhAUwrfoM+atTEOM3K4BOBEyxehs7NoZrObWdy0FcrKokCT3iHOqImhVdJDnDYDtfqLFi/iycZ8mUnt6eF7oNLLh/TdB+HgC5bf684YPGYCGznAfjOVE8eIKsG5l6DqGDBxx4fh+Hb563aX/UA8tKrnMhcD/A==
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic2.crypt b/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic2.crypt
new file mode 100644
index 000000000..b26bd91a3
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/basic2.crypt
@@ -0,0 +1 @@
+U2FsdGVkX189QQFkAJ2EZErSsJ7h16U71KMeKEHIC803ktBOL0sBOEdWPKN/0G7Jt4mchdGSeBBCFcxGIJ7yGvhThWxgAsCNCZCPbCCGW7NQ8b01+WRzeggfHYuFw49Mwvr9Dqh97z6HelvvoNr90DW/IuxGrJgKzeP2obbdUn0MRuBNx//JjU9lTDRSCU6i5HR/IJvMdYT9iR7icJa0Wjtl6UXjoZXf2azL1jRLrtG2QtMmUI0PQcg9IDlH1Eiosut2LOcmCCThzR96ubQqjRCAggWJqR1x7qe5+Llkq47jPauWuD1RoH7OLTm1EcVRd68ZtfYPHK8tiu3xZqcmnHC5bHedM9hdwiyDqm/qhdnz5cWA4rlWp4VAFTmJzyt4VsgTTXDbCbRHtU0Ml7E36lg4fMekfql1XT+tiNxmoedAWGOXXbvf8rdyH6EZ2uFBhPtX+2kV66XsNBALAizqwVqpw/wdKVkWGRMsi1p8nE4wj6/WcHBd7YYJBig4UNyqdPTsn2dMhKi3GbzgNvkmNo+V6G3IZ0cqy4tBZkBW3izVfN8e5BEUZ6BR4V8uC/NvTSd7fcJSJZROw/RR2zdTo7qDqgzz27aZrPghDfmLYB26VGn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Testsbin/bcfg2-crypt/bogus-forced.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus-forced.xml
new file mode 100644
index 000000000..d5d0eb8d9
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus-forced.xml
@@ -0,0 +1,5 @@
+<Bogus>
+ <!-- This is not a real properties file; we use it to test forcing
+ bcfg2-crypt to treat it like one -->
+ <Test encrypted="basic">U2FsdGVkX1+uFQUijBDQpGBdTroNS6nl8lPUSeHcWJw=</Test>
+</Bogus>
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus.xml
new file mode 100644
index 000000000..8c83afa69
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/bogus.xml
@@ -0,0 +1,5 @@
+<Bogus>
+ <!-- This is not a real properties file; we use it to test forcing
+ bcfg2-crypt to treat it like one -->
+ <Test encrypted="basic">some text</Test>
+</Bogus>
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/complex.crypt b/testsuite/Testsrc/Testsbin/bcfg2-crypt/complex.crypt
new file mode 100644
index 000000000..cd4ada4bf
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/complex.crypt
@@ -0,0 +1 @@
+U2FsdGVkX1+pB62f8PRmn7i+qzc0nVvezv4sL6KXA4SaTWGvai48caajA480b//AfSkSaLK9C5pDFk0hf0HvoSK/qFdEL/3sChswE2EXJqcZCQxSpexQPhd4t/ES3m40PPO+WmK3AemjvNSv9oQdIXPlgwboVBoBfJ61onPqdQSrDtheDRsaNzOA9kYe5dttl7PwKz9UTj8Ds7rRXvrFdXvmX/KvwWHxQvHmz7RzFfMzBQ7AS+yKo4JPVMSA6peBQRsmu8n/c+G4q0MXntmPRfSELyxX2BG9kIUKJEmCgJHVOnN6Yd/wseKQWbWFut/vB+tq+83yTQKJmEtDx1EAupXv3oBNDpDR2wjLsijvAQCaBkvalHyLEC8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Qz2bR8/KDFQtIVLgxhKrRaUnQr0CFBQ/bW0RS0E1SdFssixvvPohlAXoBQssVOUPHVXbk9On9k8ebQ9n9lhd6L2dK0HydVUFLr0vtVCTv049aLcI3yQ8a6TrOxtVy793hzwY0UZC8X5pjYqT6V/ddyRWzJQRvXnK5KzL4KHWSOXTvwam8TYMp3TdBEi8G+Raydi2kVSeGYEjdjkGSfGgw5kRoeDqkworeZSA==
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext
new file mode 100644
index 000000000..71fa9654e
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext
@@ -0,0 +1,9 @@
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla in elit arcu. Morbi interdum fermentum magna non molestie. Curabitur imperdiet, mi eget ultrices porttitor, dolor arcu dictum purus, eu tristique felis felis eget leo. Suspendisse dignissim laoreet velit, id bibendum leo. Etiam faucibus lorem nunc, eget laoreet tortor feugiat at. Fusce at ornare tellus. Donec dui neque, fermentum quis ante ut, sodales commodo magna. Proin nec malesuada risus, ac consectetur mi. Praesent pharetra eleifend lacinia. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec odio metus, dictum vel commodo quis, tincidunt in ligula. Aenean et orci non arcu lobortis ultricies. Ut ipsum nisl, luctus sed porta nec, vestibulum pharetra tellus.
+
+ Praesent consectetur condimentum nisl ut cursus. Etiam aliquam nisi
+ dolor. Mauris aliquet condimentum neque, sodales laoreet lectus
+ venenatis ac. Morbi mattis justo odio, ac fringilla leo egestas
+ ut. Integer nec sapien pulvinar, ultrices nulla id, posuere
+ magna. Quisque in tincidunt sem, sed vehicula orci. Nulla blandit,
+ nisi vel cursus semper, nibh metus consequat purus, ac ullamcorper
+ dolor lorem vitae ligula. Maecenas non consectetur nibh.
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-all.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-all.xml
new file mode 100644
index 000000000..2dccaa51c
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-all.xml
@@ -0,0 +1,12 @@
+<Properties>
+ <Foo name="1" encrypted="basic">U2FsdGVkX19CZCt2ydtozka/HuG9Iay3Dpxs/pR7byM=</Foo>
+ <Bar name="1" encrypted="complex">U2FsdGVkX18RmlLRK6CSIww69iuUTAb1xOkA/2dZw84=</Bar>
+ <Foo name="2" encrypted="complex">U2FsdGVkX1+h5sBn5Ms1FXe88o69Wc0tE99Nuck++tQ=</Foo>
+ <Group name="test">
+ <Bar name="2" encrypted="basic">U2FsdGVkX1/NcWDYbvU1fUWry44xvFxYQXodBoTs/Ek=</Bar>
+ <Foo name="3" encrypted="basic">U2FsdGVkX1+02mmcZw+h/QkC+Qr48bjy198xcivfopvaK64xzBe25fEBADvIG7Qab+BxZdZAPWFgX3toBVQFVjQ6M6zf1lrNeciK39LSDj4v3mTIg1/gvew8TUGeQtkrU/xo8ShEAiExma6ILf7Qq6PTc5IdBfuB85bn5YtU1tN4YTiUbK3/DIkTRJI+8YI4GbhFBKeaqMkau5498YdwhxpE0LB0sxTK3Bjw23nwOfcLLXH0uYux1JCxDgYJ9Zalx0qPUthrNnEq2mR9R11lZGmRQD8ToN0/7eS8NkZs3j5TgefbzNdpK7yThbXHFPNwuD6I1AwhQ5oJ//iOkVGpAMXvdPkEZCgKthXnze/X99J0MphTq6oD7XGrY+Sj5EwVzv8X9Mux96QtFylCIGhNllkCAqb3Mzmsr7ZIEmauAr+eTkuRASjJr7XsQKSL5hoLFtF/vKnzTx6YjVETrbXkczZUhA2n7C3HF1OYAozPZmd2WTF7/15jcWCKZB517dfKr5GC1q10NlbiujEUfb/8JnVRg9JfK5r6oXcdfxbODbLchzU+/h2sRRjSVdN6wcXrX+bVMJG9P6cLiPR3oruBUHf/dbZXg06Mp1bqazbOpJY=</Foo>
+ </Group>
+ <Group name="test2">
+ <Bar name="3" encrypted="basic">U2FsdGVkX1/keWAAgSOnVvhoEDWzmRQWaf3mxOy749o=<Foo name="4" encrypted="basic">U2FsdGVkX1+O10Id9f9FUcavHi8JaQWVNlWm/jwQ4f4=</Foo></Bar>
+ </Group>
+</Properties>
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-xpath.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-xpath.xml
new file mode 100644
index 000000000..4bcec1474
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext-xpath.xml
@@ -0,0 +1,12 @@
+<Properties>
+ <Foo name="1" encrypted="basic">U2FsdGVkX18bAwhcMtr8J02ztT8kBjdCjae9lYnbsRY=</Foo>
+ <Bar name="1" encrypted="complex">Some text</Bar>
+ <Foo name="2" encrypted="complex">U2FsdGVkX19+Yq+VwbAfNGUHtnB7hy74V7Fvz0GHsqA=</Foo>
+ <Group name="test">
+ <Bar name="2" encrypted="basic">Some text</Bar>
+ <Foo name="3" encrypted="basic">U2FsdGVkX1+A3f6lIoFvCNaC6/ctbOLqT0z/YCJ+FkeyTgAnmU1/wk7FlPxOaPPkI2iRfEbNK2sNtUS0rQ8TYT3gIRO3qyrUNIcHaYfGerAZN3Xg9F3CsaL1NQjHxSKyJLdTmdB/1m0AQ3jw13n1eNrokGHF6HU6bD6TIJVFmds126ucOg56Xh+3ffOUukh2EwlBxnvGC/CDQluFixL1MY74xFd5mY5iDcJG9o5qUtjKmiOrtEAXFuM49JLciDHtMjQ2wbX/9lGek7U2Y05I2vU8BGtD3jh/Pt+17Vql80UrNHqVnWx247sxgYmkJIaworCTNowU2KsWEQj46E1bzAXEUVdGF65ltIXIK75KozHf8msKuVFwQDYCJ+lXRZgIygqcZ5glAyjW1WxyigxSFpRfVcZfiHp7d52JfBCU66367j7DvEnAJAuvL7jufJSavd6RxaEGGB3KGAMpz8NQxPy6i2s5RkY5V8eiqUOHsnZN6zHPgkZ90a+dokllLbH+HSYGU26sevJL4TupDCkz2/sRasmBB8fBAF5PGOI+UC7vXncbvpsMLsILFoUYtyWrDZ9cygOElEmWpVJSeECAA09iOhyaXN5rN/tyqkt3+ao=</Foo>
+ </Group>
+ <Group name="test2">
+ <Bar name="3" encrypted="basic">Some text<Foo name="4" encrypted="basic">U2FsdGVkX1+cSl37JVEVIEV+bqVBlMGQnZdZWsjHPME=</Foo></Bar>
+ </Group>
+</Properties>
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext.xml
new file mode 100644
index 000000000..45d9941c8
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext.xml
@@ -0,0 +1,18 @@
+<Properties>
+ <Foo name="1" encrypted="basic">Some text</Foo>
+ <Bar name="1" encrypted="complex">Some text</Bar>
+ <Foo name="2" encrypted="complex">Some text</Foo>
+ <Group name="test">
+ <Bar name="2" encrypted="basic">Some text</Bar>
+ <Foo name="3" encrypted="basic">Praesent consectetur condimentum nisl ut cursus. Etiam aliquam nisi
+dolor. Mauris aliquet condimentum neque, sodales laoreet lectus
+venenatis ac. Morbi mattis justo odio, ac fringilla leo egestas
+ut. Integer nec sapien pulvinar, ultrices nulla id, posuere
+magna. Quisque in tincidunt sem, sed vehicula orci. Nulla blandit,
+nisi vel cursus semper, nibh metus consequat purus, ac ullamcorper
+dolor lorem vitae ligula. Maecenas non consectetur nibh.</Foo>
+ </Group>
+ <Group name="test2">
+ <Bar name="3" encrypted="basic">Some text<Foo name="4" encrypted="basic">Nested text</Foo></Bar>
+ </Group>
+</Properties>
diff --git a/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext2.xml b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext2.xml
new file mode 100644
index 000000000..fa63330f0
--- /dev/null
+++ b/testsuite/Testsrc/Testsbin/bcfg2-crypt/plaintext2.xml
@@ -0,0 +1,18 @@
+<Properties>
+ <Foo name="1" encrypted="basic">Some text</Foo>
+ <Bar name="1" encrypted="basic">Some text</Bar>
+ <Foo name="2" encrypted="basic">Some text</Foo>
+ <Group name="test">
+ <Bar name="2" encrypted="basic">Some text</Bar>
+ <Foo name="3" encrypted="basic">Praesent consectetur condimentum nisl ut cursus. Etiam aliquam nisi
+dolor. Mauris aliquet condimentum neque, sodales laoreet lectus
+venenatis ac. Morbi mattis justo odio, ac fringilla leo egestas
+ut. Integer nec sapien pulvinar, ultrices nulla id, posuere
+magna. Quisque in tincidunt sem, sed vehicula orci. Nulla blandit,
+nisi vel cursus semper, nibh metus consequat purus, ac ullamcorper
+dolor lorem vitae ligula. Maecenas non consectetur nibh.</Foo>
+ </Group>
+ <Group name="test2">
+ <Bar name="3" encrypted="basic">Some text<Foo name="4" encrypted="basic">Nested text</Foo></Bar>
+ </Group>
+</Properties>