blob: 085e17f4584ec7d73b6740cceb3a105620065197 [file] [log] [blame]
BjornMagnussonXAa5491572021-05-04 09:21:24 +02001#!/bin/bash
2
3# ============LICENSE_START===============================================
4# Copyright (C) 2021 Nordix Foundation. All rights reserved.
5# ========================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=================================================
18#
19
20# Automated test script for callback receiver container
21
22
23echo "NOTE - No automatic response check - check manually"
24echo "All call shall return a json struct"
25echo ""
26
27CMD="curl --proxy localhost:8080 localhost:8081"
28echo "Running cmd: "$CMD
29$CMD
30echo ""
31if [ $? -eq 0 ]; then
32 echo "CMD OK"
33else
34 echo "CMD FAIL"
35fi
36echo ""
37
38CMD="curl --proxy localhost:8080 -k https://localhost:8434"
39echo "Running cmd: "$CMD
40$CMD
41echo ""
42if [ $? -eq 0 ]; then
43 echo "CMD OK"
44else
45 echo "CMD FAIL"
46fi
47echo ""
48
49CMD="curl --proxy-insecure localhost:8433 localhost:8081"
50echo "Running cmd: "$CMD
51$CMD
52echo ""
53if [ $? -eq 0 ]; then
54 echo "CMD OK"
55else
56 echo "CMD FAIL"
57fi
58echo ""
59
60CMD="curl --proxy-insecure localhost:8433 -k https://localhost:8434"
61echo "Running cmd: "$CMD
62$CMD
63echo ""
64if [ $? -eq 0 ]; then
65 echo "CMD OK"
66else
67 echo "CMD FAIL"
68fi
69echo ""
70
71echo "DONE"