tests

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package tests contains REST API tests for following endpoints:

apiPrefix

Package tests contains REST API tests for following endpoints:

apiPrefix

OpenAPI specification

Index

Constants

View Source
const (

	// ContentTypeJSON represents MIME type for JSON format
	ContentTypeJSON = "application/json; charset=utf-8"

	// ContentTypeText represents MIME type for plain text format
	ContentTypeText = "text/plain; charset=utf-8"
)

common constants used by REST API tests

Variables

This section is empty.

Functions

func ServerTests

func ServerTests()

ServerTests run all tests for basic REST API endpoints

Types

type Group

type Group struct {
	Description string   `json:"description"`
	Title       string   `json:"title"`
	Tags        []string `json:"tags"`
}

Group represents part of response containing list of groups

type GroupsResponse

type GroupsResponse struct {
	Groups []Group `json:"groups"`
	Status string  `json:"status"`
}

GroupsResponse represents response containing list of groups

type StatusOnlyResponse

type StatusOnlyResponse struct {
	Status string `json:"status"`
}

StatusOnlyResponse represents response containing just a status

type StatusResponse

type StatusResponse struct {
	RuleContentStatusMap map[string]types.RuleContentStatus `json:"rules"`
	Status               string                             `json:"status"`
}

StatusResponse represents response containing map of rules

Jump to

Keyboard shortcuts

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