e2e

package module
v0.0.0-...-f91a3ff Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

README

Run the Tests

To run a single test or set of tests, you'll need the Ginkgo tool installed on your machine:

go install github.com/onsi/ginkgo/ginkgo@v1.16.2
ginkgo --help
  --focus value
    	If set, ginkgo will only run specs that match this regular expression. Can be specified multiple times, values are ORed.

Run image-cri-shim Tests

Test the image-cri-shim component that pulls up the cluster through sealos

sealos run labring/kubernetes:v1.25.0
ginkgo -v --forces="image-cri-shim test" e2e

Testdata

using bindata to package testdata

https://github.com/go-bindata/go-bindata/tree/v3.1.1

cd test/e2e && go-bindata -nometadata -pkg testdata -ignore=testdata.go -o testdata/testdata.go testdata/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier struct {
	LocalCmd        cmd2.Interface
	RemoteCmd       cmd2.Interface
	RemoteSealosCmd *cmd2.SealosCmd

	Infra          *terraform.InfraDetail
	RunImages      []string
	ClusterName    string
	ImageName      string
	PatchImageName string
	PatchImageTar  string
	ImageTar       string
	TestDir        string
	SSH            *v1beta1.SSH
	// contains filtered or unexported fields
}

func NewApplier

func NewApplier(infra *terraform.InfraDetail) (*Applier, error)

func (*Applier) CheckNodeNum

func (a *Applier) CheckNodeNum(num int)

func (*Applier) FetchRemoteKubeConfig

func (a *Applier) FetchRemoteKubeConfig()

func (*Applier) WaitSSHReady

func (a *Applier) WaitSSHReady() error

Directories

Path Synopsis
suites
Code generated for package main by go-bindata DO NOT EDIT.
Code generated for package main by go-bindata DO NOT EDIT.
testhelper
cmd

Jump to

Keyboard shortcuts

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