diff options
author | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2019-04-18 11:21:50 +0200 |
---|---|---|
committer | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2019-04-18 12:38:37 +0200 |
commit | 867288fc5ce094fb70b85ec40ad9a1e33428238a (patch) | |
tree | 6b1565f2515a765ea5f78d3985c4c7eef102c76b /tests/vid/resources/scripts | |
parent | a6795420765b4455dbc761bfc4a70ecb457693ad (diff) |
changing simulator and endpoints for change management testing
Change-Id: I18d92c130181f6440cf2b68cfd864de686833c67
Issue-ID: VID-462
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
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 |