Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
test: Rename PacketPlatform to PacketEquinixMetal
Browse files Browse the repository at this point in the history
Signed-off-by: Imran Pochi <imran@kinvolk.io>
  • Loading branch information
ipochi committed Aug 23, 2021
1 parent a079610 commit 4aa3b7c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion test/calico/metadata_access_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestNoMetadataAccessRandomPod(t *testing.T) { //nolint:funlen
platform := os.Getenv("PLATFORM")

switch platform {
case testutil.PlatformPacket, testutil.PlatformPacketARM:
case testutil.PlatformEquinixMetal, testutil.PlatformEquinixMetalARM:
metadataAddress = "https://metadata.packet.net/metadata"
case testutil.PlatformAWS, testutil.PlatformAWSEdge:
metadataAddress = "http://169.254.169.254/latest/meta-data"
Expand Down
8 changes: 4 additions & 4 deletions test/components/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -482,11 +482,11 @@ const (
// PlatformAWSEdge is for AWS with FCL Edge.
PlatformAWSEdge = "aws_edge"

// PlatformPacket is for Packet
PlatformPacket = "packet"
// PlatformEquinixMetal is for Equinix Metal.
PlatformEquinixMetal = "equinixmetal"

// PlatformPacketARM is for Packet on ARM
PlatformPacketARM = "packet_arm"
// PlatformEquinixMetalARM is for Equinix Metal on ARM.
PlatformEquinixMetalARM = "equinixmetal_arm"

// PlatformBaremetal is for Baremetal
PlatformBaremetal = "baremetal"
Expand Down
4 changes: 2 additions & 2 deletions test/ingress/equinixmetal_test/match_host_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ func TestIngressHost(t *testing.T) {
componentTestCases := []componentTestCase{
{
componentName: "dex",
platforms: []testutil.Platform{testutil.PlatformPacket},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal},
namespace: "dex",
},
{
componentName: "gangway",
platforms: []testutil.Platform{testutil.PlatformPacket},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal},
namespace: "gangway",
},
}
Expand Down
4 changes: 2 additions & 2 deletions test/monitoring/components_alerts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func testComponentAlerts(t *testing.T, v1api v1.API) {
{
ComponentName: "metallb",
RuleGroup: "metallb-rules",
platforms: []testutil.Platform{testutil.PlatformPacket},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal},
Alerts: []string{
"MetalLBNoBGPSession", "MetalLBConfigStale", "MetalLBControllerPodsAvailability",
"MetalLBSpeakerPodsAvailability",
Expand All @@ -55,7 +55,7 @@ func testComponentAlerts(t *testing.T, v1api v1.API) {
{
ComponentName: "rook",
RuleGroup: "ceph-mds-status",
platforms: []testutil.Platform{testutil.PlatformPacket},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal},
Alerts: []string{"CephMdsMissingReplicas"},
},
}
Expand Down
18 changes: 9 additions & 9 deletions test/monitoring/components_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
//nolint:funlen
func testComponentsPrometheusMetrics(t *testing.T, v1api v1.API) {
selfHostedPlatforms := []testutil.Platform{
testutil.PlatformPacket,
testutil.PlatformEquinixMetal,
testutil.PlatformAWS,
}

Expand Down Expand Up @@ -79,47 +79,47 @@ func testComponentsPrometheusMetrics(t *testing.T, v1api v1.API) {
{
componentName: "metallb",
query: "metallb_bgp_session_up",
platforms: []testutil.Platform{testutil.PlatformPacket},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal},
},
{
componentName: "contour",
query: "contour_dagrebuild_timestamp",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS, testutil.PlatformAKS},
},
{
componentName: "cert-manager",
query: "certmanager_controller_sync_call_count",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS, testutil.PlatformAKS},
},
{
componentName: "linkerd",
query: "tcp_read_bytes_total",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS},
},
{
// This is from the istiod service.
componentName: "experimental-istio-operator",
query: "pilot_k8s_reg_events",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS, testutil.PlatformAKS},
},
{
// This is from the istio operator.
componentName: "experimental-istio-operator",
query: "controller_runtime_reconcile_time_seconds_count{controller=\"istiocontrolplane-controller\"}",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS, testutil.PlatformAKS},
},
{
componentName: "node-problem-detector",
query: "problem_counter{reason=\"KernelOops\"}",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS, testutil.PlatformAKS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS, testutil.PlatformAKS},
},
{
// This metric is only generated by node-local-dns and not by the actual coredns:
// coredns_plugin_enabled{name="cache",server="dns://169.254.1.1:53",zone="."}
componentName: "node-local-dns",
query: "coredns_plugin_enabled{name=\"cache\",server=\"dns://" +
platform.NodeLocalDNSIP + ":53\",zone=\".\"}",
platforms: []testutil.Platform{testutil.PlatformPacket, testutil.PlatformAWS},
platforms: []testutil.Platform{testutil.PlatformEquinixMetal, testutil.PlatformAWS},
},
}

Expand Down

0 comments on commit 4aa3b7c

Please sign in to comment.