feat(14-04): wire all 12 Phase 14 sources in RegisterAll (45 -> 52 total)
- Add CircleCIToken to SourcesConfig with env/viper lookup in cmd/recon.go - Register 7 new sources: travisci, ghactions, circleci, jenkins, wayback, commoncrawl, jsbundle - Update register_test.go expectations from 45 to 52 sources - Add integration test handlers + registrations for all 12 Phase 14 sources - Integration test now validates 52 sources end-to-end
This commit is contained in:
@@ -16,9 +16,9 @@ func registerTestRegistry() *providers.Registry {
|
||||
})
|
||||
}
|
||||
|
||||
// TestRegisterAll_WiresAllFortyFiveSources asserts that RegisterAll registers
|
||||
// TestRegisterAll_WiresAllFiftyTwoSources asserts that RegisterAll registers
|
||||
// every Phase 10-14 source by its stable name on a fresh engine.
|
||||
func TestRegisterAll_WiresAllFortyFiveSources(t *testing.T) {
|
||||
func TestRegisterAll_WiresAllFiftyTwoSources(t *testing.T) {
|
||||
eng := recon.NewEngine()
|
||||
cfg := SourcesConfig{
|
||||
Registry: registerTestRegistry(),
|
||||
@@ -34,8 +34,10 @@ func TestRegisterAll_WiresAllFortyFiveSources(t *testing.T) {
|
||||
"bitbucket",
|
||||
"brave",
|
||||
"censys",
|
||||
"circleci",
|
||||
"codeberg",
|
||||
"codesandbox",
|
||||
"commoncrawl",
|
||||
"crates",
|
||||
"deploypreview",
|
||||
"dockerhub",
|
||||
@@ -43,6 +45,7 @@ func TestRegisterAll_WiresAllFortyFiveSources(t *testing.T) {
|
||||
"duckduckgo",
|
||||
"fofa",
|
||||
"gcs",
|
||||
"ghactions",
|
||||
"gist",
|
||||
"gistpaste",
|
||||
"github",
|
||||
@@ -51,6 +54,8 @@ func TestRegisterAll_WiresAllFortyFiveSources(t *testing.T) {
|
||||
"goproxy",
|
||||
"helm",
|
||||
"huggingface",
|
||||
"jenkins",
|
||||
"jsbundle",
|
||||
"k8s",
|
||||
"kaggle",
|
||||
"maven",
|
||||
@@ -70,6 +75,8 @@ func TestRegisterAll_WiresAllFortyFiveSources(t *testing.T) {
|
||||
"spaces",
|
||||
"swagger",
|
||||
"terraform",
|
||||
"travisci",
|
||||
"wayback",
|
||||
"webpack",
|
||||
"yandex",
|
||||
"zoomeye",
|
||||
@@ -90,8 +97,8 @@ func TestRegisterAll_MissingCredsStillRegistered(t *testing.T) {
|
||||
Limiters: recon.NewLimiterRegistry(),
|
||||
})
|
||||
|
||||
if n := len(eng.List()); n != 45 {
|
||||
t.Fatalf("expected 45 sources registered, got %d: %v", n, eng.List())
|
||||
if n := len(eng.List()); n != 52 {
|
||||
t.Fatalf("expected 52 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