data

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 29 Imported by: 1 module, 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 data contains integration test cases of the measure.

Index

Constants

View Source
const LicenseHeader = "# Licensed to Apache Software Foundation (ASF) under one or more contributor\n" +
	"# license agreements. See the NOTICE file distributed with\n" +
	"# this work for additional information regarding copyright\n" +
	"# ownership. Apache Software Foundation (ASF) licenses this file to you under\n" +
	"# the Apache License, Version 2.0 (the \"License\"); you may\n" +
	"# not use this file except in compliance with the License.\n" +
	"# You may obtain a copy of the License at\n" +
	"#\n" +
	"#     http://www.apache.org/licenses/LICENSE-2.0\n" +
	"#\n" +
	"# Unless required by applicable law or agreed to in writing,\n" +
	"# software distributed under the License is distributed on an\n" +
	"# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n" +
	"# KIND, either express or implied.  See the License for the\n" +
	"# specific language governing permissions and limitations\n" +
	"# under the License.\n\n"

LicenseHeader is the Apache 2.0 header (in YAML/properties comment form, trailing blank line included) that generated fixture files must carry so they pass the repo-wide license-eye scan. Both the generator and the response-capture writer prepend this to every file they produce; without it, regenerating the fixtures locally silently strips the header and would break `make license-check` (the bug uncovered by the vectorized-query branch's full `make test` run, which exercises the `./test/cases/...` path that CI normally skips).

Variables

View Source
var VerifyFn = func(innerGm gm.Gomega, sharedContext helpers.SharedContext, args helpers.Args) {
	ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
	defer cancel()
	verifyWithContext(ctx, innerGm, sharedContext, args)
}

VerifyFn verify whether the query response matches the wanted result.

View Source
var VerifyFnWithAuth = func(innerGm gm.Gomega, sharedContext helpers.SharedContext, args helpers.Args, username, password string) {
	ctx := metadata.AppendToOutgoingContext(context.Background(),
		"username", username,
		"password", password,
	)
	verifyWithContext(ctx, innerGm, sharedContext, args)
}

VerifyFnWithAuth verify whether the query response matches the wanted result with Auth.

Functions

func Write

func Write(conn *grpclib.ClientConn, name, group, dataFile string,
	baseTime time.Time, interval time.Duration,
)

Write data into the server.

func WriteMixed added in v0.10.0

func WriteMixed(conn *grpclib.ClientConn, baseTime time.Time, interval time.Duration, writeSpecs ...WriteSpec)

WriteMixed writes measure data in schema order first, and then in spec order.

func WriteOnly added in v0.8.0

func WriteOnly(conn *grpclib.ClientConn, name, group, dataFile string,
	baseTime time.Time, interval time.Duration,
) measurev1.MeasureService_WriteClient

WriteOnly write data into the server and return the write client.

func WriteWithAuth added in v0.9.0

func WriteWithAuth(conn *grpclib.ClientConn, name, group, dataFile string,
	baseTime time.Time, interval time.Duration, username, password string,
)

WriteWithAuth data into the server with Auth.

func WriteWithSpec added in v0.10.0

func WriteWithSpec(conn *grpclib.ClientConn, baseTime time.Time, interval time.Duration, writeSpecs ...WriteSpec)

WriteWithSpec writes data using multiple data_point_specs to specify tag and field names.

Types

type WriteSpec added in v0.10.0

type WriteSpec struct {
	Metadata *commonv1.Metadata
	Spec     *measurev1.DataPointSpec
	DataFile string
}

WriteSpec defines the specification for writing measure data.

Jump to

Keyboard shortcuts

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