From 6b958a3adc4f42d6936c2d7c6144578d97fd4a12 Mon Sep 17 00:00:00 2001 From: "sudesh.shetty" Date: Wed, 6 May 2020 15:21:51 -0400 Subject: [PATCH] chore: invalid character in stake holder file name Getting malformed file path error while tagging https://sum.golang.org/lookup/github.com/trustbloc/edge-agent@v0.1.3 not found: create zip: malformed file path "test/bdd/fixtures/agent-wasm/config-data/stakeholder.one:8088.json": invalid char ':' Signed-off-by: sudesh.shetty --- scripts/generate_test_config.sh | 2 ++ .../{stakeholder.one:8088.json => stakeholder.one_8088.json} | 0 2 files changed, 2 insertions(+) rename test/bdd/fixtures/agent-wasm/config-data/{stakeholder.one:8088.json => stakeholder.one_8088.json} (100%) diff --git a/scripts/generate_test_config.sh b/scripts/generate_test_config.sh index 92f02be1..0521602d 100755 --- a/scripts/generate_test_config.sh +++ b/scripts/generate_test_config.sh @@ -13,6 +13,7 @@ function convert_file_linux() { # then embed in a dummy jws and write to the config folder # $1: file name echo "{\"payload\":\"$(cat $1 | base64 -w 0 | sed 's/+/-/g; s/\//_/g; s/=//g')\",\"signatures\":[{\"header\":{\"kid\":\"\"},\"signature\":\"\"}]}" > ../config/$1 + find ../config -depth -name '*.*' -execdir bash -c 'mv -- "$1" "${1/_/:}"' bash {} \; } function convert_file_osx() { @@ -20,6 +21,7 @@ function convert_file_osx() { # then embed in a dummy jws and write to the config folder # $1: file name echo "{\"payload\":\"$(cat $1 | base64 | sed 's/+/-/g; s/\//_/g; s/=//g')\",\"signatures\":[{\"header\":{\"kid\":\"\"},\"signature\":\"\"}]}" > ../config/$1 + find ../config -depth -name '*.*' -execdir bash -c 'mv -- "$1" "${1/_/:}"' bash {} \; } pwd=`pwd` diff --git a/test/bdd/fixtures/agent-wasm/config-data/stakeholder.one:8088.json b/test/bdd/fixtures/agent-wasm/config-data/stakeholder.one_8088.json similarity index 100% rename from test/bdd/fixtures/agent-wasm/config-data/stakeholder.one:8088.json rename to test/bdd/fixtures/agent-wasm/config-data/stakeholder.one_8088.json