scenario

package
v0.77.3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeAWS

func InitializeAWS(ctx *godog.ScenarioContext)

InitializeAWS used default AWS environment variables so AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY must be set. The credentials provided in those environment variables should be able to put, list, and delete objects on the bucket.

func InitializeCacheCompiledReleases

func InitializeCacheCompiledReleases(ctx *godog.ScenarioContext)

InitializeCacheCompiledReleases requires environment configuration to interact with a Tanzu Ops Manager.

Environment

  • AWS_ACCESS_KEY_ID: credentials with access to an empty S3 bucket where the release will be cached
  • AWS_SECRET_ACCESS_KEY: credentials with access to empty an S3 bucket where the release will be cached
  • BOSH_ALL_PROXY: this environment variable is required by the BOSH client used in Kiln. To see how to construct it see [BOSH CLI Tunneling]: https://bosh.io/docs/cli-tunnel/
  • OM_TARGET: should be set to a url like https://pcf.example.com
  • OM_USERNAME: should be set to the Ops Manager username
  • OM_PASSWORD: should be set to the Ops Manager password
  • OM_PRIVATE_KEY: should be set with a private key in PEM format that can be used to ssh to the ops manager

## Debugging

The AWS credentials are the default environment variables for the AWS CLI. Note you can change the bucket used for testing by changing the value in the feature file. So you can check if they will work by invoking the following command:

aws s3 ls s3://hello-tile-releases

The OM_TARGET, OM_USERNAME, and OM_PASSWORD behave as they would with the OM CLI. You can ensure they are correct by running any om command. For example:

om staged-products

Note, where the scenario uses the om CLI, the command inherits the parent's environment. So if needed you can set OM_SKIP_SSL_VALIDATION and other om environment variables.

OM_PRIVATE_KEY is not a standard om environment variable; it is used by kiln not OM. To ensure it works you can execute:

echo "${OM_PRIVATE_KEY}" > /tmp/om.key
chmod 0400 /tmp/om.key
ssh -i /tmp/om.key "ubuntu@pcf.example.com"

func InitializeEnv

func InitializeEnv(ctx *godog.ScenarioContext)

func InitializeExec

func InitializeExec(ctx *godog.ScenarioContext)

func InitializeGitHub

func InitializeGitHub(ctx *godog.ScenarioContext)

func InitializeKiln

func InitializeKiln(ctx *godog.ScenarioContext)

func InitializeRegex

func InitializeRegex(ctx *godog.ScenarioContext)

func InitializeTanzuNetwork

func InitializeTanzuNetwork(ctx *godog.ScenarioContext)

func InitializeTile

func InitializeTile(ctx *godog.ScenarioContext)

InitializeTile provides some basic tile and tile repo interaction steps.

Most other steps require iHaveARepositoryCheckedOutAtRevision to have been run because it sets the tile repo path on the context.

func InitializeTileSourceCode

func InitializeTileSourceCode(ctx *godog.ScenarioContext)

Types

This section is empty.

Jump to

Keyboard shortcuts

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