mirror of
https://github.com/rancher/plugins.git
synced 2025-09-02 11:23:35 +00:00
Windows: Updates Windows Vendoring
Updates windows dependent libraries for vendoing.
This commit is contained in:
21
vendor/github.com/Microsoft/hcsshim/test/functional/utilities/defaultwindowsspec.go
generated
vendored
Normal file
21
vendor/github.com/Microsoft/hcsshim/test/functional/utilities/defaultwindowsspec.go
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
package testutilities
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
specs "github.com/opencontainers/runtime-spec/specs-go"
|
||||
)
|
||||
|
||||
func GetDefaultWindowsSpec(t *testing.T) *specs.Spec {
|
||||
content, err := ioutil.ReadFile(`assets\defaultwindowsspec.json`)
|
||||
if err != nil {
|
||||
t.Fatalf("failed to read defaultwindowsspec.json: %s", err.Error())
|
||||
}
|
||||
spec := specs.Spec{}
|
||||
if err := json.Unmarshal(content, &spec); err != nil {
|
||||
t.Fatalf("failed to unmarshal contents of defaultwindowsspec.json: %s", err.Error())
|
||||
}
|
||||
return &spec
|
||||
}
|
Reference in New Issue
Block a user