common

package
v0.0.0-...-317aa01 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Release e2e tests

Release e2e tests contains two test suites.

  • Please look into README.md for release-service-suite.
  • Please look into README.md for release-pipelines-suite.

Documentation

Index

Constants

View Source
const (
	ApplicationNameDefault       string = "appstudio"
	ReleaseStrategyPolicyDefault string = "mvp-policy"
	ReleaseStrategyPolicy        string = "policy"

	RedhatAppstudioUserSecret            string = "hacbs-release-tests-token"
	RedhatAppstudioQESecret              string = "redhat-appstudio-qe-bot-token"
	HacbsReleaseTestsTokenSecret         string = "redhat-appstudio-registry-pull-secret"
	PublicSecretNameAuth                 string = "cosign-public-key"
	ReleasePipelineServiceAccountDefault string = "release-service-account"

	SourceReleasePlanName          string = "source-releaseplan"
	SecondReleasePlanName          string = "the-second-releaseplan"
	TargetReleasePlanAdmissionName string = "demo"
	ReleasePvcName                 string = "release-pvc"
	ReleaseEnvironment             string = "production"

	ReleaseCreationTimeout              = 5 * time.Minute
	ReleasePipelineRunCreationTimeout   = 10 * time.Minute
	ReleasePipelineRunCompletionTimeout = 60 * time.Minute
	BuildPipelineRunCompletionTimeout   = 60 * time.Minute
	BuildPipelineRunCreationTimeout     = 10 * time.Minute
	ReleasePlanStatusUpdateTimeout      = 1 * time.Minute
	DefaultInterval                     = 100 * time.Millisecond

	// Pipelines constants
	ComponentName                   string = "dc-metro-map"
	GitSourceComponentUrl           string = "https://github.com/scoheb/dc-metro-map"
	AdditionalComponentName         string = "simple-python"
	AdditionalGitSourceComponentUrl string = "https://github.com/devfile-samples/devfile-sample-python-basic"
	ReleasedImagePushRepo           string = "quay.io/redhat-appstudio-qe/dcmetromap"
	AdditionalReleasedImagePushRepo string = "quay.io/redhat-appstudio-qe/simplepython"
	PyxisStageImagesApiEndpoint     string = "https://pyxis.preprod.api.redhat.com/v1/images/id/"

	// EC constants
	EcPolicyLibPath     = "github.com/enterprise-contract/ec-policies//policy/lib"
	EcPolicyReleasePath = "github.com/enterprise-contract/ec-policies//policy/release"
	EcPolicyDataBundle  = "oci::quay.io/redhat-appstudio-tekton-catalog/data-acceptable-bundles:latest"
	EcPolicyDataPath    = "github.com/release-engineering/rhtap-ec-policy//data"

	// Service constants
	ApplicationName string = "application"
)

Variables

View Source
var (
	RelSvcCatalogURL      string = utils.GetEnv("RELEASE_SERVICE_CATALOG_URL", "https://github.com/konflux-ci/release-service-catalog")
	RelSvcCatalogRevision string = utils.GetEnv("RELEASE_SERVICE_CATALOG_REVISION", "staging")
)

Pipelines variables

View Source
var ManagednamespaceSecret = []corev1.ObjectReference{
	{Name: RedhatAppstudioUserSecret},
}

Functions

func CreateComponentByCDQ

func CreateComponentByCDQ(devFw framework.Framework, devNamespace, managedNamespace, appName, compName string, sourceGitURL string) *appservice.Component

func DoesDigestExistInQuay

func DoesDigestExistInQuay(repoURL string, digest string) (bool, error)

repoURL format example: quay.io/redhat-appstudio-qe/dcmetromap

func NewFramework

func NewFramework(workspace string) *framework.Framework

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