...

Package gcp

import "edge-infra.dev/test/framework/gcp"
Overview
Index
Subdirectories

Overview ▾

Package gcp provides test fraemwork utilities and configuration for integration tests against GCP.

Variables

GCloud contains all of the configuration options related to GCP. If your specific test suites configuration options wouldn't be used by other tests, they should be put in the suite config, not here. This struct is registered with the test framework config module so that its values can be set by ff.

var GCloud struct {
    ProjectID        string `name:"project-id" description:"gcp project to use for tests"`
    StorageBucket    string `name:"storage-bucket" description:"google cloud storage bucket name"`
    FolderID         string `name:"folder-id" description:"gcp folder id to use for tests"`
    BillingAccount   string `name:"billing-account" description:"gcp billing account"`
    ArtifactRegistry struct {
        ProjectID  string `name:"registry-project-id" description:"gcp project hosting the artifact registry" default:"ret-edge-pltf-preprod-infra"`
        Location   string `name:"registry-location" description:"location where artifact registry lives" default:"us-east1"`
        ResourceID string `name:"registry-resource-id" description:"the gcp resource id" default:"preprod"`
    }
}

func Defaults

func Defaults()

Defaults initializes default values that aren't set, should be called after framework.HandleFlags(). These values aren't set as defaults via the configuration struct field tags because they are computed or defined as constants in other packages.

func NeedsBillingAccount

func NeedsBillingAccount(f *framework.Framework)

NeedsBillingAaccount skips a test if a billing account isn't provided

func NeedsFolderID

func NeedsFolderID(f *framework.Framework)

NeedsFolderID skips a test if the folder ID isn't provided

func NeedsProjectID

func NeedsProjectID(f *framework.Framework)

NeedsProjectID skips a test if a project ID isn't provided.

func NeedsStorageBucket

func NeedsStorageBucket(f *framework.Framework)

NeedsStorageBubkcet skips a test if a storage bucket isn't provided

Subdirectories

Name Synopsis
..
pubsub