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

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.