build

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: 52 Imported by: 0

README

Build tests

Contains E2E tests related to Build components.

Steps to run tests within build directory:

  1. Follow the instructions from the Readme scripts to install AppStudio in e2e mode
  2. Run the tekton chains suite: ./bin/e2e-appstudio --ginkgo.focus="chains-suite"
  3. Run the build-service suite: ./bin/e2e-appstudio --ginkgo.focus="build-service-suite"
    1. To test the build of multiple components (from multiple Github repositories), export the environment variable COMPONENT_REPO_URLS with value that points to multiple Github repo URLs, separated by a comma, e.g.: export COMPONENT_REPO_URLS=https://github.com/redhat-appstudio-qe/devfile-sample-hello-world,https://github.com/devfile-samples/devfile-sample-python-basic

Build service suite specs

  1. Verify that the creation of AppStudio component with container image source doesn't trigger PipelineRun
  2. Verify that the creation of AppStudio component with Git URL source triggers PipelineRun
    1. Verify that the PipelineRun succeeds

Tekton chains suite specs

TBD

Documentation

Index

Constants

View Source
const (
	Ec2ArmTag              = "multi-platform-e2e-arm64"
	HostConfig             = "host-config"
	ControllerNamespace    = "multi-platform-controller"
	AwsSecretName          = "awskeys"
	IbmSecretName          = "ibmkey"
	IbmKey                 = "multi-platform-tests"
	SshSecretName          = "sshkeys"
	Ec2User                = "ec2-user"
	AwsRegion              = "us-east-1"
	AwsPlatform            = "linux/arm64"
	DynamicMaxInstances    = "1"
	IbmZUrl                = "https://us-east.iaas.cloud.ibm.com/v1"
	IbmPUrl                = "https://us-south.power-iaas.cloud.ibm.com"
	CRN                    = "crn:v1:bluemix:public:power-iaas:dal10:a/934e118c399b4a28a70afdf2210d708f:8c9ef568-16a5-4aa2-bfd5-946349c9aeac::"
	MultiPlatformSecretKey = "build.appstudio.redhat.com/multi-platform-secret"
	MultiPlatformConfigKey = "build.appstudio.redhat.com/multi-platform-config"
)
View Source
const (
	COMPONENT_REPO_URLS_ENV string = "COMPONENT_REPO_URLS"
)

Variables

View Source
var (
	IbmVpc = "us-east-default-vpc"
)

Functions

func CheckParentSources

func CheckParentSources(c client.Client, tektonController *tekton.TektonController, pr *pipeline.PipelineRun)

CheckParentSources checks the sources coming from parent image are all included in the built source image. This check is applied to every build for which source build is enabled, then the several prerequisites for including parent sources are handled as well.

Types

type EnvCredentialsProvider

type EnvCredentialsProvider struct {
}

func (EnvCredentialsProvider) Retrieve

Jump to

Keyboard shortcuts

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