Skip to content

Commit

Permalink
move existing openshift tests to openshift-tests-kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k authored and sallyom committed Mar 30, 2020
1 parent 17f94a8 commit f86082d
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ all build:
# make build-all
build-all:
hack/build-go.sh
hack/build-go.sh cmd/openshift-tests
hack/build-go.sh cmd/openshift-tests cmd/openshift-tests-kubernetes
.PHONY: build-all

# Build the test binaries.
Expand All @@ -56,7 +56,7 @@ build-tests: build-extended-test
.PHONY: build-tests

build-extended-test:
hack/build-go.sh cmd/openshift-tests
hack/build-go.sh cmd/openshift-tests cmd/openshift-tests-kubernetes
.PHONY: build-extended-test

build-docs:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func main() {

root := &cobra.Command{
Long: templates.LongDesc(`
OpenShift Tests
OpenShift Tests for Kubernetes
This command verifies behavior of an OpenShift cluster by running remote tests against
the cluster API that exercise functionality. In general these tests may be disruptive
Expand Down
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions images/tests-base/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.12 AS builder
WORKDIR /go/src/github.com/openshift/origin
COPY . .
RUN make build WHAT=cmd/openshift-tests; \
mkdir -p /tmp/build; \
cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/openshift-tests /tmp/build/openshift-tests

FROM registry.svc.ci.openshift.org/ocp/4.2:cli
COPY --from=builder /tmp/build/openshift-tests /usr/bin/
RUN yum install --setopt=tsflags=nodocs -y git gzip util-linux && yum clean all && rm -rf /var/cache/yum/* && \
git config --system user.name test && \
git config --system user.email [email protected] && \
chmod g+w /etc/passwd
LABEL io.k8s.display-name="OpenShift End-to-End Tests" \
io.k8s.description="OpenShift is a platform for developing, building, and deploying containerized applications." \
io.openshift.tags="openshift,tests,e2e"
5 changes: 5 additions & 0 deletions images/tests-base/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
reviewers:
- smarterclayton
- sdodson
approvers:
- smarterclayton
8 changes: 4 additions & 4 deletions images/tests/Dockerfile.rhel
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM registry.svc.ci.openshift.org/ocp/builder:golang-1.12 AS builder
WORKDIR /go/src/github.com/openshift/origin
COPY . .
RUN make build WHAT=cmd/openshift-tests; \
RUN make build WHAT=cmd/openshift-tests-kubernetes; \
mkdir -p /tmp/build; \
cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/openshift-tests /tmp/build/openshift-tests
cp /go/src/github.com/openshift/origin/_output/local/bin/linux/$(go env GOARCH)/openshift-tests-kubernetes /tmp/build/openshift-tests-kubernetes

FROM registry.svc.ci.openshift.org/ocp/4.2:cli
COPY --from=builder /tmp/build/openshift-tests /usr/bin/
FROM registry.svc.ci.openshift.org/ocp/4.2:tests-base
COPY --from=builder /tmp/build/openshift-tests-kubernetes /usr/bin/
RUN yum install --setopt=tsflags=nodocs -y git gzip util-linux && yum clean all && rm -rf /var/cache/yum/* && \
git config --system user.name test && \
git config --system user.email [email protected] && \
Expand Down

0 comments on commit f86082d

Please sign in to comment.