mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
feat(repo): support local repositories (#4890)
* feat(repo): support local repositories * fix tests * test: fix client/server tests * docs: update * test: add fs tests * test: do not update golden files if overridden * docs: remove a comment about fs deprecation
This commit is contained in:
@@ -418,7 +418,7 @@ func TestTar(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
// Compare want and got
|
||||
compareReports(t, tt.golden, outputFile)
|
||||
compareReports(t, tt.golden, outputFile, nil)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -513,7 +513,7 @@ func TestTarWithEnv(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
|
||||
// Compare want and got
|
||||
compareReports(t, tt.golden, outputFile)
|
||||
compareReports(t, tt.golden, outputFile, nil)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -588,7 +588,7 @@ cache:
|
||||
require.NoError(t, err)
|
||||
|
||||
// Compare want and got
|
||||
compareReports(t, tt.golden, outputFile)
|
||||
compareReports(t, tt.golden, outputFile, nil)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user