aboutsummaryrefslogtreecommitdiff
path: root/obfuscate
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-07 23:23:10 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-04-08 00:52:51 +0200
commit1d72880c097ea8259ce9cc63cfe55e6cc7516bd2 (patch)
tree44d7f9089468f35277bb8d0257da0f3a3bb88448 /obfuscate
parente7d7c0e5645da35adcbfec9e51deb68f012c422f (diff)
downloadTrader-1d72880c097ea8259ce9cc63cfe55e6cc7516bd2.tar.gz
Trader-1d72880c097ea8259ce9cc63cfe55e6cc7516bd2.tar.zst
Trader-1d72880c097ea8259ce9cc63cfe55e6cc7516bd2.zip
Add acceptance tests
Fixes https://git.immae.eu/mantisbt/view.php?id=42 (new scenario files still need to be added to improve coverage)
Diffstat (limited to 'obfuscate')
-rwxr-xr-xobfuscate7
1 files changed, 7 insertions, 0 deletions
diff --git a/obfuscate b/obfuscate
new file mode 100755
index 0000000..d4562ea
--- /dev/null
+++ b/obfuscate
@@ -0,0 +1,7 @@
1#!/bin/bash
2
3f="$1"
4sed -i -e 's/"Key": ".*",/"Key": "01234567-89ABCDEF-GHIJKLMN-OPQRSTUV",/' $f
5sed -i -e 's/"Sign": ".*",/"Sign": "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",/' $f
6sed -i -e 's/\\"depositAddress\\":\\"[^"]*\\"/\\"depositAddress\\":\\"1HelloWorld\\"/g' $f
7sed -i -e 's/"date": "....-..-..T..:..:.........",/"date": "2018-04-07T12:00:00.000000",/' $f