Skip to content

Add integration test for CSI plugins #49983

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

olljanat
Copy link
Contributor

@olljanat olljanat commented May 14, 2025

- What I did
Added integration test for CSI plugins.

- How I did it
Copied and modified from TestServicePlugin
Currently only one Swarm daemon is used but structure is already prepared in way that more nodes can be added if needed.

- How to verify it

- A picture of a cute animal (not mandatory but encouraged)
image

@olljanat olljanat force-pushed the csi-integration-test branch 2 times, most recently from c6cb7d8 to bf28163 Compare May 15, 2025 18:32
@olljanat
Copy link
Contributor Author

olljanat commented May 15, 2025

It is expected CI to fail to timeout when looking for updated volume message from daemon log. That is because of bug #48133

Seems to work:

TestServicePlugin (27.22s)
=== RUN   TestServiceCSIPlugin
time="2025-05-15T18:57:56Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json"
time="2025-05-15T18:57:56Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json" digest="sha256:91a9082541112724bb3f77b4654c2620bcfce7395f5a1a983cd72b421b0ee7e3" mediatype=application/vnd.docker.plugin.v1+json size=560
time="2025-05-15T18:57:56Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json"
time="2025-05-15T18:57:56Z" level=warning msg="reference for unknown type: application/vnd.docker.plugin.v1+json" digest="sha256:91a9082541112724bb3f77b4654c2620bcfce7395f5a1a983cd72b421b0ee7e3" mediatype=application/vnd.docker.plugin.v1+json size=560
    plugin_test.go:162: timeout hit after 15s: waiting for daemon logs match
--- FAIL: TestServiceCSIPlugin (20.09s)

EDIT: And seems to pass now when #49961 was merged 🥳

EDIT2: I figured out how to generate test data with CSI plugin and verify it's content from container so included that too so now it really is full end to end test.

@olljanat olljanat force-pushed the csi-integration-test branch from bf28163 to 45dc513 Compare May 15, 2025 19:36
@olljanat olljanat changed the title WIP: Add integration test for CSI plugins Add integration test for CSI plugins May 15, 2025
@thaJeztah
Copy link
Member

@dperny PTAL

@olljanat
Copy link
Contributor Author

Flaky tests in Moby, somehow I'm not surprised 🙈

Last update did hit:

which all looks unrelated. Will retrigger CI.

@olljanat olljanat force-pushed the csi-integration-test branch from 71c021a to 86a442e Compare May 19, 2025 19:02
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy