testing

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CreatePolicyRequest = `` /* 248-byte string literal not displayed */
View Source
const CreateRuleRequest = `
{
  "compare_type": "REGEX",
  "invert": false,
  "tags": [
    "test_tag"
  ],
  "type": "PATH",
  "value": "/images*"
}
`
View Source
const GetPolicyResponse = `` /* 1232-byte string literal not displayed */
View Source
const GetRuleResponse = `` /* 425-byte string literal not displayed */
View Source
const ListPolicyResponse = `` /* 1269-byte string literal not displayed */
View Source
const ListRuleResponse = `` /* 462-byte string literal not displayed */
View Source
const ReplacePolicyRequest = `` /* 191-byte string literal not displayed */
View Source
const TaskResponse = `
{
  "tasks": [
    "50f53a35-42ed-40c4-82b2-5a37fb3e00bc"
  ]
}
`

Variables

View Source
var (
	Rule = l7policies.L7Rule{
		ID:                 "0ca7bebd-7a54-4977-bca7-e4ac1e612ec7",
		CompareType:        l7policies.CompareTypeStartWith,
		Invert:             false,
		OperatingStatus:    "ONLINE",
		ProvisioningStatus: "ACTIVE",
		CreatedAt:          createdTime,
		UpdatedAt:          &updatedTime,
		Type:               l7policies.TypePath,
		Value:              "/images*",
		Tags:               []string{"test_tag"},
		ProjectID:          1,
		RegionID:           1,
		Region:             "Luxembourg",
	}
	Policy = l7policies.L7Policy{
		ID:                 "9b4b9a23-ccac-4945-bcdd-b0e793c12cd9",
		Name:               "redirect-example.com",
		Action:             l7policies.ActionRedirectToURL,
		ListenerID:         "0388b5e5-3393-4aa8-a88a-dbcdcedf9970",
		Position:           1,
		ProjectID:          1,
		RegionID:           1,
		Region:             "Luxembourg",
		OperatingStatus:    "ONLINE",
		ProvisioningStatus: "ACTIVE",
		RedirectHttpCode:   &redirectHttpCode,
		RedirectURL:        &redirectURL,
		Tags:               []string{"test_tag"},
		CreatedAt:          createdTime,
		UpdatedAt:          &updatedTime,
		Rules:              []l7policies.L7Rule{Rule},
	}
	ExpectedPolicySlice = []l7policies.L7Policy{Policy}
	ExpectedRuleSlice   = []l7policies.L7Rule{Rule}
	Tasks1              = tasks.TaskResults{
		Tasks: []tasks.TaskID{"50f53a35-42ed-40c4-82b2-5a37fb3e00bc"},
	}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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