wlf f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
..
100_launch_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
105_launch_sans_weave_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
106_launch_with_peers_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
110_shutdown_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
115_topologies_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
200_clustering_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
205_clustering_sans_weave_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
210_clustering_custom_hostname_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
215_clustering_split_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
300_internet_edge_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
301_internet_edge_without_ebpf_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
310_container_to_container_edge_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
311_container_to_container_edge_without_ebpf_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
312_container_to_container_edge_same_netns_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
313_container_to_container_edge_with_ebpf_proc_fallback_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
314_container_accept_before_kretprobe_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
315_ebpf_restart_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
320_container_edge_cross_host_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
321_many_connections_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
330_process_edge_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
331_process_edge_without_ebpf_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
340_process_edge_across_host_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
341_process_edge_across_host_without_ebpf_2_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
350_container_to_container_edge_no_weave_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
410_container_control_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
420_host_control_test.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
README.md f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
config.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
gce.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
run_all.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ
setup.sh f051014ac2 提交正常运行的所有代码 11 mēneši atpakaļ

README.md

This directory contains integration tests for scope.

Requirements

You need two VMs with docker >=1.3.1 installed and listening on TCP port 2375 (see below). You also need to be able to ssh to these VMs, preferably without having to input anything.

The Vagrantfile in this directory constructs two such VMs. To meet the aforementioned ssh requirement you may want to

cp ~/.vagrant.d/insecure_private_key .

Running tests

./setup.sh

Downloads a copy of weave (if not already downloaded) and calls it's setup.sh script. Then, it uploads the scope images from where the Makefile puts them (/var/tmp) to the two docker hosts, and copies the scope script over.

Then you can use, e.g.,

./100_launch_test.sh

to run an individual test, or

./run_all.sh

to run everything named *_test.sh.

Using other VMs

By default the tests assume the Vagrant VMs are used.

To use other VMs, set the environment variable HOSTS to the space-separated list of IP addresses of the docker hosts, and set the environment variable SSH to a command that will log into either (which may just be ssh).

Making docker available over TCP

To make docker listen to a TCP socket, you will usually need to either run it manually with an option like -H tcp://0.0.0.0:2375; or, for apt-get installed docker (Ubuntu and Debian), add the line

DOCKER_OPTS="--host unix:///var/run/docker.sock --host tcp://0.0.0.0:2375"

to the file /etc/default/docker, then restart docker.