nydus-snapshotter
nydus-snapshotter copied to clipboard
Need an e2e test for nydus integrated with p2p
We should add an e2e test for nydus integrated with p2p, which includes the following cases:
- p2p is the only mirror and does not work, fall back to the original registry.
- p2p is the only mirror and works, all is well.
- p2p is not the only mirror and does not work, try the next mirror.
- p2p is the only mirror and
auth_throughis true, unauthorized requests are sent to the p2p server. - A normal registry is the only mirror(auth_through must be true).
Thanks for considering this. Frankly speaking, the test for it is fragile.
Currently, we do have some tests in https://github.com/dragonflyoss/Dragonfly2/actions/workflows/nydus-e2e.yml, but adding more tests would be good.