acceptance

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 command
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.

Jump to

Keyboard shortcuts

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