Skip to content

WIP: refactor tests using MultiStageBuild to use MultiStageContainer & container_image#577

Draft
dcermak wants to merge 1 commit intomainfrom
multistage-container_image-refactor
Draft

WIP: refactor tests using MultiStageBuild to use MultiStageContainer & container_image#577
dcermak wants to merge 1 commit intomainfrom
multistage-container_image-refactor

Conversation

@dcermak
Copy link
Copy Markdown
Contributor

@dcermak dcermak commented Aug 27, 2024

[CI:TOXENVS] all,multistage,spack

Comment thread tests/files/main.go
)

func main() {
resp, err := http.Get("https://suse.com/")
Copy link
Copy Markdown
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

Comment thread tests/test_all.py
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
Copy Markdown
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/" />

Comment thread tests/test_multistage.py
from bci_tester.data import OS_VERSION


def _clone_cmd(repo_url: str, tag: Optional[str] = None) -> str:
Copy link
Copy Markdown
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