test

package
v0.0.0-...-06a57de Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName    = "test_app.example.com"
	ServerName = "test_server"
	TFiles     = []string{"bar.env", "foo.env"}
	TFolders   = []string{"dir1", "dir2"}
	TestServer = os.ExpandEnv("$PWD/../../tests/resources/test_server")
	TestDir    = os.ExpandEnv("$PWD/../../tests/resources/test_dir")

	ExpectedAppEnv = envfile.AppEnv{
		"DOMAIN": "test_app.example.com",
		"RECIPE": "test_recipe",
	}

	ExpectedApp = appPkg.App{
		Name:   AppName,
		Recipe: recipe.Get(ExpectedAppEnv["RECIPE"]),
		Domain: ExpectedAppEnv["DOMAIN"],
		Env:    ExpectedAppEnv,
		Path:   ExpectedAppFile.Path,
		Server: ExpectedAppFile.Server,
	}

	ExpectedAppFile = appPkg.AppFile{
		Path:   path.Join(TestServer, fmt.Sprintf("%s.env", AppName)),
		Server: ServerName,
	}

	ExpectedAppFiles = map[string]appPkg.AppFile{
		AppName: ExpectedAppFile,
	}
)

Functions

func MkServerAppRecipe

func MkServerAppRecipe()

func RmServerAppRecipe

func RmServerAppRecipe()

Types

This section is empty.

Jump to

Keyboard shortcuts

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