-
Notifications
You must be signed in to change notification settings - Fork 752
Description
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