Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] First try of conu test implementation #198

Closed
wants to merge 2 commits into from

Conversation

hhorak
Copy link
Member

@hhorak hhorak commented Jan 27, 2018

Based on sclorg/s2i-ruby-container#167 with slight generalization. The point here is to see how much of the tests we can actually generalize, and put into conu library. It seems quite a lot.

@hhorak
Copy link
Member Author

hhorak commented Jan 27, 2018

@TomasTomecek, FYI, we might chat about this sometime.

Copy link

@TomasTomecek TomasTomecek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably forgot to include Dockerfile.tests in this PR

otherwise lgtm, but I'm assuming you want to talk to me

@@ -8,3 +10,10 @@ OPENSHIFT_NAMESPACES = 5.5
.PHONY: $(shell test -f common/common.mk || echo >&2 'Please do "git submodule update --init" first.')

include common/common.mk

build-test-container:
docker build --network host --tag=$(TEST_IMAGE_NAME) -f ./test/Dockerfile.tests .

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dockerfile.tests seems to be missing

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, will do.

app.rmi()


class GenericTestSuite:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm assuming you want this class to be in conu :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was the intention, but I did not go far enough to propose it as a PR.

backend = DockerBackend(logging_level=logging.DEBUG)


@pytest.fixture(scope="module", params=app_paths)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and we could also start shipping some fine-crafted pytest fixtures in conu

@hhorak
Copy link
Member Author

hhorak commented Jan 30, 2018

otherwise lgtm, but I'm assuming you want to talk to me

Since there is no pressure to have this PR finished asap, I'd like rather to do the changes in conu first and then use the generic functions here, instead redefining the same thing here again. So yeah, let's chat before :)

@phracek
Copy link
Member

phracek commented Apr 22, 2021

We have disabled conu in RHSCL CI testing. Closing this issue.

@phracek phracek closed this Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants