diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2020-08-11 06:58:36 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-08-11 06:58:36 +0000 |
commit | 0bd5299aa435b335fb63673e028def2c0ee4d3f7 (patch) | |
tree | 74822d1a18927c84e6dd23a54b388babe8c20929 /scripts/ccsdk/oran/mock-hello.sh | |
parent | 73fc834188cb53f79c4bc1cb5ab397e1e774a297 (diff) | |
parent | 181070f74c056828ff293dfbe692590543703a93 (diff) |
Merge "PLaceholder for CSIT"
Diffstat (limited to 'scripts/ccsdk/oran/mock-hello.sh')
-rwxr-xr-x | scripts/ccsdk/oran/mock-hello.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/ccsdk/oran/mock-hello.sh b/scripts/ccsdk/oran/mock-hello.sh new file mode 100755 index 00000000..a40f8bf9 --- /dev/null +++ b/scripts/ccsdk/oran/mock-hello.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# +# Copyright 2016-2017 Huawei 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. + +curl -v -X PUT -d @- http://$1:1080/expectation <<EOF +{ + "httpRequest": { + "method": "GET", + "path": "/hello" + }, + "httpResponse": { + "body": "Hello world!", + "statusCode": 200 + } +} +EOF + |