tests

package
v0.0.0-...-5957262 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NamespaceName = os.Getenv("NAMESPACE_NAME")

NamespaceName - Namespace name

View Source
var ServicebusTFOptions = &terraform.Options{
	TerraformDir: "../../",

	Vars: map[string]interface{}{
		"namespace_name":      NamespaceName,
		"resource_group_name": resourceGroup,
		"sku":                 "Standard",
		"tags":                map[string]string{"source": "terraform"},
		"namespace_authorization_rules": append(listOfNSAuthRules, map[string]interface{}{
			"policy_name": "policy",
			"claims": map[string]string{
				"listen": "true",
				"send":   "true",
				"manage": "false",
			},
		}),
		"topics": append(listOfTopics, map[string]interface{}{
			"subscriptions": append(listOfSubscriptions, map[string]interface{}{
				"name":                                 "sub_test",
				"max_delivery_count":                   5.0,
				"lock_duration":                        "PT5M",
				"forward_to":                           "",
				"dead_lettering_on_message_expiration": "true",
				"filter_type":                          "SqlFilter",
				"sql_filter":                           "color = 'red'",
				"action":                               "",
			}),
			"name":                         "topic_test",
			"default_message_ttl":          "PT30M",
			"enable_partitioning":          "true",
			"requires_duplicate_detection": "true",
			"support_ordering":             "true",
			"authorization_rules": append(listOfTopicAuthRules, map[string]interface{}{
				"policy_name": "policy",
				"claims": map[string]string{
					"listen": "true",
					"send":   "true",
					"manage": "false",
				},
			}),
		}),
	},
}

ServicebusTFOptions common terraform options used for unit and integration testing

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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