diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2019-04-22 16:51:32 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-04-22 16:51:32 +0000 |
commit | 0ba43dd065b87346adebe651c91d3f97299a32ec (patch) | |
tree | 816e904fef039aa40803662bda0268eda4477608 /tests/vid/resources/scripts | |
parent | 8d43285f32048a09429aff6b9326959fb8cd52b8 (diff) | |
parent | 867288fc5ce094fb70b85ec40ad9a1e33428238a (diff) |
Merge "changing simulator and endpoints for change management testing"
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 |