@@ -43,11 +43,12 @@ func TestAnalysis_ProblemJsonOutput(t *testing.T) {
43
43
analysis := Analysis {
44
44
Results : []common.Result {
45
45
{
46
- "Deployment" ,
47
- "test-deployment" ,
48
- []string {"test-problem" },
49
- "test-solution" ,
50
- "parent-resource" },
46
+ Kind : "Deployment" ,
47
+ Name : "test-deployment" ,
48
+ Error : []string {"test-problem" },
49
+ Details : "test-solution" ,
50
+ ParentObject : "parent-resource" ,
51
+ },
51
52
},
52
53
Namespace : "default" ,
53
54
}
@@ -56,11 +57,13 @@ func TestAnalysis_ProblemJsonOutput(t *testing.T) {
56
57
Status : StateProblemDetected ,
57
58
Problems : 1 ,
58
59
Results : []common.Result {
59
- {"Deployment" ,
60
- "test-deployment" ,
61
- []string {"test-problem" },
62
- "test-solution" ,
63
- "parent-resource" },
60
+ {
61
+ Kind : "Deployment" ,
62
+ Name : "test-deployment" ,
63
+ Error : []string {"test-problem" },
64
+ Details : "test-solution" ,
65
+ ParentObject : "parent-resource" ,
66
+ },
64
67
},
65
68
}
66
69
@@ -85,11 +88,12 @@ func TestAnalysis_MultipleProblemJsonOutput(t *testing.T) {
85
88
analysis := Analysis {
86
89
Results : []common.Result {
87
90
{
88
- "Deployment" ,
89
- "test-deployment" ,
90
- []string {"test-problem" , "another-test-problem" },
91
- "test-solution" ,
92
- "parent-resource" },
91
+ Kind : "Deployment" ,
92
+ Name : "test-deployment" ,
93
+ Error : []string {"test-problem" , "another-test-problem" },
94
+ Details : "test-solution" ,
95
+ ParentObject : "parent-resource" ,
96
+ },
93
97
},
94
98
Namespace : "default" ,
95
99
}
@@ -98,11 +102,13 @@ func TestAnalysis_MultipleProblemJsonOutput(t *testing.T) {
98
102
Status : StateProblemDetected ,
99
103
Problems : 2 ,
100
104
Results : []common.Result {
101
- {"Deployment" ,
102
- "test-deployment" ,
103
- []string {"test-problem" , "another-test-problem" },
104
- "test-solution" ,
105
- "parent-resource" },
105
+ {
106
+ Kind : "Deployment" ,
107
+ Name : "test-deployment" ,
108
+ Error : []string {"test-problem" , "another-test-problem" },
109
+ Details : "test-solution" ,
110
+ ParentObject : "parent-resource" ,
111
+ },
106
112
},
107
113
}
108
114
0 commit comments