Documentation ¶
Overview ¶
Package conformance implements tests which verify conformance of the implementation with the spec.
Index ¶
- Constants
- type PathResource
- type StateSuite
- func (suite *StateSuite) TestCRD()
- func (suite *StateSuite) TestCRDWithOwners()
- func (suite *StateSuite) TestConcurrentFinalizers()
- func (suite *StateSuite) TestLabels()
- func (suite *StateSuite) TestTeardownDestroy()
- func (suite *StateSuite) TestUpdate()
- func (suite *StateSuite) TestWatch()
- func (suite *StateSuite) TestWatchFor()
- func (suite *StateSuite) TestWatchKind()
- func (suite *StateSuite) TestWatchKindWithLabels()
Constants ¶
const PathResourceType = resource.Type("os/path")
PathResourceType is the type of PathResource.
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 (*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) Spec ¶
func (path *PathResource) Spec() interface{}
Spec implements resource.Resource.
func (*PathResource) UnmarshalProto ¶
func (path *PathResource) UnmarshalProto(md *resource.Metadata, protoSpec []byte) error
UnmarshalProto implements protobuf.ResourceUnmarshaler.
type StateSuite ¶
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) TestLabels ¶
func (suite *StateSuite) TestLabels()
TestLabels verifies operations with labels.
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) TestWatchFor ¶
func (suite *StateSuite) TestWatchFor()
TestWatchFor verifies WatchFor.
func (*StateSuite) TestWatchKind ¶
func (suite *StateSuite) TestWatchKind()
TestWatchKind verifies WatchKind API.
func (*StateSuite) TestWatchKindWithLabels ¶
func (suite *StateSuite) TestWatchKindWithLabels()
TestWatchKindWithLabels verifies WatchKind API with label selectors.