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

Added tests #257

Merged
merged 16 commits into from
Mar 26, 2024
Merged

Conversation

ckunki
Copy link
Contributor

@ckunki ckunki commented Mar 19, 2024

closes #252

test/integration/test_create_dss_docker_image.py Outdated Show resolved Hide resolved
test/integration/test_create_dss_docker_image.py Outdated Show resolved Hide resolved
[run-notebook-tests]
test/docker/container.py Outdated Show resolved Hide resolved
test/docker/container.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@tkilias tkilias left a comment

Choose a reason for hiding this comment

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

see my comments

container_context now uses container()
@ckunki ckunki requested a review from tkilias March 22, 2024 15:34

@contextmanager
def added_group(request, base_image, gid, group_name):
# dss_docker_image.image_name
Copy link
Collaborator

@tkilias tkilias Mar 25, 2024

Choose a reason for hiding this comment

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

can be a fixture, because get_unassigned_gid can be fixture

)


def altered_inspector(request, image_name: str, socket_on_host: Path):
Copy link
Collaborator

Choose a reason for hiding this comment

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

can be also a fixture, because added_group can be fixture

Copy link
Collaborator

Choose a reason for hiding this comment

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

needs better name

Refactored SocketInspector etc.
Moved some functions and classes to separate file
@ckunki ckunki merged commit 70850eb into main Mar 26, 2024
6 checks passed
@ckunki ckunki deleted the refactoring/#252-Add_tests_for_access_to_Docker_socket branch March 26, 2024 09:59
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.

Add tests for access to Docker socket
2 participants