conformance

package
v1.16.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MPL-2.0 Imports: 17 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.

Documentation

Overview

Package conformance implements tests which verify conformance of the implementation with the spec.

Index

Constants

View Source
const (
	// PathResourceType is the type of PathResource.
	PathResourceType = resource.Type("os/path")

	// PathResourceDefaultNamespace is the default namespace for the PathResource.
	PathResourceDefaultNamespace = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PathResource

type PathResource struct {
	// contains filtered or unexported fields
}

PathResource represents a path in the filesystem.

Resource ID is the path.

func NewPathResource

func NewPathResource(ns resource.Namespace, path string) *PathResource

NewPathResource creates new PathResource.

func NewPathResourceWithDefaultNS added in v1.16.0

func NewPathResourceWithDefaultNS(path string) *PathResource

NewPathResourceWithDefaultNS creates new PathResource with default namespace.

func (*PathResource) DeepCopy

func (path *PathResource) DeepCopy() resource.Resource

DeepCopy implements resource.Resource.

func (*PathResource) Metadata

func (path *PathResource) Metadata() *resource.Metadata

Metadata implements resource.Resource.

func (*PathResource) ResourceDefinition added in v1.16.0

func (path *PathResource) ResourceDefinition() meta.ResourceDefinitionSpec

func (*PathResource) Spec

func (path *PathResource) Spec() any

Spec implements resource.Resource.

func (*PathResource) UnmarshalProto

func (path *PathResource) UnmarshalProto(md *resource.Metadata, protoSpec []byte) error

UnmarshalProto implements protobuf.ResourceUnmarshaler.

type StateSuite

type StateSuite struct {
	suite.Suite

	State state.State

	Namespaces []resource.Namespace
}

StateSuite implements conformance test for state.State.

func (*StateSuite) TestCRD

func (suite *StateSuite) TestCRD()

TestCRD verifies create, read, delete.

func (*StateSuite) TestCRDWithOwners

func (suite *StateSuite) TestCRDWithOwners()

TestCRDWithOwners verifies create, read, update, delete with owners.

func (*StateSuite) TestConcurrentFinalizers

func (suite *StateSuite) TestConcurrentFinalizers()

TestConcurrentFinalizers perform concurrent finalizer updates.

func (*StateSuite) TestContextWithTeardown added in v0.4.0

func (suite *StateSuite) TestContextWithTeardown()

TestContextWithTeardown verifies ContextWithTeardown.

func (*StateSuite) TestIDQuery added in v0.3.0

func (suite *StateSuite) TestIDQuery()

TestIDQuery verifies ID query for List and WatchKind operations.

func (*StateSuite) TestLabels

func (suite *StateSuite) TestLabels()

TestLabels verifies operations with labels.

func (*StateSuite) TestModify added in v0.10.6

func (suite *StateSuite) TestModify()

TestModify verifies Modify.

func (*StateSuite) TestModifyWithOwner added in v0.10.6

func (suite *StateSuite) TestModifyWithOwner()

TestModifyWithOwner verifies Modify with Owner.

func (*StateSuite) TestParallelDestroy added in v0.6.0

func (suite *StateSuite) TestParallelDestroy()

TestParallelDestroy runs several parallel destroy calls.

func (*StateSuite) TestTeardownAndDestroy added in v0.10.3

func (suite *StateSuite) TestTeardownAndDestroy()

TestTeardownAndDestroy verifies TeardownAndDestroy.

func (*StateSuite) TestTeardownDestroy

func (suite *StateSuite) TestTeardownDestroy()

TestTeardownDestroy verifies finalizers, teardown and destroy.

func (*StateSuite) TestUpdate

func (suite *StateSuite) TestUpdate()

TestUpdate verifies update flow.

func (*StateSuite) TestUpdateWithConflicts added in v0.2.0

func (suite *StateSuite) TestUpdateWithConflicts()

TestUpdateWithConflicts verifies updates with conflicts.

func (*StateSuite) TestWatch

func (suite *StateSuite) TestWatch()

TestWatch verifies Watch.

func (*StateSuite) TestWatchFor

func (suite *StateSuite) TestWatchFor()

TestWatchFor verifies WatchFor.

func (*StateSuite) TestWatchKind

func (suite *StateSuite) TestWatchKind()

TestWatchKind verifies WatchKind API.

func (*StateSuite) TestWatchKindAggregated added in v0.3.0

func (suite *StateSuite) TestWatchKindAggregated()

TestWatchKindAggregated verifies WatchKind API with aggregated watch.

func (*StateSuite) TestWatchKindAggregatedWithLabels added in v0.3.0

func (suite *StateSuite) TestWatchKindAggregatedWithLabels()

TestWatchKindAggregatedWithLabels verifies WatchKind API with aggregated watch and label selectors.

func (*StateSuite) TestWatchKindAggregatedWithTailEvents added in v0.3.0

func (suite *StateSuite) TestWatchKindAggregatedWithTailEvents()

TestWatchKindAggregatedWithTailEvents verifies WatchKind API with aggregated watch and tail events.

func (*StateSuite) TestWatchKindWithBookmarks added in v0.7.0

func (suite *StateSuite) TestWatchKindWithBookmarks()

TestWatchKindWithBookmarks verifies WatchKind with bookmarks.

func (*StateSuite) TestWatchKindWithLabels

func (suite *StateSuite) TestWatchKindWithLabels()

TestWatchKindWithLabels verifies WatchKind API with label selectors.

func (*StateSuite) TestWatchKindWithTailEvents added in v0.2.0

func (suite *StateSuite) TestWatchKindWithTailEvents()

TestWatchKindWithTailEvents verifies WatchKind API with tail events.

func (*StateSuite) TestWatchWithBookmarks added in v0.7.0

func (suite *StateSuite) TestWatchWithBookmarks()

TestWatchWithBookmarks verifies Watch with bookmarks.

func (*StateSuite) TestWatchWithTailEvents added in v0.2.0

func (suite *StateSuite) TestWatchWithTailEvents()

TestWatchWithTailEvents verifies Watch with tail events option.

Jump to

Keyboard shortcuts

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