acceptance

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 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.

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

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, defined in the bazel rules topogen_test and raw_test. 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

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

Jump to

Keyboard shortcuts

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