acceptance

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Acceptance testing framework

This directory contains a set of integration tests. Each test is defined as a bazel test target, with tags integration and exclusive.

Some integration tests use code outside this directory. For example, the router_multi acceptance test cases and main executable are in tools/braccept.

Basic Commands

To run all integration tests which include the acceptance tests, execute one of the following (equivalent) commands

make test-integration                # or,
bazel test --config=integration_all  # or,
bazel test --config=integration //...

Run a subset of the tests by specifying a different list of targets:

bazel test --config=integration //acceptance/cert_renewal:all //acceptance/trc_update/...
bazel test --config=integration //acceptance/router_multi:all --cache_test_results=no

The following the flags to bazel test can be helpful when running individual tests:

  • --test_output=streamed to display test output to the screen immediately
  • --cache_test_results=no or -t- to re-run tests after a cached success

Manual Testing

Some of the tests are defined using a common framework, implemented by the bazel rules topogen_test and raw_test (in raw.bzl). These test cases allow more fine grained interaction.

# Run topogen and start containers, or other relevant setup
bazel run //<test-package>:<target>_setup
# Run the actual test
bazel run //<test-package>:<target>_run
# ... interact with setup, see state in /tmp/artifacts-scion ...
# Shutdown and cleanup
bazel run //<test-package>:<target>_teardown

For example:

bazel run //acceptance/router_multi:test_bfd_setup
bazel run //acceptance/router_multi:test_bfd_run
bazel run //acceptance/router_multi:test_bfd_teardown

See common/README for more information about the internal structure of these tests.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SigAddr integration.HostAddr = func(ia addr.IA) *snet.UDPAddr {
	return &snet.UDPAddr{IA: ia, Host: &net.UDPAddr{IP: iaIPMap[ia]}}
}

Functions

func ReadTestingConf

func ReadTestingConf() error

Types

This section is empty.

Directories

Path Synopsis
cmd
sig_ping_acceptance
Sig_ping_acceptance runs checks for basic connectivity between AS through the SIG, using standard IP ping.
Sig_ping_acceptance runs checks for basic connectivity between AS through the SIG, using standard IP ping.
router_benchmark

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL