Skip to content

Commit 2291b4f

Browse files
authored
Merge pull request #50 from ispeakc0de/update-result
update(chaos-result) Getting Verdict from the chaos-result status
2 parents 996890b + 02a30ee commit 2291b4f

File tree

74 files changed

+14084
-90643
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+14084
-90643
lines changed

Gopkg.lock

Lines changed: 49 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/utils/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func (expStatus *ExperimentStatus) CompletedExperimentStatus(chaosResult *v1alph
2727
expStatus.Name = experimentDetails.JobName
2828
expStatus.Status = "Execution Successful"
2929
expStatus.LastUpdateTime = metav1.Now()
30-
expStatus.Verdict = chaosResult.Spec.ExperimentStatus.Verdict
30+
expStatus.Verdict = chaosResult.Status.ExperimentStatus.Verdict
3131
//return currExpStatus
3232
}
3333

tests/runner_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ var _ = Describe("BDD on chaos-runner", func() {
193193
Applabel: "app=nginx",
194194
AppKind: "deployment",
195195
},
196+
EngineState: "active",
196197
ChaosServiceAccount: "litmus",
197198
Components: v1alpha1.ComponentParams{
198199
Runner: v1alpha1.RunnerInfo{

0 commit comments

Comments
 (0)