summaryrefslogtreecommitdiffstats
path: root/docker/test
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-04-30 09:03:13 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-05-02 09:55:56 +0000
commit30b088af1c187d7d3abd65030089c2a56f5cf95b (patch)
treeee427c54a6885d644c69a300407445fefff24628 /docker/test
parent4b8bef208fc37b09008e3333db9d262d56b94192 (diff)
Move docker files to examples directory
Change-Id: Ib2eb3dbae76a1e9b5d98ce9e0d5eea9adba280cf Signed-off-by: Marek Gradzki <mgradzki@cisco.com> (cherry picked from commit e4c58493ce5265ea0d1e17d160c339401c406186)
Diffstat (limited to 'docker/test')
-rwxr-xr-xdocker/test/docker_ip.sh5
-rwxr-xr-xdocker/test/show_interfaces_state.sh15
2 files changed, 0 insertions, 20 deletions
diff --git a/docker/test/docker_ip.sh b/docker/test/docker_ip.sh
deleted file mode 100755
index 1e3bc997d..000000000
--- a/docker/test/docker_ip.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/bash
-
-# Obtain IP address of the container
-# See http://blog.oddbit.com/2014/08/11/four-ways-to-connect-a-docker/
-docker inspect --format '{{ .NetworkSettings.IPAddress }}' "$@"
diff --git a/docker/test/show_interfaces_state.sh b/docker/test/show_interfaces_state.sh
deleted file mode 100755
index 06d972e79..000000000
--- a/docker/test/show_interfaces_state.sh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-# Obtain IP of the container
-# $1 - container name
-ip=$(/hc2vpp/test/docker_ip.sh $1)
-url="https://$ip:8445/restconf/operational/ietf-interfaces:interfaces-state/"
-echo "GET $url"
-
-# Show interfaces-state
-curl --insecure -X GET $url \
- -H 'authorization: Basic YWRtaW46YWRtaW4=' \
- -H 'cache-control: no-cache' \
- -H 'content-type: application/json'
-
-echo