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: refactor tests using MultiStageBuild to use MultiStageContainer & container_image #577

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dcermak
Copy link
Collaborator

@dcermak dcermak commented Aug 27, 2024

[CI:TOXENVS] all,multistage,spack

)

func main() {
resp, err := http.Get("https://suse.com/")
Copy link
Member

Choose a reason for hiding this comment

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

nit: not interested in the status code? in theory only 200 is valid here

f"{container_runtime.runner_binary} run --rm {' '.join(get_extra_run_args(pytestconfig))} {img_id}",
)
out = host.check_output(container_image.run_command)
assert "html" in out
Copy link
Member

Choose a reason for hiding this comment

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

nit: I'm not sure if this is useful, checking for a real HTML tag found on the page would be more worthwhile.

<link rel="canonical" href="https://www.suse.com/" />

from bci_tester.data import GOLANG_CONTAINERS
from bci_tester.data import OPENJDK_11_CONTAINER
from bci_tester.data import OPENJDK_21_CONTAINER
from bci_tester.data import OPENJDK_DEVEL_11_CONTAINER
from bci_tester.data import OPENJDK_DEVEL_21_CONTAINER
from bci_tester.data import OS_VERSION


def _clone_cmd(repo_url: str, tag: Optional[str] = None) -> str:
Copy link
Member

Choose a reason for hiding this comment

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

nit: perhaps _git_clone_cmd

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.

2 participants