diff options
author | yangyan <yangyanyj@chinamobile.com> | 2019-09-06 11:17:31 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2019-09-06 11:17:59 +0800 |
commit | c0c46a81b354e49c7ac10377f6b2b98e1039837f (patch) | |
tree | 078b65a606ca39ce1c7fac97b8e1d572c33f8e1c /resources/testscripts/vnf/msb_delete.py | |
parent | d7b47097ce93f7cfd394bafb012ccf8590f5d4a4 (diff) |
Update test scripts of vnf msb_create
Change-Id: I229175f5352ddd71fb46cef9c86e39b2df2d79d9
Issue-ID: VFC-1510
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
Diffstat (limited to 'resources/testscripts/vnf/msb_delete.py')
-rw-r--r-- | resources/testscripts/vnf/msb_delete.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/resources/testscripts/vnf/msb_delete.py b/resources/testscripts/vnf/msb_delete.py new file mode 100644 index 00000000..63f8495a --- /dev/null +++ b/resources/testscripts/vnf/msb_delete.py @@ -0,0 +1,17 @@ +# Copyright (c) 2020, CMCC Technologies Co., Ltd. +# 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. + +import requests +import sys +create_id = sys.argv[1] + +resp = requests.delete('http://10.12.5.131:30280/api/vnfpkgm/v1/vnf_packages/' + create_id) +print(resp.status_code) |