mirror of
https://github.com/netbirdio/netbird.git
synced 2025-05-30 22:58:45 +02:00
[client] Fix debug bundle state anonymization test (#2976)
This commit is contained in:
parent
c7e7ad5030
commit
dffce78a8c
@ -137,6 +137,13 @@ func TestAnonymizeStateFile(t *testing.T) {
|
||||
}
|
||||
|
||||
anonymizer := anonymize.NewAnonymizer(anonymize.DefaultAddresses())
|
||||
|
||||
// Pre-seed the domains we need to verify in the test assertions
|
||||
anonymizer.AnonymizeDomain("test.example.com")
|
||||
anonymizer.AnonymizeDomain("nested.example.com")
|
||||
anonymizer.AnonymizeDomain("deep.example.com")
|
||||
anonymizer.AnonymizeDomain("array1.example.com")
|
||||
|
||||
err := anonymizeStateFile(&testState, anonymizer)
|
||||
require.NoError(t, err)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user