Skip to content

HTTP method of probe is getting overwritten when using more than 2 HTTP probes #5167

@Calvinaud

Description

@Calvinaud

What happened:

When using more than 2 different HTTP probe for the same experiments, the method section of the last added probe will overwritten the previous one during their injection in the manifest.

What you expected to happen:

The method to not get overwritten

Where can this issue be corrected? (optional)
I think the issue is coming from this function: https://github.com/litmuschaos/litmus/blob/master/chaoscenter/graphql/server/pkg/probe/handler/handler.go#L723

After the call on the function GenerateProbeManifest in
https://github.com/litmuschaos/litmus/blob/master/chaoscenter/graphql/server/pkg/probe/handler/handler.go#L780 the generated manifest seem fine.

But after the append / end of this function, the method is overwritten.

Image I built for this debugging: calvinaud/test:litmus3 with some extra logs

How to reproduce it (as minimally and precisely as possible):

  • Create a probe that check status code 404
  • Create a probe that check status code 503
  • Create an experiments with a fault that use both probe
  • Run experiments

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions