diff options
Diffstat (limited to 'tests/vid/resources/scripts')
-rwxr-xr-x | tests/vid/resources/scripts/ChangingFeatureFlag.sh | 7 | ||||
-rwxr-xr-x | tests/vid/resources/scripts/SetFeatureFlag.sh | 5 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/vid/resources/scripts/ChangingFeatureFlag.sh b/tests/vid/resources/scripts/ChangingFeatureFlag.sh new file mode 100755 index 00000000..dec6d2ec --- /dev/null +++ b/tests/vid/resources/scripts/ChangingFeatureFlag.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +echo $1 +echo $2 + +cd ./webapps/vid/WEB-INF/conf/ +while read a ; do echo ${a//$1*/$1 = $2} ; done < ./features.properties > ./features.properties.t ; mv ./features.properties{.t,}
\ No newline at end of file diff --git a/tests/vid/resources/scripts/SetFeatureFlag.sh b/tests/vid/resources/scripts/SetFeatureFlag.sh new file mode 100755 index 00000000..89bf73c0 --- /dev/null +++ b/tests/vid/resources/scripts/SetFeatureFlag.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +docker cp ./ChangingFeatureFlag.sh vid-server:/usr/local/tomcat/ChangingFeatureFlag.sh +docker exec vid-server /usr/local/tomcat/ChangingFeatureFlag.sh $1 $2 +docker exec vid-server rm /usr/local/tomcat/ChangingFeatureFlag.sh
\ No newline at end of file |