//go:build e2e_testing package e2e import ( "bytes" "fmt" "path/filepath" "regexp" "strings" "testing" "time" "github.com/slackhq/nebula/cert" "github.com/slackhq/nebula/cert_test" "github.com/slackhq/nebula/commands" "github.com/slackhq/nebula/sshd" "github.com/slackhq/nebula/test" "github.com/stretchr/testify/require" ) // volatile lists everything in command output that legitimately differs between runs. // Each run mints fresh certificates and indexes, so these are replaced with a marker // before comparison. Keep the list short: anything added here is something the golden // stops guarding. var volatile = []struct { re *regexp.Regexp with string }{ {regexp.MustCompile(`[0-9a-f]{40,}`), ""}, // fingerprints, keys, signatures {regexp.MustCompile(`\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})`), "