mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 20:36:26 +02:00
testfix: Skip runsc test earlier (#24274)
This commit is contained in:
parent
625cb00b61
commit
a823fdb3ef
@ -74,12 +74,12 @@ func TestExternalPluginInContainer_MountAndUnmount(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("rootless runsc", func(t *testing.T) {
|
||||
t.Setenv("DOCKER_HOST", fmt.Sprintf("unix:///run/user/%d/docker.sock", os.Getuid()))
|
||||
c, plugins := testClusterWithContainerPlugins(t, []consts.PluginType{consts.PluginTypeCredential})
|
||||
|
||||
if _, err := exec.LookPath("runsc"); err != nil {
|
||||
t.Skip("Skipping test as runsc not found on path")
|
||||
}
|
||||
|
||||
t.Setenv("DOCKER_HOST", fmt.Sprintf("unix:///run/user/%d/docker.sock", os.Getuid()))
|
||||
c, plugins := testClusterWithContainerPlugins(t, []consts.PluginType{consts.PluginTypeCredential})
|
||||
mountAndUnmountContainerPlugin_WithRuntime(t, c, plugins[0], "runsc", true)
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user