feat(14-03): wire 5 frontend leak sources in RegisterAll (40 -> 45 sources)
- Register SourceMapSource, WebpackSource, EnvLeakSource, SwaggerSource, DeployPreviewSource - Update test expectations from 40 to 45 sources
This commit is contained in:
@@ -16,9 +16,9 @@ func registerTestRegistry() *providers.Registry {
|
||||
})
|
||||
}
|
||||
|
||||
// TestRegisterAll_WiresAllFortySources asserts that RegisterAll registers
|
||||
// every Phase 10 + Phase 11 + Phase 12 + Phase 13 source by its stable name on a fresh engine.
|
||||
func TestRegisterAll_WiresAllFortySources(t *testing.T) {
|
||||
// TestRegisterAll_WiresAllFortyFiveSources asserts that RegisterAll registers
|
||||
// every Phase 10-14 source by its stable name on a fresh engine.
|
||||
func TestRegisterAll_WiresAllFortyFiveSources(t *testing.T) {
|
||||
eng := recon.NewEngine()
|
||||
cfg := SourcesConfig{
|
||||
Registry: registerTestRegistry(),
|
||||
@@ -37,7 +37,9 @@ func TestRegisterAll_WiresAllFortySources(t *testing.T) {
|
||||
"codeberg",
|
||||
"codesandbox",
|
||||
"crates",
|
||||
"deploypreview",
|
||||
"dockerhub",
|
||||
"dotenv",
|
||||
"duckduckgo",
|
||||
"fofa",
|
||||
"gcs",
|
||||
@@ -64,8 +66,11 @@ func TestRegisterAll_WiresAllFortySources(t *testing.T) {
|
||||
"s3",
|
||||
"sandboxes",
|
||||
"shodan",
|
||||
"sourcemaps",
|
||||
"spaces",
|
||||
"swagger",
|
||||
"terraform",
|
||||
"webpack",
|
||||
"yandex",
|
||||
"zoomeye",
|
||||
}
|
||||
@@ -85,8 +90,8 @@ func TestRegisterAll_MissingCredsStillRegistered(t *testing.T) {
|
||||
Limiters: recon.NewLimiterRegistry(),
|
||||
})
|
||||
|
||||
if n := len(eng.List()); n != 40 {
|
||||
t.Fatalf("expected 40 sources registered, got %d: %v", n, eng.List())
|
||||
if n := len(eng.List()); n != 45 {
|
||||
t.Fatalf("expected 45 sources registered, got %d: %v", n, eng.List())
|
||||
}
|
||||
|
||||
// SweepAll with an empty config should filter out cred-gated sources
|
||||
|
||||
Reference in New Issue
Block a user