X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Ftests%2Fdelete-all.sh;h=643b6070223cf797329bf59b330400d95f50c353;hp=d8cb47480d34061b87081dd1ac43d987895a471e;hb=0952a48159c11b6d31fff6617f04f06351ed79f3;hpb=e128118419c3bb413de4cff8445b9b6c5598a5ed;ds=sidebyside diff --git a/osm_nbi/tests/delete-all.sh b/osm_nbi/tests/delete-all.sh index d8cb474..643b607 100755 --- a/osm_nbi/tests/delete-all.sh +++ b/osm_nbi/tests/delete-all.sh @@ -1,16 +1,26 @@ #! /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. + export NBI_URL=https://localhost:9999/osm USERNAME=admin PASSWORD=admin PROJECT=admin - - #get token TOKEN=`curl --insecure -H "Content-Type: application/yaml" -H "Accept: application/yaml" --data "{username: $USERNAME, password: $PASSWORD, project_id: $PROJECT}" ${NBI_URL}/admin/v1/tokens 2>/dev/null | awk '($1=="id:"){print $2}' ` ; echo $TOKEN - echo deleting all #DELETE ALL