Code Review
/
integration
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added csit tests for StndDefined disabled validation
[integration/csit.git]
/
tests
/
dcaegen2
/
testcases
/
resources
/
override_collector_properties.sh
diff --git
a/tests/dcaegen2/testcases/resources/vesc_enable_https_auth.sh
b/tests/dcaegen2/testcases/resources/override_collector_properties.sh
similarity index 53%
rename from
tests/dcaegen2/testcases/resources/vesc_enable_https_auth.sh
rename to
tests/dcaegen2/testcases/resources/override_collector_properties.sh
index
29700bc
..
f6a46e1
100755
(executable)
--- a/
tests/dcaegen2/testcases/resources/vesc_enable_https_auth.sh
+++ b/
tests/dcaegen2/testcases/resources/override_collector_properties.sh
@@
-13,11
+13,21
@@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
+if [ $# -ne 1 ]; then
+ echo "Incorrect number of parameters"
+ exit 1
+fi
-docker exec vesc /opt/app/VESCollector/bin/appController.sh stop
+LOCAL_COLLECTOR_PROPERTIES_PATH=$1
+FILENAME=$(basename $LOCAL_COLLECTOR_PROPERTIES_PATH)
+ETC_PATH=/opt/app/VESCollector/etc
+APP_CONTROLLER_PATH=/opt/app/VESCollector/bin/appController.sh
+
+docker exec vesc $APP_CONTROLLER_PATH stop
sleep 2
sleep 2
-docker cp $
{WORKSPACE}/tests/dcaegen2/testcases/resources/collector.properties vesc:/opt/app/VESCollector/etc
+docker cp $
LOCAL_COLLECTOR_PROPERTIES_PATH vesc:$ETC_PATH
sleep 10
sleep 10
-docker exec vesc /opt/app/VESCollector/bin/appController.sh start
+docker exec vesc mv $ETC_PATH/$FILENAME $ETC_PATH/collector.properties
+docker exec vesc $APP_CONTROLLER_PATH start
sleep 5
sleep 5
-echo "VES Collector Restarted with
certBasicAuth
"
+echo "VES Collector Restarted with
overridden collector.properties
"