Dataset Viewer
Auto-converted to Parquet Duplicate
element_type
stringclasses
4 values
project_name
stringclasses
1 value
uuid
stringlengths
36
36
name
stringlengths
0
112
imports
stringlengths
0
2.45k
structs
stringclasses
523 values
interfaces
stringclasses
5 values
file_location
stringlengths
63
170
code
stringlengths
15
138k
global_vars
stringclasses
135 values
package
stringclasses
525 values
tags
stringclasses
1 value
file
eco-gotests
6a1f077a-72e0-4662-9060-f033abe2f5ec
config.go
Imports Used: import ( "log" "os" "path/filepath" "runtime" "github.com/golang/glog" "github.com/kelseyhightower/envconfig" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-gotests/tests/internal/config" "gopkg.in/yaml.v2" )
File Location: github.com/eco-gotests/tests/accel/internal/accelconfig/config.go
package accelconfig import ( "log" "os" "path/filepath" "runtime" "github.com/golang/glog" "github.com/kelseyhightower/envconfig" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-gotests/tests/internal/config" "gopkg.in/yaml.v2" ) const ( // PathToDefaultAccelParamsFile path...
Package Name: package accelconfig
function
eco-gotests
aa14300d-7357-4eba-b98b-683f974ac5e2
NewAccelConfig
Imports Used: ['"log"', '"path/filepath"', '"runtime"', '"github.com/golang/glog"', '"github.com/kelseyhightower/envconfig"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-gotests/tests/internal/config"']
Structs Used: ['AccelConfig']
File Location: github.com/eco-gotests/tests/accel/internal/accelconfig/config.go
func NewAccelConfig() *AccelConfig { log.Print("Creating new AccelConfig") var accelConfig AccelConfig accelConfig.GeneralConfig = config.NewConfig() _, filename, _, _ := runtime.Caller(0) baseDir := filepath.Dir(filename) configFile := filepath.Join(baseDir, PathToDefaultAccelParamsFile) err := readFile(&acc...
Package Name: accelconfig
function
eco-gotests
9b9804e3-1ca3-4169-ab2c-278e9f655ce3
readFile
Imports Used: ['"os"']
Structs Used: ['AccelConfig']
File Location: github.com/eco-gotests/tests/accel/internal/accelconfig/config.go
func readFile(accelConfig *AccelConfig, configFile string) error { openedConfigFile, err := os.Open(configFile) if err != nil { return err } defer func() { _ = openedConfigFile.Close() }() decoder := yaml.NewDecoder(openedConfigFile) err = decoder.Decode(&accelConfig) return err }
Package Name: accelconfig
file
eco-gotests
7fa96bfe-4793-4b9c-bf9e-cbb3f70680f1
accelinittools.go
Imports Used: import ( "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-gotests/tests/accel/internal/accelconfig" "github.com/openshift-kni/eco-gotests/tests/internal/inittools" )
File Location: github.com/eco-gotests/tests/accel/internal/accelinittools/accelinittools.go
package accelinittools import ( "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-gotests/tests/accel/internal/accelconfig" "github.com/openshift-kni/eco-gotests/tests/internal/inittools" ) var ( // HubAPIClient provides API access to hub cluster. HubAPIClient *clients.Settings //...
Package Name: package accelinittools
function
eco-gotests
28aba1d0-20c2-4353-8501-dde90e12f54c
init
Imports Used: ['"github.com/openshift-kni/eco-gotests/tests/accel/internal/accelconfig"', '"github.com/openshift-kni/eco-gotests/tests/internal/inittools"']
File Location: github.com/eco-gotests/tests/accel/internal/accelinittools/accelinittools.go
func init() { HubAPIClient = inittools.APIClient AccelConfig = accelconfig.NewAccelConfig() SpokeAPIClient = AccelConfig.SpokeAPIClient }
Package Name: accelinittools
file
eco-gotests
bcae3e3c-aa60-4a2f-9f36-74d08ce63d80
const.go
File Location: github.com/eco-gotests/tests/accel/internal/accelparams/const.go
package accelparams const ( // Label represents accel label that can be used for test cases selection. Label = "accel" )
Package Name: package accelparams
file
eco-gotests
894ddfa2-3f06-4dbd-abae-37dc7dfa28b2
upgrade_suite_test.go
Imports Used: import ( "runtime" "testing" "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/pkg/reportxml" . "github.com/openshift-kni/eco-gotests/tests/accel/internal/accelinittools" "github.com/openshif...
File Location: github.com/eco-gotests/tests/accel/upgrade/upgrade_suite_test.go
package upgrade import ( "runtime" "testing" "time" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/pkg/reportxml" . "github.com/openshift-kni/eco-gotests/tests/accel/internal/accelinittools" "github.com/opens...
Package Name: package upgrade
function
eco-gotests
12b6cef4-7561-42e6-b7ea-8a57bb042546
TestUpgrade
Imports Used: ['"testing"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/upgrade_suite_test.go
func TestUpgrade(t *testing.T) { _, reporterConfig := GinkgoConfiguration() reporterConfig.JUnitReport = AccelConfig.GetJunitReportPath(currentFile) RegisterFailHandler(Fail) RunSpecs(t, "Acceleration upgrade test", Label(upgradeparams.Labels...), reporterConfig) }
Global Variables: {'_': 'ReportAfterSuite("", func(report Report) {\n\treportxml.Create(report, AccelConfig.GetReportPath(), AccelConfig.TCPrefix)\n})'}
Package Name: upgrade
file
eco-gotests
de0747f2-0921-433f-990e-d30e13613022
create.go
Imports Used: import ( "fmt" "time" "github.com/golang/glog" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/deployment" "github.com/openshift-kni/eco-goinfra/pkg/pod" "github.com/openshift-kni/eco-goinfra/pkg/route" "github.com/openshift-kni/eco-goinfra/pkg/service...
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/createres/create.go
package createres import ( "fmt" "time" "github.com/golang/glog" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/deployment" "github.com/openshift-kni/eco-goinfra/pkg/pod" "github.com/openshift-kni/eco-goinfra/pkg/route" "github.com/openshift-kni/eco-goinfra/pkg/se...
Package Name: package createres
function
eco-gotests
25ee7ad8-060f-4e24-a143-e331be50b948
Workload
Imports Used: ['"fmt"', '"time"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/deployment"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/createres/create.go
func Workload(apiClient *clients.Settings, workloadImage string) (*deployment.Builder, error) { glog.V(90).Infof("Creating Deployment %q", upgradeparams.DeploymentName) containerConfig, err := pod.NewContainerBuilder(upgradeparams.DeploymentName, upgradeinittools. AccelConfig.IBUWorkloadImage, []string{"/hello-ope...
Package Name: createres
function
eco-gotests
0607b5df-e744-41f7-ad86-87c58fa114c2
Service
Imports Used: ['"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/service"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/createres/create.go
func Service(apiClient *clients.Settings, port int32) (*service.Builder, error) { glog.V(90).Infof("Creating Service %q", upgradeparams.DeploymentName) glog.V(90).Infof("Defining ServicePort") svcPort, err := service.DefineServicePort( upgradeparams.ServicePort, upgradeparams.ServicePort, corev1.Protocol("TC...
Package Name: createres
function
eco-gotests
8efd033b-4d2f-4b59-8a7f-563eeb3c3457
WorkloadRoute
Imports Used: ['"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/route"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/createres/create.go
func WorkloadRoute(apiClient *clients.Settings) (*route.Builder, error) { workloadRoute, err := route.NewBuilder( apiClient, upgradeparams.DeploymentName, upgradeparams.TestNamespaceName, upgradeparams.DeploymentName).Create() if err != nil { glog.V(90).Infof("Error creating route: %v", err) return nil, err ...
Package Name: createres
file
eco-gotests
83f151b8-9302-4b87-9ac3-87277e78c96a
delete.go
Imports Used: import ( "context" "time" "github.com/golang/glog" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/pkg/pod" "github.com/openshift-kni/eco-goinfra/pkg/service" "k8s.io/apimachinery/pkg/util/wait" "githu...
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/deleteres/delete.go
package deleteres import ( "context" "time" "github.com/golang/glog" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/pkg/pod" "github.com/openshift-kni/eco-goinfra/pkg/service" "k8s.io/apimachinery/pkg/util/wait" "...
Package Name: package deleteres
function
eco-gotests
f247c097-ca59-4c14-8d0f-fc8f916f731c
Workload
Imports Used: ['"context"', '"time"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"k8s.io/apimachinery/pkg/util/wait"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgr...
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/deleteres/delete.go
func Workload(apiClient *clients.Settings) error { var ( oldPods []*pod.Builder err error ) pollSuccess := false err = wait.PollUntilContextTimeout( context.TODO(), pollIntervalSecs, retryDurationSecs, true, func(ctx context.Context) (bool, error) { oldPods, err = pod.List(apiClient, upgradeparams.Te...
Package Name: deleteres
function
eco-gotests
a394a461-6c85-4648-8fb8-2fbeacfb94de
Service
Imports Used: ['"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/service"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/deleteres/delete.go
func Service(apiClient *clients.Settings) error { glog.V(90).Infof("Deleting Service %q in %q namespace", upgradeparams.DeploymentName, upgradeparams.TestNamespaceName) svcDemo, err := service.Pull(apiClient, upgradeparams.DeploymentName, upgradeparams.TestNamespaceName) if err != nil && svcDemo == nil { glog....
Package Name: deleteres
function
eco-gotests
44b8c6e3-a174-4daf-8805-8d38732e7ab0
Namespace
Imports Used: ['"time"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/deleteres/delete.go
func Namespace(apiClient *clients.Settings) error { glog.V(90).Infof("Deleting namespace %q", upgradeparams.TestNamespaceName) nsDemo, err := namespace.Pull(apiClient, upgradeparams.TestNamespaceName) if err != nil && nsDemo == nil { glog.V(90).Infof("Namespace %q not found", upgradeparams.TestNamespaceName) ...
Package Name: deleteres
file
eco-gotests
6d094d3d-d24d-4769-b5ee-52737e3c985c
const.go
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/upgradeparams/const.go
package upgradeparams const ( // Label represents accel label that can be used for test cases selection. Label = "upgrade" // Y stream. Y = "Y" // Z stream. Z = "Z" // X stream. X = "X" )
Package Name: package upgradeparams
file
eco-gotests
233cdeda-8a94-41e0-bd87-e9d8254bc52e
vars.go
Imports Used: import ( "fmt" "github.com/openshift-kni/eco-gotests/tests/accel/internal/accelparams" "github.com/openshift-kni/k8sreporter" v1 "github.com/openshift/api/config/v1" corev1 "k8s.io/api/core/v1" )
File Location: github.com/eco-gotests/tests/accel/upgrade/internal/upgradeparams/vars.go
package upgradeparams import ( "fmt" "github.com/openshift-kni/eco-gotests/tests/accel/internal/accelparams" "github.com/openshift-kni/k8sreporter" v1 "github.com/openshift/api/config/v1" corev1 "k8s.io/api/core/v1" ) var ( // Labels represents the range of labels that can be used for test cases selection. La...
Package Name: package upgradeparams
file
eco-gotests
fa56dec4-20cc-4777-a6ca-688f085b5f16
upgrade.go
Imports Used: import ( "fmt" "time" "github.com/golang/glog" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/clusteroperator" "github.com/openshift-kni/eco-goinfra/pkg/clusterversion" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift...
File Location: github.com/eco-gotests/tests/accel/upgrade/tests/upgrade.go
package upgrade import ( "fmt" "time" "github.com/golang/glog" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/clusteroperator" "github.com/openshift-kni/eco-goinfra/pkg/clusterversion" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/opensh...
Package Name: package upgrade
function
eco-gotests
9bb72a5d-81c5-42a3-870d-04d99916a4e6
startTestWorkloadAndGetRoute
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/route"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/createres"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/upgradeparams"']
File Location: github.com/eco-gotests/tests/accel/upgrade/tests/upgrade.go
func startTestWorkloadAndGetRoute() *route.Builder { By("Check if workload app namespace exists") if _, err := namespace.Pull(HubAPIClient, upgradeparams.TestNamespaceName); err == nil { deleteWorkloadNamespace() } By("Create workload app namespace") _, err := namespace.NewBuilder(HubAPIClient, upgradeparams....
Global Variables: {'_': 'Describe("OCP_UPGRADE", Ordered, Label("minor"), func() {\n\tContext("OCP", func() {\n\t\tIt("should upgrade successfully", reportxml.ID("72245"), func() {\n\t\t\tBy("Get the clusterversion struct")\n\t\t\tversion, err := clusterversion.Pull(HubAPIClient)\n\t\t\tExpect(err).ToNot(HaveOccurred()...
Package Name: upgrade
function
eco-gotests
ce6063a8-b75e-4611-9236-0eb5e1d4ad51
deleteWorkloadNamespace
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-gotests/tests/accel/upgrade/internal/deleteres"']
File Location: github.com/eco-gotests/tests/accel/upgrade/tests/upgrade.go
func deleteWorkloadNamespace() { By("Delete workload") err := deleteres.Namespace(HubAPIClient) Expect(err).NotTo(HaveOccurred(), "error deleting workload namespace %v", err) }
Package Name: upgrade
function
eco-gotests
3391764d-710f-4ca0-a7a4-45c75799a708
verifyWorkloadReachable
Imports Used: ['"fmt"', '"time"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/route"', '"github.com/openshift-kni/eco-gotests/tests/internal/url"']
File Location: github.com/eco-gotests/tests/accel/upgrade/tests/upgrade.go
func verifyWorkloadReachable(workloadRoute *route.Builder) { By("Verify workload is reachable") Eventually(func() bool { _, rc, err := url.Fetch(fmt.Sprintf("http://%s", workloadRoute.Object.Spec.Host), "get", true) glog.V(90).Infof("trying to reach the workload with error %v", err) return rc == 200 }, time....
Package Name: upgrade
test
eco-gotests
42d267a4-0c2d-4a21-bbe4-dff1934480dd
OCP_UPGRADE
Imports Used: ['"time"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clusteroperator"', '"github.com/openshift-kni/eco-goinfra/pkg/clusterversion"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-goinfra...
File Location: github.com/eco-gotests/tests/accel/upgrade/tests/upgrade.go
Describe("OCP_UPGRADE", Ordered, Label("minor"), func() { Context("OCP", func() { It("should upgrade successfully", reportxml.ID("72245"), func() { By("Get the clusterversion struct") version, err := clusterversion.Pull(HubAPIClient) Expect(err).ToNot(HaveOccurred(), "error retrieving clusterversion") gl...
Global Variables: {'_': 'Describe("OCP_UPGRADE", Ordered, Label("minor"), func() {\n\tContext("OCP", func() {\n\t\tIt("should upgrade successfully", reportxml.ID("72245"), func() {\n\t\t\tBy("Get the clusterversion struct")\n\t\t\tversion, err := clusterversion.Pull(HubAPIClient)\n\t\t\tExpect(err).ToNot(HaveOccurred()...
Package Name: upgrade
test case
eco-gotests
b36fb8db-cdc1-4aac-9700-f3de8931f83f
should upgrade successfully
Imports Used: ['"time"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/clusteroperator"', '"github.com/openshift-kni/eco-goinfra/pkg/clusterversion"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-goinfra...
File Location: github.com/eco-gotests/tests/accel/upgrade/tests/upgrade.go
It("should upgrade successfully", reportxml.ID("72245"), func() { By("Get the clusterversion struct") version, err := clusterversion.Pull(HubAPIClient) Expect(err).ToNot(HaveOccurred(), "error retrieving clusterversion") glog.V(90).Infof("got the clusterversion struct %+v", version) By("Deploy a workloa...
file
eco-gotests
f16b20ab-c62a-4a57-aa4e-eeaf325fab7e
config.go
Imports Used: import ( "log" "github.com/openshift-kni/eco-gotests/tests/internal/config" )
File Location: github.com/eco-gotests/tests/assisted/internal/assistedconfig/config.go
package assistedconfig import ( "log" "github.com/openshift-kni/eco-gotests/tests/internal/config" ) // AssistedConfig type contains assisted installer configuration. type AssistedConfig struct { *config.GeneralConfig } // NewAssistedConfig returns instance of AssistedConfig type. func NewAssistedConfig() *Assis...
Package Name: package assistedconfig
function
eco-gotests
efb9ac04-f0de-4f6c-bb42-c1917d83f92f
NewAssistedConfig
Imports Used: ['"log"', '"github.com/openshift-kni/eco-gotests/tests/internal/config"']
Structs Used: ['AssistedConfig']
File Location: github.com/eco-gotests/tests/assisted/internal/assistedconfig/config.go
func NewAssistedConfig() *AssistedConfig { log.Print("Creating new AssistedConfig struct") var assistedConfig AssistedConfig assistedConfig.GeneralConfig = config.NewConfig() return &assistedConfig }
Package Name: assistedconfig
file
eco-gotests
59f2f092-4109-487a-867a-610496944e57
const.go
File Location: github.com/eco-gotests/tests/assisted/internal/assistedparams/const.go
package assistedparams const ( // Label represents assisted label that can be used for test cases selection. Label = "assisted" )
Package Name: package assistedparams
file
eco-gotests
ac67ac53-9eff-45c0-aa70-1000c9aec32d
find.go
Imports Used: import ( "fmt" "strings" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/pod" "github.com/openshift-kni/eco-gotests/tests/internal/cluster" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" )
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
package find import ( "fmt" "strings" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/pod" "github.com/openshift-kni/eco-gotests/tests/internal/cluster" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) // ClusterVersio...
Package Name: package find
function
eco-gotests
4648fc34-6ae0-4723-8c5c-d3bd860a6278
ClusterVersion
Imports Used: ['"fmt"', '"strings"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
func ClusterVersion(clusterObj cluster.APIClientGetter) (string, error) { clusterVersion, err := cluster.GetOCPClusterVersion(clusterObj) if err != nil { return "", err } if !clusterVersion.Exists() { return "", fmt.Errorf("cluster version not found") } splitVersion := strings.Split(clusterVersion.Object.St...
Package Name: find
function
eco-gotests
e5bae1eb-6f44-474b-9ae4-27377fe504af
SpokeClusterName
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
func SpokeClusterName(hubAPIClient, spokeAPIClient *clients.Settings) (string, error) { spokeClusterVersion, err := cluster.GetOCPClusterVersion(spokeAPIClient) if err != nil { return "", err } if !spokeClusterVersion.Exists() { return "", fmt.Errorf("spoke cluster version not found") } spokeClusterID := sp...
Package Name: find
function
eco-gotests
9265a751-d7a9-45ca-b8e6-3496b4634c57
AssistedServicePod
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
func AssistedServicePod(apiClient *clients.Settings) (*pod.Builder, error) { return getPodBuilder(apiClient, "app=assisted-service") }
Package Name: find
function
eco-gotests
bc54b1f0-21cc-458a-97e6-01a6e10c3f02
AssistedImageServicePod
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
func AssistedImageServicePod(apiClient *clients.Settings) (*pod.Builder, error) { return getPodBuilder(apiClient, "app=assisted-image-service") }
Package Name: find
function
eco-gotests
ecc68b04-e53b-4d9c-b2b3-dcde58ef68f2
InfrastructureOperatorPod
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
func InfrastructureOperatorPod(apiClient *clients.Settings) (*pod.Builder, error) { return getPodBuilder(apiClient, "control-plane=infrastructure-operator") }
Package Name: find
function
eco-gotests
097f6bf7-893b-4ff8-beed-c6a18d784747
getPodBuilder
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/find/find.go
func getPodBuilder(apiClient *clients.Settings, label string) (*pod.Builder, error) { if apiClient == nil { return nil, fmt.Errorf("apiClient is nil") } podList, err := pod.ListInAllNamespaces(apiClient, metav1.ListOptions{LabelSelector: label}) if err != nil { return nil, fmt.Errorf("failed to list pods on cl...
Package Name: find
file
eco-gotests
0d770397-0185-47f4-bfba-4ff092d4bfb0
installconfig.go
Imports Used: import ( installerTypes "github.com/openshift/installer/pkg/types" "gopkg.in/yaml.v2" )
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/installconfig/installconfig.go
package installconfig import ( installerTypes "github.com/openshift/installer/pkg/types" "gopkg.in/yaml.v2" ) // NewInstallConfigFromString returns an unmarshalled install-config from provided string. func NewInstallConfigFromString(config string) (installerTypes.InstallConfig, error) { var installConfigData insta...
Package Name: package installconfig
function
eco-gotests
084735d1-8062-4723-8df6-9902a7b99c46
NewInstallConfigFromString
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/installconfig/installconfig.go
func NewInstallConfigFromString(config string) (installerTypes.InstallConfig, error) { var installConfigData installerTypes.InstallConfig err := yaml.Unmarshal([]byte(config), &installConfigData) if err != nil { return installerTypes.InstallConfig{}, err } return installConfigData, nil }
Package Name: installconfig
file
eco-gotests
128db7f7-b7e1-4405-b866-9b7c7a90c87b
meets.go
Imports Used: import ( "fmt" "net" "time" "github.com/hashicorp/go-version" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/pod" . "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpinittools" "github.com/openshift-kni/eco-gotests/tests/internal/clust...
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
package meets import ( "fmt" "net" "time" "github.com/hashicorp/go-version" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/pod" . "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpinittools" "github.com/openshift-kni/eco-gotests/tests/internal/clus...
Package Name: package meets
function
eco-gotests
5a63695d-fb5f-4f21-a082-9dc40a1a10f4
AllRequirements
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func AllRequirements(f ...func() (bool, string)) (bool, string) { for _, req := range f { met, msg := req() if !met { return met, msg } } return true, "" }
Package Name: meets
function
eco-gotests
d860c517-a1fa-4010-9495-8b9c164d49f9
HubInfrastructureOperandRunningRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubInfrastructureOperandRunningRequirement() (bool, string) { servicePodBuilder := ZTPConfig.HubAssistedServicePod() running, msg := checkPodRunning(servicePodBuilder) if !running { return running, msg } imageBuilder := ZTPConfig.HubAssistedImageServicePod() return checkPodRunning(imageBuilder) }
Package Name: meets
function
eco-gotests
2963775e-ba68-426b-8fbf-c0979e298b76
SpokeAPIClientReadyRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeAPIClientReadyRequirement() (bool, string) { if SpokeAPIClient == nil { return false, "spoke APIClient has not been initialized" } return true, "" }
Package Name: meets
function
eco-gotests
78b780f2-a63f-4820-b090-586fa9ef7547
SpokeClusterImageSetVersionRequirement
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeClusterImageSetVersionRequirement(requiredVersion string) (bool, string) { if ZTPConfig.SpokeClusterImageSet == "" { return false, "Spoke clusterimageset version was not provided through environment" } _, err := hive.PullClusterImageSet(HubAPIClient, ZTPConfig.SpokeClusterImageSet) if err != nil { re...
Package Name: meets
function
eco-gotests
d256d77d-9c6f-4323-abfe-06ec6ac872b3
HubOCPVersionRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubOCPVersionRequirement(requiredVersion string) (bool, string) { return ocpVersionRequirement(HubAPIClient, requiredVersion) }
Package Name: meets
function
eco-gotests
c14ac354-22cf-4e4b-9f37-b04e8b48e16a
SpokeOCPVersionRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeOCPVersionRequirement(requiredVersion string) (bool, string) { return ocpVersionRequirement(SpokeAPIClient, requiredVersion) }
Package Name: meets
function
eco-gotests
e8eb3c94-7057-4f89-a5ea-94f05e69e277
HubProxyConfiguredRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubProxyConfiguredRequirement() (bool, string) { return proxyConfiguredRequirement(HubAPIClient) }
Package Name: meets
function
eco-gotests
ac026fef-1689-4fcd-95c2-cad5f90f5115
SpokeProxyConfiguredRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeProxyConfiguredRequirement() (bool, string) { return proxyConfiguredRequirement(SpokeAPIClient) }
Package Name: meets
function
eco-gotests
aa1ac7cd-ff7e-4a5e-b6a1-342544523c54
HubDisconnectedRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubDisconnectedRequirement() (bool, string) { return disconnectedRequirement(HubAPIClient) }
Package Name: meets
function
eco-gotests
be06ef63-cbab-4f81-95f0-e6a53e56cf57
SpokeDisconnectedRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeDisconnectedRequirement() (bool, string) { return disconnectedRequirement(SpokeAPIClient) }
Package Name: meets
function
eco-gotests
833952d9-9184-455a-a89d-3f3b5795281b
HubConnectedRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubConnectedRequirement() (bool, string) { return connectedRequirement(HubAPIClient) }
Package Name: meets
function
eco-gotests
d954b347-339e-4e53-9db3-ba3d63c21c23
SpokeConnectedRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeConnectedRequirement() (bool, string) { return connectedRequirement(SpokeAPIClient) }
Package Name: meets
function
eco-gotests
c10ff803-307f-4754-bac2-1088743d730e
HubSingleStackIPv4Requirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubSingleStackIPv4Requirement() (bool, string) { return singleStackIPv4Requirement(HubAPIClient) }
Package Name: meets
function
eco-gotests
0f785bf6-d24c-4d5f-957c-401d09c95376
SpokeSingleStackIPv4Requirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeSingleStackIPv4Requirement() (bool, string) { return singleStackIPv4Requirement(SpokeAPIClient) }
Package Name: meets
function
eco-gotests
518da529-e476-48c4-b057-2e5293a8d388
HubSingleStackIPv6Requirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubSingleStackIPv6Requirement() (bool, string) { return singleStackIPv6Requirement(HubAPIClient) }
Package Name: meets
function
eco-gotests
c4f293a9-8e84-453f-9ddb-d07180da7599
SpokeSingleStackIPv6Requirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeSingleStackIPv6Requirement() (bool, string) { return singleStackIPv6Requirement(SpokeAPIClient) }
Package Name: meets
function
eco-gotests
47d2cf44-5314-4a41-a5ee-41889ba968b6
HubDualStackRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func HubDualStackRequirement() (bool, string) { return dualStackRequirement(HubAPIClient) }
Package Name: meets
function
eco-gotests
268a62d7-68c5-4144-bdd9-06cbfcfcae11
SpokeDualStackRequirement
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func SpokeDualStackRequirement() (bool, string) { return dualStackRequirement(SpokeAPIClient) }
Package Name: meets
function
eco-gotests
bd2ee70d-ab0c-4a91-bc0d-9d3b27915189
checkPodRunning
Imports Used: ['"fmt"', '"time"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func checkPodRunning(podBuilder *pod.Builder) (bool, string) { err := podBuilder.WaitUntilInStatus(corev1.PodRunning, time.Second*10) if err != nil { return false, fmt.Sprintf("%s pod found but was not running", podBuilder.Definition.Name) } return true, "" }
Package Name: meets
function
eco-gotests
9e7ecc6f-31d9-4bfc-94eb-78902511c584
ocpVersionRequirement
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func ocpVersionRequirement(clusterobj cluster.APIClientGetter, requiredVersion string) (bool, string) { clusterVersion, err := cluster.GetOCPClusterVersion(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get clusterversion from %s cluster: %v", getClusterType(clusterobj), err) } ocpVersion, _ :=...
Package Name: meets
function
eco-gotests
37995d60-f1f3-4392-adea-17c7199bea6f
proxyConfiguredRequirement
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func proxyConfiguredRequirement(clusterobj cluster.APIClientGetter) (bool, string) { ocpProxy, err := cluster.GetOCPProxy(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get cluster proxy from %s cluster: %v", getClusterType(clusterobj), err) } if ocpProxy.Object.Status.HTTPProxy == "" && ocpP...
Package Name: meets
function
eco-gotests
496ad415-6887-4d7a-805c-57a6d359c790
disconnectedRequirement
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func disconnectedRequirement(clusterobj cluster.APIClientGetter) (bool, string) { clusterVersion, err := cluster.GetOCPClusterVersion(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get clusterversion from %s cluster: %v", getClusterType(clusterobj), err) } for _, condition := range clusterVersi...
Package Name: meets
function
eco-gotests
10c71ef2-e92f-440c-a89a-d07eddd694d1
connectedRequirement
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func connectedRequirement(clusterobj cluster.APIClientGetter) (bool, string) { clusterVersion, err := cluster.GetOCPClusterVersion(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get clusterversion from %s cluster: %v", getClusterType(clusterobj), err) } for _, condition := range clusterVersion....
Package Name: meets
function
eco-gotests
600df0cc-45fb-472f-b6a0-f7cab5763998
singleStackIPv4Requirement
Imports Used: ['"fmt"', '"net"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func singleStackIPv4Requirement(clusterobj cluster.APIClientGetter) (bool, string) { ocpNetwork, err := cluster.GetOCPNetworkConfig(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get cluster network from %s cluster: %v", getClusterType(clusterobj), err) } for _, clusterNet := range ocpNetwork.O...
Package Name: meets
function
eco-gotests
ffee1340-f6a8-408d-8cae-3f562f5f45aa
singleStackIPv6Requirement
Imports Used: ['"fmt"', '"net"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func singleStackIPv6Requirement(clusterobj cluster.APIClientGetter) (bool, string) { ocpNetwork, err := cluster.GetOCPNetworkConfig(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get cluster network from %s cluster: %v", getClusterType(clusterobj), err) } for _, clusterNet := range ocpNetwork.O...
Package Name: meets
function
eco-gotests
81708412-b1b6-44e5-a923-2ca63ec4c6ba
dualStackRequirement
Imports Used: ['"fmt"', '"net"', '"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func dualStackRequirement(clusterobj cluster.APIClientGetter) (bool, string) { ipv4 := false ipv6 := false hubNetwork, err := cluster.GetOCPNetworkConfig(clusterobj) if err != nil { return false, fmt.Sprintf("Failed to get cluster network from %s cluster: %v", getClusterType(clusterobj), err) } for _, cluster...
Package Name: meets
function
eco-gotests
d58cb1c1-3c65-41b8-871e-11e54e17e675
getClusterType
Imports Used: ['"github.com/openshift-kni/eco-gotests/tests/internal/cluster"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/meets/meets.go
func getClusterType(clusterobj cluster.APIClientGetter) string { if clusterobj == HubAPIClient { return "hub" } return "spoke" }
Package Name: meets
file
eco-gotests
8c9417da-35bc-46e6-aeb3-81106e71c3bd
setup.go
Imports Used: import ( "fmt" "math/rand" "time" "github.com/openshift-kni/eco-goinfra/pkg/assisted" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/...
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
package setup import ( "fmt" "math/rand" "time" "github.com/openshift-kni/eco-goinfra/pkg/assisted" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted...
Package Name: package setup
function
eco-gotests
486f4dbb-a112-402b-81fa-3951bba1f1fc
NewSpokeCluster
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/clients"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func NewSpokeCluster(apiClient *clients.Settings) *SpokeClusterResources { return &SpokeClusterResources{apiClient: apiClient} }
Package Name: setup
function
eco-gotests
969edfe0-c84f-411d-8e9a-73f4e6bf5b61
WithName
Imports Used: ['"fmt"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithName(name string) *SpokeClusterResources { if name == "" { spoke.err = fmt.Errorf("spoke name cannot be empty") } spoke.Name = name return spoke }
Package Name: setup
function
eco-gotests
f317292e-bb93-4dc0-8ab1-a2dcb4fdea64
WithAutoGeneratedName
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithAutoGeneratedName() *SpokeClusterResources { spoke.Name = generateName(12) return spoke }
Package Name: setup
function
eco-gotests
6475ccb9-778a-4334-8f64-1ca8fa4033b0
WithDefaultNamespace
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/namespace"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultNamespace() *SpokeClusterResources { spoke.Namespace = namespace.NewBuilder(spoke.apiClient, spoke.Name) return spoke }
Package Name: setup
function
eco-gotests
d18a4833-0b86-48bd-9a78-e34b012a533c
WithDefaultPullSecret
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-goinfra/pkg/secret"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultPullSecret() *SpokeClusterResources { spoke.PullSecret = secret.NewBuilder( spoke.apiClient, fmt.Sprintf("%s-pull-secret", spoke.Name), spoke.Name, corev1.SecretTypeDockerConfigJson).WithData(ZTPConfig.HubPullSecret.Object.Data) return spoke }
Package Name: setup
function
eco-gotests
9310f70d-81c0-478c-9d97-cb83a8808f66
WithDefaultClusterDeployment
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"', '"github.com/openshift-kni/eco-goinfra/pkg/secret"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultClusterDeployment() *SpokeClusterResources { spoke.ClusterDeployment = hive.NewABMClusterDeploymentBuilder( spoke.apiClient, spoke.Name, spoke.Name, spoke.Name, "assisted.test.com", spoke.Name, metav1.LabelSelector{ MatchLabels: map[string]string{ "du...
Package Name: setup
function
eco-gotests
3063ea8b-46dc-40d4-8b48-1ede4ce9e16c
WithDefaultIPv4AgentClusterInstall
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultIPv4AgentClusterInstall() *SpokeClusterResources { spoke.AgentClusterInstall = assisted.NewAgentClusterInstallBuilder( spoke.apiClient, spoke.Name, spoke.Name, spoke.Name, 3, 2, v1beta1.Networking{ ClusterNetwork: []v1beta1.ClusterNetworkEntry{{ CIDR:...
Package Name: setup
function
eco-gotests
47cbcf4c-c57d-4333-a93a-c7e903772adc
WithDefaultIPv6AgentClusterInstall
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultIPv6AgentClusterInstall() *SpokeClusterResources { spoke.AgentClusterInstall = assisted.NewAgentClusterInstallBuilder( spoke.apiClient, spoke.Name, spoke.Name, spoke.Name, 3, 2, v1beta1.Networking{ ClusterNetwork: []v1beta1.ClusterNetworkEntry{{ CIDR:...
Package Name: setup
function
eco-gotests
c951ea15-4372-499e-884a-81cc0f6fba2a
WithDefaultDualStackAgentClusterInstall
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultDualStackAgentClusterInstall() *SpokeClusterResources { spoke.AgentClusterInstall = assisted.NewAgentClusterInstallBuilder( spoke.apiClient, spoke.Name, spoke.Name, spoke.Name, 3, 2, v1beta1.Networking{ ClusterNetwork: []v1beta1.ClusterNetworkEntry{ {...
Package Name: setup
function
eco-gotests
dcc0f193-0b42-4db5-b9ab-9f65f31fa977
WithDefaultInfraEnv
Imports Used: ['"fmt"', '"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/secret"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) WithDefaultInfraEnv() *SpokeClusterResources { spoke.InfraEnv = assisted.NewInfraEnvBuilder( spoke.apiClient, spoke.Name, spoke.Name, fmt.Sprintf("%s-pull-secret", spoke.Name)) return spoke }
Package Name: setup
function
eco-gotests
268b7711-13f9-4ffe-92d6-2ec102971fe6
Create
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) Create() (*SpokeClusterResources, error) { if spoke.Namespace != nil && spoke.err == nil { spoke.Namespace, spoke.err = spoke.Namespace.Create() } if spoke.PullSecret != nil && spoke.err == nil { spoke.PullSecret, spoke.err = spoke.PullSecret.Create() } if spoke.ClusterDep...
Package Name: setup
function
eco-gotests
62dd715d-9a7d-4625-98ed-f772d798f2ff
Delete
Imports Used: ['"time"']
Structs Used: ['SpokeClusterResources']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func (spoke *SpokeClusterResources) Delete() error { if spoke.InfraEnv != nil { spoke.err = spoke.InfraEnv.Delete() } if spoke.AgentClusterInstall != nil { spoke.err = spoke.AgentClusterInstall.Delete() } if spoke.ClusterDeployment != nil { spoke.err = spoke.ClusterDeployment.Delete() } if spoke.PullSec...
Package Name: setup
function
eco-gotests
b58ee7f0-5ab3-41ac-8f3d-303fbed2ff62
generateName
Imports Used: ['"math/rand"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/setup/setup.go
func generateName(n int) string { var letterRunes = []rune("abcdefghijklmnopqrstuvwxyz") b := make([]rune, n) for i := range b { b[i] = letterRunes[rand.Intn(len(letterRunes))] } return string(b) }
Package Name: setup
file
eco-gotests
924af7fb-4bfa-4296-8316-0c75b379f5f2
config.go
Imports Used: import ( "fmt" "os" "strings" "github.com/golang/glog" "github.com/kelseyhightower/envconfig" "github.com/openshift-kni/eco-goinfra/pkg/assisted" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/configmap" "github.com/openshift-kni/eco-goinfra/pkg/hive...
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpconfig/config.go
package ztpconfig import ( "fmt" "os" "strings" "github.com/golang/glog" "github.com/kelseyhightower/envconfig" "github.com/openshift-kni/eco-goinfra/pkg/assisted" "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-goinfra/pkg/configmap" "github.com/openshift-kni/eco-goinfra/pkg...
Package Name: package ztpconfig
function
eco-gotests
46da86e5-f090-4f81-907f-e7c4867643c8
NewZTPConfig
Imports Used: ['"github.com/golang/glog"', '"github.com/openshift-kni/eco-gotests/tests/assisted/internal/assistedconfig"', '"github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpparams"']
Structs Used: ['ZTPConfig', 'HubConfig', 'SpokeConfig']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpconfig/config.go
func NewZTPConfig() *ZTPConfig { glog.V(ztpparams.ZTPLogLevel).Info("Creating new ZTPConfig struct") var ztpconfig ZTPConfig ztpconfig.AssistedConfig = assistedconfig.NewAssistedConfig() ztpconfig.HubConfig = new(HubConfig) ztpconfig.SpokeConfig = new(SpokeConfig) if err := ztpconfig.newHubConfig(); err != nil...
Package Name: ztpconfig
function
eco-gotests
bf197037-8796-4021-aca5-a9993cbbefcb
newHubConfig
Imports Used: ['"fmt"', '"os"', '"strings"', '"github.com/golang/glog"', '"github.com/kelseyhightower/envconfig"', '"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/configmap"', '"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-goinfra/pkg/s...
Structs Used: ['ZTPConfig', 'HubConfig']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpconfig/config.go
func (ztpconfig *ZTPConfig) newHubConfig() error { glog.V(ztpparams.ZTPLogLevel).Info("Creating new HubConfig struct") ztpconfig.HubConfig = new(HubConfig) err := envconfig.Process("eco_assisted_ztp_hub_", ztpconfig.HubConfig) if err != nil { glog.V(ztpparams.ZTPLogLevel).Infof("failed to instantiate HubConfig:...
Package Name: ztpconfig
function
eco-gotests
e3903cf9-ab57-4297-b9f5-2fa39956ca9f
newSpokeConfig
Imports Used: ['"fmt"', '"strings"', '"github.com/golang/glog"', '"github.com/kelseyhightower/envconfig"', '"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/clients"', '"github.com/openshift-kni/eco-goinfra/pkg/configmap"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"...
Structs Used: ['ZTPConfig', 'SpokeConfig']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpconfig/config.go
func (ztpconfig *ZTPConfig) newSpokeConfig() error { glog.V(ztpparams.ZTPLogLevel).Info("Creating new SpokeConfig struct") err := envconfig.Process("eco_assisted_ztp_spoke_", ztpconfig.SpokeConfig) if err != nil { glog.V(ztpparams.ZTPLogLevel).Infof("failed to instantiate SpokeConfig: %v", err) return err } ...
Package Name: ztpconfig
function
eco-gotests
a0162fcc-cfb8-4a30-84f1-d2a924c1d1fb
HubAssistedServicePod
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/find"']
Structs Used: ['ZTPConfig']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpconfig/config.go
func (ztpconfig *ZTPConfig) HubAssistedServicePod() *pod.Builder { if ztpconfig.hubAssistedServicePod == nil || !ztpconfig.hubAssistedServicePod.Exists() { ztpconfig.hubAssistedServicePod, _ = find.AssistedServicePod(APIClient) } return ztpconfig.hubAssistedServicePod }
Package Name: ztpconfig
function
eco-gotests
31185000-e48c-45d9-a9cb-a90a28a8241b
HubAssistedImageServicePod
Imports Used: ['"github.com/openshift-kni/eco-goinfra/pkg/pod"', '"github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/find"']
Structs Used: ['ZTPConfig']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpconfig/config.go
func (ztpconfig *ZTPConfig) HubAssistedImageServicePod() *pod.Builder { if ztpconfig.hubAssistedImageServicePod == nil || !ztpconfig.hubAssistedImageServicePod.Exists() { ztpconfig.hubAssistedImageServicePod, _ = find.AssistedImageServicePod(APIClient) } return ztpconfig.hubAssistedImageServicePod }
Package Name: ztpconfig
file
eco-gotests
8a868acf-7f2a-4b92-bb39-f5dbc8b20132
ztpinittools.go
Imports Used: import ( "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpconfig" "github.com/openshift-kni/eco-gotests/tests/internal/inittools" )
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpinittools/ztpinittools.go
package ztpinittools import ( "github.com/openshift-kni/eco-goinfra/pkg/clients" "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpconfig" "github.com/openshift-kni/eco-gotests/tests/internal/inittools" ) var ( // HubAPIClient provides API access to hub cluster. HubAPIClient *clients.Settings ...
Package Name: package ztpinittools
function
eco-gotests
48fcf7f7-f65e-4fb8-81dc-e5e568ec858d
init
Imports Used: ['"github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpconfig"', '"github.com/openshift-kni/eco-gotests/tests/internal/inittools"']
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpinittools/ztpinittools.go
func init() { HubAPIClient = inittools.APIClient ZTPConfig = ztpconfig.NewZTPConfig() SpokeAPIClient = ZTPConfig.SpokeAPIClient }
Package Name: ztpinittools
file
eco-gotests
fc4892d0-5bcf-497c-8de0-9e455fbdbb03
const.go
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpparams/const.go
package ztpparams const ( // Label represents ztp label that can be used for test cases selection. Label = "ztp" // ZTPLogLevel custom loglevel for the ZTP testing verbose mode. ZTPLogLevel = 50 )
Package Name: package ztpparams
file
eco-gotests
c3e41af3-5b08-45ec-9282-0e163392e00f
ztpvars.go
Imports Used: import "github.com/openshift-kni/eco-gotests/tests/assisted/internal/assistedparams"
File Location: github.com/eco-gotests/tests/assisted/ztp/internal/ztpparams/ztpvars.go
package ztpparams import "github.com/openshift-kni/eco-gotests/tests/assisted/internal/assistedparams" var ( // Labels represents the range of labels that can be used for test cases selection. Labels = []string{assistedparams.Label, Label} )
Package Name: package ztpparams
file
eco-gotests
99a05999-02b8-436b-8030-16291b9d2585
operator_suite_test.go
Imports Used: import ( "testing" "runtime" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/reportxml" "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/meets" . "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpinittools" "...
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/operator_suite_test.go
package operator_test import ( "testing" "runtime" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/reportxml" "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/meets" . "github.com/openshift-kni/eco-gotests/tests/assisted/ztp/internal/ztpinit...
Package Name: package operator_test
function
eco-gotests
8df0eb56-af37-45e5-b77a-1457fe0f1ab5
TestOperator
Imports Used: ['"testing"', '"github.com/openshift-kni/eco-gotests/tests/assisted/ztp/operator/internal/tsparams"']
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/operator_suite_test.go
func TestOperator(t *testing.T) { _, reporterConfig := GinkgoConfiguration() reporterConfig.JUnitReport = ZTPConfig.GetJunitReportPath(currentFile) RegisterFailHandler(Fail) RunSpecs(t, "Operator Suite", Label(tsparams.Labels...), reporterConfig) }
Global Variables: {'_': 'JustAfterEach(func() {\n\treporter.ReportIfFailed(\n\t\tCurrentSpecReport(),\n\t\tcurrentFile,\n\t\ttsparams.ReporterNamespacesToDump,\n\t\ttsparams.ReporterCRDsToDump)\n})'}
Package Name: operator_test
file
eco-gotests
10cde528-0100-487e-bf72-4a7c68b03249
const.go
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/internal/tsparams/const.go
package tsparams const ( // LabelSuite represents operator label that can be used for test cases selection. LabelSuite = "operator" // LabelPlatformSelectionTestCases represents platform-selection label that can be used for test cases selection. LabelPlatformSelectionTestCases = "platform-selection" // LabelIma...
Package Name: package tsparams
file
eco-gotests
baf4cf3c-180a-4634-a37c-c3c979967140
operatorvars.go
Imports Used: import ( bmhv1alpha1 "github.com/metal3-io/baremetal-operator/apis/metal3.io/v1alpha1" hiveextV1Beta1 "github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1" agentInstallV1Beta1 "github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/v1beta1" hivev1 "github.com/ope...
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/internal/tsparams/operatorvars.go
package tsparams import ( bmhv1alpha1 "github.com/metal3-io/baremetal-operator/apis/metal3.io/v1alpha1" hiveextV1Beta1 "github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1" agentInstallV1Beta1 "github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/v1beta1" hivev1 "github.com...
Package Name: package tsparams
file
eco-gotests
9337d842-b6b2-47df-a14e-4f42dc6adbde
aci-dualstack-ipv4-first.go
Imports Used: import ( "fmt" "time" "github.com/golang/glog" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/assisted" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-goinfra/p...
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/tests/aci-dualstack-ipv4-first.go
package operator_test import ( "fmt" "time" "github.com/golang/glog" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" "github.com/openshift-kni/eco-goinfra/pkg/assisted" "github.com/openshift-kni/eco-goinfra/pkg/hive" "github.com/openshift-kni/eco-goinfra/pkg/namespace" "github.com/openshift-kni/eco-...
Package Name: package operator_test
function
eco-gotests
da7c7a8e-7774-4cae-9ee8-e1063f71676f
createDualstackSpokeClusterResources
Imports Used: ['"fmt"', '"github.com/golang/glog"', '"github.com/openshift-kni/eco-goinfra/pkg/assisted"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"', '"github.com/open...
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/tests/aci-dualstack-ipv4-first.go
func createDualstackSpokeClusterResources() *assisted.AgentClusterInstallBuilder { By("Create namespace for the test") if nsBuilder.Exists() { glog.V(ztpparams.ZTPLogLevel).Infof("The namespace '%s' already exists", nsBuilder.Object.Name) } else { // create the namespace glog.V(ztpparams.ZTPLogLevel).Infof...
Global Variables: {'_': 'Describe(\n\t"DualstackIPv4First",\n\tOrdered,\n\tContinueOnFailure,\n\tLabel(tsparams.LabelDualstackIPv4FirstACI), func() {\n\t\tWhen("on MCE 2.0 and above", func() {\n\t\t\tBeforeAll(func() {\n\n\t\t\t\tBy("Check that the ClusterImageSet exists")\n\t\t\t\t_, err := hive.PullClusterImageSet(Hu...
Package Name: operator_test
test
eco-gotests
74386da3-ccb3-4983-940f-1e7f9c07c13a
DualstackIPv4First
Imports Used: ['"time"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/reportxml"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"', '"github.com/openshift-kni/eco-gotests/test...
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/tests/aci-dualstack-ipv4-first.go
Describe( "DualstackIPv4First", Ordered, ContinueOnFailure, Label(tsparams.LabelDualstackIPv4FirstACI), func() { When("on MCE 2.0 and above", func() { BeforeAll(func() { By("Check that the ClusterImageSet exists") _, err := hive.PullClusterImageSet(HubAPIClient, ZTPConfig.HubOCPXYVersion) if err !...
Global Variables: {'_': 'Describe(\n\t"DualstackIPv4First",\n\tOrdered,\n\tContinueOnFailure,\n\tLabel(tsparams.LabelDualstackIPv4FirstACI), func() {\n\t\tWhen("on MCE 2.0 and above", func() {\n\t\t\tBeforeAll(func() {\n\n\t\t\t\tBy("Check that the ClusterImageSet exists")\n\t\t\t\t_, err := hive.PullClusterImageSet(Hu...
Package Name: operator_test
test
eco-gotests
f7666a4c-59c5-48c5-9501-1ed42aae69a0
on MCE 2.0 and above
Imports Used: ['"time"', '"github.com/openshift-kni/eco-goinfra/pkg/hive"', '"github.com/openshift-kni/eco-goinfra/pkg/namespace"', '"github.com/openshift-kni/eco-goinfra/pkg/reportxml"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"', '"github.com/openshift-kni/eco-gotests/test...
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/tests/aci-dualstack-ipv4-first.go
When("on MCE 2.0 and above", func() { BeforeAll(func() { By("Check that the ClusterImageSet exists") _, err := hive.PullClusterImageSet(HubAPIClient, ZTPConfig.HubOCPXYVersion) if err != nil { Skip("The ClusterImageSet must exist") } nsBuilder = namespace.NewBuilder(HubAPIClient, dualstack...
Global Variables: {'_': 'Describe(\n\t"DualstackIPv4First",\n\tOrdered,\n\tContinueOnFailure,\n\tLabel(tsparams.LabelDualstackIPv4FirstACI), func() {\n\t\tWhen("on MCE 2.0 and above", func() {\n\t\t\tBeforeAll(func() {\n\n\t\t\t\tBy("Check that the ClusterImageSet exists")\n\t\t\t\t_, err := hive.PullClusterImageSet(Hu...
Package Name: operator_test
test case
eco-gotests
759dbb67-03f6-4453-a0a5-0c3e5e3549b9
Validates that ACI with dualstack expects IPv4 first
Imports Used: ['"time"', '"github.com/openshift-kni/eco-goinfra/pkg/reportxml"', '"github.com/openshift-kni/eco-goinfra/pkg/schemes/assisted/api/hiveextension/v1beta1"']
File Location: github.com/eco-gotests/tests/assisted/ztp/operator/tests/aci-dualstack-ipv4-first.go
It("Validates that ACI with dualstack expects IPv4 first", reportxml.ID("44877"), func() { agentClusterInstallBuilder := createDualstackSpokeClusterResources() By("Waiting for specific error message from SpecSynced condition") Eventually(func() (string, error) { agentClusterInstallBuilder.Object, err ...
End of preview. Expand in Data Studio

No dataset card yet

Downloads last month
2