schema

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package schema contains shared test cases for schema-related functionality.

Package schema contains shared test cases for schema-related functionality.

Tombstone GC specs exercise tombstone retention behavior. The test suites wire the standalone server with --schema-server-tombstone-retention=2s in the BeforeSuite, so the specs run without requiring any environment variable.

Index

Constants

This section is empty.

Variables

View Source
var SharedContext helpers.SharedContext

SharedContext is set by the test environment (standalone or distributed).

Functions

func VerifyMeasureDeletion

func VerifyMeasureDeletion(ctx context.Context, clients *Clients, groupName, measureName string) error

VerifyMeasureDeletion implements the complete deletion test process for measures.

func VerifyStreamDeletion

func VerifyStreamDeletion(ctx context.Context, clients *Clients, groupName, streamName string) error

VerifyStreamDeletion implements the complete deletion test process for streams.

func VerifyTraceDeletion

func VerifyTraceDeletion(ctx context.Context, clients *Clients, groupName, traceName string) error

VerifyTraceDeletion implements the complete deletion test process for traces.

Types

type Clients

Clients holds all gRPC clients required by the schema integration test helpers.

func NewClients added in v0.11.0

func NewClients(conn *grpc.ClientConn) *Clients

NewClients constructs the registry/service client bundle used by the schema integration tests.

func (*Clients) AwaitApplied added in v0.11.0

func (c *Clients) AwaitApplied(ctx context.Context, keys []string, timeout time.Duration) error

AwaitApplied blocks until every key in the list reports as present in the cluster's schema cache or the timeout elapses. Each key is encoded as "kind:group/name"; supported kinds are "measure", "stream", and "trace". Delegates to SchemaBarrierService.AwaitSchemaApplied.

func (*Clients) AwaitDeleted added in v0.11.0

func (c *Clients) AwaitDeleted(ctx context.Context, keys []string, timeout time.Duration) error

AwaitDeleted blocks until every key in the list is absent from the cluster's schema cache or the timeout elapses. Encoding follows AwaitApplied. Delegates to SchemaBarrierService.AwaitSchemaDeleted.

func (*Clients) AwaitRevision added in v0.11.0

func (c *Clients) AwaitRevision(ctx context.Context, target int64, timeout time.Duration) error

AwaitRevision blocks until the cluster's schema cache has advanced to the given mod_revision or the timeout elapses. Delegates to SchemaBarrierService.AwaitRevisionApplied.

Jump to

Keyboard shortcuts

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