diff options
author | Antonio Murdaca <runcom@redhat.com> | 2016-02-19 09:22:36 +0100 |
---|---|---|
committer | Jessica Frazelle <acidburn@docker.com> | 2016-02-19 13:32:54 -0800 |
commit | 11435b674b8ed580f8cf401c7cee7d24f59d7a43 (patch) | |
tree | 0a63a101a3455f233b9fa1b9864dc6d7c22fe58d /profiles | |
parent | ad600239bca1ac89d9684a98d6f7f260959e81d2 (diff) | |
download | docker-11435b674b8ed580f8cf401c7cee7d24f59d7a43.tar.gz |
add seccomp default profile fix tests
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Diffstat (limited to 'profiles')
-rw-r--r-- | profiles/seccomp/seccomp_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/profiles/seccomp/seccomp_test.go b/profiles/seccomp/seccomp_test.go index 11df61e94d..2c9929e925 100644 --- a/profiles/seccomp/seccomp_test.go +++ b/profiles/seccomp/seccomp_test.go @@ -12,7 +12,16 @@ func TestLoadProfile(t *testing.T) { if err != nil { t.Fatal(err) } + if _, err := LoadProfile(string(f)); err != nil { + t.Fatal(err) + } +} +func TestLoadDefaultProfile(t *testing.T) { + f, err := ioutil.ReadFile("default.json") + if err != nil { + t.Fatal(err) + } if _, err := LoadProfile(string(f)); err != nil { t.Fatal(err) } |