claim

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package claim provides a test-network-definition claim schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Claim

type Claim struct {

	// Tests within test-network-function often require configuration.  For example, the generic test suite requires listing all CNF containers.  This information is used to derive per-container IP address information, which is then used as input to the connectivity test suite.  Test suites within test-network-function may use multiple configurations, but each with a unique name.
	Configurations map[string]interface{} `json:"configurations"`
	Metadata       *Metadata              `json:"metadata"`

	// An OpenShift cluster is composed of an arbitrary number of Nodes used for platform and application services.  Since a claim must be reproducible, a variety of per-Node information must be collected and stored in the claim.  Node names are unique within a given OpenShift cluster.
	Nodes map[string]interface{} `json:"nodes"`

	// The test-network-function test results.  Results are a JSON representation of the JUnit output.
	Results  map[string]interface{} `json:"results"`
	Versions *Versions              `json:"versions"`
}

Claim

func (*Claim) MarshalJSON

func (strct *Claim) MarshalJSON() ([]byte, error)

func (*Claim) UnmarshalJSON

func (strct *Claim) UnmarshalJSON(b []byte) error

type Metadata

type Metadata struct {

	// The UTC end time of a claim evaluation.  This is recorded when the test-network-function test suite completes.
	EndTime string `json:"endTime"`

	// The UTC start time of a claim evaluation.  This is recorded when the test-network-function test suite is invoked.
	StartTime string `json:"startTime"`
}

Metadata

func (*Metadata) MarshalJSON

func (strct *Metadata) MarshalJSON() ([]byte, error)

func (*Metadata) UnmarshalJSON

func (strct *Metadata) UnmarshalJSON(b []byte) error

type Root

type Root struct {
	Claim *Claim `json:"claim"`
}

Root A test-network-function claim is an attestation of the tests performed, the results and the various configurations. Since a claim must be reproducible, it also includes an overview of the systems under test and their physical configurations.

func (*Root) MarshalJSON

func (strct *Root) MarshalJSON() ([]byte, error)

func (*Root) UnmarshalJSON

func (strct *Root) UnmarshalJSON(b []byte) error

type Versions

type Versions struct {

	// The test-network-function (tnf) release version.
	Tnf string `json:"tnf"`
}

Versions

func (*Versions) MarshalJSON

func (strct *Versions) MarshalJSON() ([]byte, error)

func (*Versions) UnmarshalJSON

func (strct *Versions) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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