Documentation
¶
Overview ¶
Package data contains integration test cases of the measure.
Index ¶
- Constants
- Variables
- func Write(conn *grpclib.ClientConn, name, group, dataFile string, baseTime time.Time, ...)
- func WriteMixed(conn *grpclib.ClientConn, baseTime time.Time, interval time.Duration, ...)
- func WriteOnly(conn *grpclib.ClientConn, name, group, dataFile string, baseTime time.Time, ...) measurev1.MeasureService_WriteClient
- func WriteWithAuth(conn *grpclib.ClientConn, name, group, dataFile string, baseTime time.Time, ...)
- func WriteWithSpec(conn *grpclib.ClientConn, baseTime time.Time, interval time.Duration, ...)
- type WriteSpec
Constants ¶
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 ¶
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.
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.