Skip to content

Commit ccd2254

Browse files
committed
sdcicd-1414 move osde2e/ to test/e2e
1 parent f135500 commit ccd2254

6 files changed

+6
-6
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHELL := /usr/bin/env bash
22

3-
include osde2e/project.mk
3+
include test/e2e/project.mk
44
# Verbosity
55
AT_ = @
66
AT = $(AT_$(V))

osde2e/Dockerfile renamed to test/e2e/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.22-openshift-4.17 as builder
22
WORKDIR /go/src/github.com/openshift/managed-cluster-validating-webhooks
33
COPY . .
4-
RUN CGO_ENABLED=0 GOFLAGS="-mod=mod" go test ./osde2e -v -c --tags=osde2e -o /harness.test
4+
RUN CGO_ENABLED=0 GOFLAGS="-mod=mod" go test ./test/e2e -v -c --tags=osde2e -o /harness.test
55

66
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
77
COPY --from=builder ./harness.test harness.test

osde2e/managed_cluster_validating_webhooks_test.go renamed to test/e2e/managed_cluster_validating_webhooks_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var _ = Describe("Managed Cluster Validating Webhooks", Ordered, func() {
108108

109109
It("should create a pod with the correct security context", func() {
110110
pod := &v1.Pod{
111-
ObjectMeta: metav1.ObjectMeta{
111+
ObjectMeta: metav1.ObjectMeta{
112112
Name: "testpod",
113113
Namespace: namespaceName,
114114
},

osde2e/project.mk renamed to test/e2e/project.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ REGISTRY_USER?=$(QUAY_USER)
99
REGISTRY_TOKEN?=$(QUAY_TOKEN)
1010

1111
######################
12-
# Targets used by osde2e test harness
12+
# Targets used by e2e test harness
1313
######################
1414

1515
# create binary
@@ -18,7 +18,7 @@ e2e-harness-build: GOFLAGS_MOD=-mod=mod
1818
e2e-harness-build: GOENV=GOOS=${GOOS} GOARCH=${GOARCH} CGO_ENABLED=0 GOFLAGS="${GOFLAGS_MOD}"
1919
e2e-harness-build:
2020
go mod tidy
21-
${GOENV} go test ./osde2e -v -c --tags=osde2e -o harness.test
21+
${GOENV} go test ./test/e2e -v -c --tags=osde2e -o harness.test
2222

2323
# TODO: Push to a known image tag and commit id
2424
# push harness image
@@ -28,7 +28,7 @@ HARNESS_IMAGE_TAG=$(CURRENT_COMMIT)
2828

2929
.PHONY: e2e-image-build-push
3030
e2e-image-build-push:
31-
${CONTAINER_ENGINE} build --pull -f osde2e/Dockerfile -t $(HARNESS_IMAGE_REGISTRY)/$(HARNESS_IMAGE_REPOSITORY)/$(HARNESS_IMAGE_NAME):$(HARNESS_IMAGE_TAG) .
31+
${CONTAINER_ENGINE} build --pull -f test/e2e/Dockerfile -t $(HARNESS_IMAGE_REGISTRY)/$(HARNESS_IMAGE_REPOSITORY)/$(HARNESS_IMAGE_NAME):$(HARNESS_IMAGE_TAG) .
3232
${CONTAINER_ENGINE} tag $(HARNESS_IMAGE_REGISTRY)/$(HARNESS_IMAGE_REPOSITORY)/$(HARNESS_IMAGE_NAME):$(HARNESS_IMAGE_TAG) $(HARNESS_IMAGE_REGISTRY)/$(HARNESS_IMAGE_REPOSITORY)/$(HARNESS_IMAGE_NAME):latest
3333
${CONTAINER_ENGINE} push $(HARNESS_IMAGE_REGISTRY)/$(HARNESS_IMAGE_REPOSITORY)/$(HARNESS_IMAGE_NAME):$(HARNESS_IMAGE_TAG)
3434
${CONTAINER_ENGINE} push $(HARNESS_IMAGE_REGISTRY)/$(HARNESS_IMAGE_REPOSITORY)/$(HARNESS_IMAGE_NAME):latest
File renamed without changes.

0 commit comments

Comments
 (0)