refractor(aa): move some test resource to the testdata dir.
This commit is contained in:
parent
89abbae6bd
commit
4282fb336e
8 changed files with 25 additions and 15 deletions
|
|
@ -188,7 +188,7 @@ func TestNewApparmorLogs(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
name: "dnsmasq",
|
||||
path: "../../tests/audit.log",
|
||||
path: filepath.Join(testdata, "audit.log"),
|
||||
want: AppArmorLogs{
|
||||
{
|
||||
"apparmor": "DENIED",
|
||||
|
|
@ -233,17 +233,17 @@ func TestNewApparmorLogs(t *testing.T) {
|
|||
},
|
||||
{
|
||||
name: "kmod",
|
||||
path: "../../tests/audit.log",
|
||||
path: filepath.Join(testdata, "audit.log"),
|
||||
want: refKmod,
|
||||
},
|
||||
{
|
||||
name: "man",
|
||||
path: "../../tests/audit.log",
|
||||
path: filepath.Join(testdata, "audit.log"),
|
||||
want: refMan,
|
||||
},
|
||||
{
|
||||
name: "power-profiles-daemon",
|
||||
path: "../../tests/audit.log",
|
||||
path: filepath.Join(testdata, "audit.log"),
|
||||
want: refPowerProfiles,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue