definitions

package
v0.0.0-...-433dfa3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 6 Imported by: ? modules, 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

Index

Constants

This section is empty.

Variables

View Source
var AzureNativeTests = TestDefinitions{
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, CS},
		Dir:  "azure-cs-appservice",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"sqlPassword": "2@Password@2",
			},
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["Endpoint"], "Greetings from Azure App Service")
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, CS},
		Dir:  "azure-cs-sqlserver",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["serverName"], "database.windows.net")
			},
		},
	},

	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, Go},
		Dir:  "azure-go-aci",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["containerIPv4Address"], "Welcome to Azure Container Instances!")
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, Go},
		Dir:  "azure-go-call-azure-sdk",
	},

	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, Python},
		Dir:  "azure-py-appservice",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"sqlPassword": "2@Password@2",
			},
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["endpoint"], "Greetings from Azure App Service")
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, Python},
		Dir:  "azure-py-appservice-docker",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["helloEndpoint"], "Hello, world!")
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, Python},
		Dir:  "azure-py-webserver",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"username": "testuser",
				"password": "testTEST1234+-*/",
			},
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPHelloWorld(t, stack.Outputs["public_ip"], nil)
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, Python},
		Dir:  "azure-py-call-azure-sdk",
	},

	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, TS},
		Dir:  "azure-ts-appservice",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"sqlPassword": "2@Password@2",
			},
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["endpoint"], "Greetings from Azure App Service")
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, TS},
		Dir:  "azure-ts-appservice-docker",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResultContains(t, stack.Outputs["getStartedEndpoint"], "Azure App Service")
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, TS},
		Dir:  "azure-ts-functions",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPResult(t, stack.Outputs["endpoint"], nil, func(body string) bool {
					return assert.Contains(t, body, "Hello from Node.js, Pulumi")
				})
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, TS},
		Dir:  "azure-ts-webserver",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"username": "webmaster",
				"password": "MySuperS3cretPassw0rd",
			},
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPResult(t, stack.Outputs["ipAddress"].(string), nil, func(body string) bool {
					return assert.Contains(t, body, "Hello, World")
				})
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureNativeProvider, TS},
		Dir:  "azure-ts-call-azure-sdk",
	},
}
View Source
var AzureTests = TestDefinitions{
	{
		Tags: []Tag{AzureCloud, HCL},
		Dir:  "azure-hcl-static-website",
		Options: integration.ProgramTestOptions{
			PrepareProject: helpers.HCLPrepareProject,
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPResult(t, stack.Outputs["endpoint"].(string), nil, func(body string) bool {
					return assert.Contains(t, body, "Hello, Azure!")
				})
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, CS},
		Dir:  "classic-azure-cs-webserver",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPResult(t, stack.Outputs["IpAddress"].(string), nil, func(body string) bool {
					return assert.Contains(t, body, "Hello, World")
				})
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, FS},
		Dir:  "classic-azure-fs-appservice",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"sqlPassword": "2@Password@2",
			},
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				assertAppServiceResult(t, stack.Outputs["endpoint"], func(body string) bool {
					return assert.Contains(t, body, "Greetings from Azure App Service")
				})
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, Go},
		Dir:  "classic-azure-go-webserver-component",
		Options: integration.ProgramTestOptions{
			Config: map[string]string{
				"username": "webmaster",
				"password": "Password1234!",
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, Python},
		Dir:  "classic-azure-py-arm-template",
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, Python},
		Dir:  "classic-azure-py-vm-scaleset",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPResult(t, stack.Outputs["public_address"].(string), nil, func(body string) bool {
					return assert.Contains(t, body, "nginx")
				})
			},
		},
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, TS},
		Dir:  "classic-azure-ts-stream-analytics",
	},
	{
		Tags: []Tag{AzureCloud, AzureClassicProvider, TS},
		Dir:  "classic-azure-ts-vm-scaleset",
		Options: integration.ProgramTestOptions{
			ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
				helpers.AssertHTTPResult(t, stack.Outputs["publicAddress"].(string), nil, func(body string) bool {
					return assert.Contains(t, body, "nginx")
				})
			},
		},
	},
}

Functions

This section is empty.

Types

type Tag

type Tag string
const (
	CS     Tag = "cs"
	FS     Tag = "fs"
	Go     Tag = "go"
	HCL    Tag = "hcl"
	Java   Tag = "java"
	JS     Tag = "js"
	Python Tag = "py"
	TS     Tag = "ts"
)
const AzureClassicProvider Tag = "pulumi-azure"
const AzureCloud Tag = "Azure"
const AzureNativeProvider Tag = "pulumi-azure-native"

type TestDefinition

type TestDefinition struct {
	Tags    []Tag
	Dir     string
	Options integration.ProgramTestOptions
}

type TestDefinitions

type TestDefinitions []TestDefinition

func AllTests

func AllTests() TestDefinitions

func GetTestsByTags

func GetTestsByTags(tags ...Tag) TestDefinitions

func (TestDefinitions) GetByTags

func (td TestDefinitions) GetByTags(tags ...Tag) TestDefinitions

GetByTags returns all tests that have _all_ of the given tags. No tags returns an empty result.

Jump to

Keyboard shortcuts

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