X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Ftests%2Fclear-all.sh;h=9b6b8c64f1db290c34fd8ef859c10799cbac7770;hp=5ba9d4bd51df8bd437270baebd7e09751283b882;hb=f717cbe40358a8a8246d7936064cf235e2ff7f79;hpb=b57758d4a3fd88baa348cfa0812e9f4a742761d1 diff --git a/osm_nbi/tests/clear-all.sh b/osm_nbi/tests/clear-all.sh index 5ba9d4b..9b6b8c6 100755 --- a/osm_nbi/tests/clear-all.sh +++ b/osm_nbi/tests/clear-all.sh @@ -1,4 +1,18 @@ #! /bin/bash + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# 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. + # author: Alfonso Tierno # Script that uses the test NBI URL to clean database. See usage @@ -66,14 +80,14 @@ then done fi -for item in vim_accounts sdns nsrs vnfrs nslcmops nsds vnfds projects nsts # vims +for item in vim_accounts sdns nsrs vnfrs nslcmops nsds vnfds projects pdus nsts nsis nsilcmops # vims do curl --insecure ${OSMNBI_URL}/test/db-clear/${item} - echo " ${item}" done + curl --insecure ${OSMNBI_URL}/test/fs-clear if [ -n "$OSMNBI_COMPLETELY" ] ; then - curl --insecure ${OSMNBI_URL}/test/db-clear/users && echo " ${item}" - curl --insecure ${OSMNBI_URL}/test/db-clear/version && echo " ${item}" + curl --insecure ${OSMNBI_URL}/test/db-clear/users + curl --insecure ${OSMNBI_URL}/test/db-clear/admin else # delete all users except admin curl --insecure ${OSMNBI_URL}/test/db-clear/users?username.ne=admin