mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 14:55:15 +01:00
test: remove useless unit test.
This commit is contained in:
parent
14cac43c6c
commit
aa0386253c
1 changed files with 0 additions and 31 deletions
|
@ -9,37 +9,6 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDefaultTunables(t *testing.T) {
|
|
||||||
tests := []struct {
|
|
||||||
name string
|
|
||||||
want *AppArmorProfile
|
|
||||||
}{
|
|
||||||
{
|
|
||||||
name: "aa",
|
|
||||||
want: &AppArmorProfile{
|
|
||||||
Preamble: Preamble{
|
|
||||||
Variables: []Variable{
|
|
||||||
{"bin", []string{"/{,usr/}{,s}bin"}},
|
|
||||||
{"lib", []string{"/{,usr/}lib{,exec,32,64}"}},
|
|
||||||
{"multiarch", []string{"*-linux-gnu*"}},
|
|
||||||
{"HOME", []string{"/home/*"}},
|
|
||||||
{"user_share_dirs", []string{"/home/*/.local/share"}},
|
|
||||||
{"etc_ro", []string{"/{,usr/}etc/"}},
|
|
||||||
{"int", []string{"[0-9]{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}{[0-9],}"}},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
for _, tt := range tests {
|
|
||||||
t.Run(tt.name, func(t *testing.T) {
|
|
||||||
if got := DefaultTunables(); !reflect.DeepEqual(got, tt.want) {
|
|
||||||
t.Errorf("DefaultTunables() = %v, want %v", got, tt.want)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestAppArmorProfile_ParseVariables(t *testing.T) {
|
func TestAppArmorProfile_ParseVariables(t *testing.T) {
|
||||||
tests := []struct {
|
tests := []struct {
|
||||||
name string
|
name string
|
||||||
|
|
Loading…
Reference in a new issue