mirror of
https://github.com/rancher/plugins.git
synced 2025-09-05 08:47:09 +00:00
Windows: Updates Windows Vendoring
Updates windows dependent libraries for vendoing.
This commit is contained in:
25
vendor/github.com/Microsoft/hcsshim/internal/uvm/create_test.go
generated
vendored
Normal file
25
vendor/github.com/Microsoft/hcsshim/internal/uvm/create_test.go
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
package uvm
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// Unit tests for negative testing of input to uvm.Create()
|
||||
|
||||
func TestCreateBadBootFilesPath(t *testing.T) {
|
||||
opts := NewDefaultOptionsLCOW(t.Name(), "")
|
||||
opts.BootFilesPath = `c:\does\not\exist\I\hope`
|
||||
|
||||
_, err := CreateLCOW(opts)
|
||||
if err == nil || err.Error() != `kernel: 'c:\does\not\exist\I\hope\kernel' not found` {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCreateWCOWBadLayerFolders(t *testing.T) {
|
||||
opts := NewDefaultOptionsWCOW(t.Name(), "")
|
||||
_, err := CreateWCOW(opts)
|
||||
if err == nil || (err != nil && err.Error() != `at least 2 LayerFolders must be supplied`) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user