Skip to content

Commit

Permalink
No more controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Dec 24, 2019
1 parent 3955dab commit 2b97e52
Show file tree
Hide file tree
Showing 30 changed files with 9 additions and 2,283 deletions.
12 changes: 9 additions & 3 deletions pkg/analyze/text_analyze_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func Test_textAnalyze(t *testing.T) {
IsPass: true,
IsWarn: false,
IsFail: false,
Title: "text-collector-1",
Message: "pass",
},
files: map[string][]byte{
Expand Down Expand Up @@ -68,6 +69,7 @@ func Test_textAnalyze(t *testing.T) {
IsPass: false,
IsWarn: false,
IsFail: true,
Title: "text-collector-2",
Message: "fail",
},
files: map[string][]byte{
Expand All @@ -94,10 +96,11 @@ func Test_textAnalyze(t *testing.T) {
RegexPattern: "",
},
expectResult: AnalyzeResult{
IsPass: true,
IsPass: false,
IsWarn: false,
IsFail: false,
Message: "success",
IsFail: true,
Title: "",
Message: "Invalid analyzer",
},
files: map[string][]byte{
"text-collector-3/cfile-3.txt": []byte("Connection to service succeeded"),
Expand Down Expand Up @@ -126,6 +129,7 @@ func Test_textAnalyze(t *testing.T) {
IsPass: true,
IsWarn: false,
IsFail: false,
Title: "text-collector-5",
Message: "success",
},
files: map[string][]byte{
Expand Down Expand Up @@ -155,6 +159,7 @@ func Test_textAnalyze(t *testing.T) {
IsPass: false,
IsWarn: false,
IsFail: true,
Title: "text-collector-4",
Message: "fail",
},
files: map[string][]byte{
Expand Down Expand Up @@ -184,6 +189,7 @@ func Test_textAnalyze(t *testing.T) {
IsPass: false,
IsWarn: false,
IsFail: true,
Title: "text-collector-6",
Message: "fail",
},
files: map[string][]byte{
Expand Down
26 changes: 0 additions & 26 deletions pkg/controller/add_analyzer.go

This file was deleted.

26 changes: 0 additions & 26 deletions pkg/controller/add_analyzerjob.go

This file was deleted.

26 changes: 0 additions & 26 deletions pkg/controller/add_collector.go

This file was deleted.

26 changes: 0 additions & 26 deletions pkg/controller/add_collectorjob.go

This file was deleted.

26 changes: 0 additions & 26 deletions pkg/controller/add_preflight.go

This file was deleted.

26 changes: 0 additions & 26 deletions pkg/controller/add_preflightjob.go

This file was deleted.

167 changes: 0 additions & 167 deletions pkg/controller/analyzer/analyzer_controller.go

This file was deleted.

Loading

0 comments on commit 2b97e52

Please sign in to comment.