Skip to content

Commit

Permalink
Merge pull request #50 from ispeakc0de/update-result
Browse files Browse the repository at this point in the history
update(chaos-result) Getting Verdict from the chaos-result status
  • Loading branch information
ispeakc0de authored Mar 9, 2020
2 parents 996890b + 02a30ee commit 2291b4f
Show file tree
Hide file tree
Showing 74 changed files with 14,084 additions and 90,643 deletions.
96 changes: 49 additions & 47 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/utils/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (expStatus *ExperimentStatus) CompletedExperimentStatus(chaosResult *v1alph
expStatus.Name = experimentDetails.JobName
expStatus.Status = "Execution Successful"
expStatus.LastUpdateTime = metav1.Now()
expStatus.Verdict = chaosResult.Spec.ExperimentStatus.Verdict
expStatus.Verdict = chaosResult.Status.ExperimentStatus.Verdict
//return currExpStatus
}

Expand Down
1 change: 1 addition & 0 deletions tests/runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ var _ = Describe("BDD on chaos-runner", func() {
Applabel: "app=nginx",
AppKind: "deployment",
},
EngineState: "active",
ChaosServiceAccount: "litmus",
Components: v1alpha1.ComponentParams{
Runner: v1alpha1.RunnerInfo{
Expand Down
Loading

0 comments on commit 2291b4f

Please sign in to comment.