Skip to content

Commit

Permalink
specs-go/round_trip_test: Add a minimal Windows config
Browse files Browse the repository at this point in the history
process.user.username is not strictly required yet, but it is intended
to be [1], and it doesn't seem worth making Process.User a pointer in
the meantime.

[1]: opencontainers#618 (comment)

Signed-off-by: W. Trevor King <wking@tremily.us>
  • Loading branch information
wking committed May 11, 2017
1 parent 43e7369 commit bdae383
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions specs-go/round_trip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ func TestConfigRoundTrip(t *testing.T) {

// minimal Linux example (removing optional fields from the config.md example)
`{"ociVersion":"1.0.0","platform":{"os":"linux","arch":"amd64"},"process":{"user":{"uid":1,"gid":1},"args":["sh"],"cwd":"/"},"root":{"path":"rootfs"}}`,

// minimal Windows example
`{"ociVersion":"1.0.0","platform":{"os":"windows","arch":"amd64"},"process":{"user":{"username":"containeradministrator"},"args":["sh"],"cwd":"C:\\"},"root":{"path":"rootfs"}}`,
} {
t.Run(fmt.Sprintf("config %d", i), func(t *testing.T) {
configBytes := []byte(configString)
Expand Down

0 comments on commit bdae383

Please sign in to comment.