litmus/chaoscenter/graphql/server/pkg/database/mongodb
sukkyun hong 14c9808302
Add operator interface for Probe pkg (#4849)
* refactor: add operator interface for Probe pkg

- Add probeOperator to probe pkg
- Add probeOperator to handler that uses probeUtils
- Add probe operator as parameter to functions that use probe operations in probeUtils

Signed-off-by: sukkyun2 <goobghd@gmail.com>

* test: add operator to handlers that use probeUtils

Signed-off-by: sukkyun2 <goobghd@gmail.com>

* fix: reorder golang Imports

- Apply goimports

Signed-off-by: sukkyun2 <goobghd@gmail.com>

* test: add probeOperator to unit tests

Signed-off-by: sukkyun2 <goobghd@gmail.com>

* refactor: move GenerateProbeManifest logic into ProbeService

- Updated handler to call GenerateExperimentManifestWithProbes, GenerateCronExperimentManifestWithProbes via ProbeService

Signed-off-by: sukkyun2 <goobghd@gmail.com>

* test: replace probeOperator with probeService

- add mock probeService generated by mockery

Signed-off-by: sukkyun2 <goobghd@gmail.com>

* fix: reorder goimports

Signed-off-by: sukkyun2 <goobghd@gmail.com>

---------

Signed-off-by: sukkyun2 <goobghd@gmail.com>
Co-authored-by: Namkyu Park <53862866+namkyu1999@users.noreply.github.com>
2024-11-22 13:04:11 +05:30
..
authConfig Added support for jwt secret creation of each user upon user login (#4719) 2024-07-05 15:14:07 +05:30
chaos_experiment Test/chaos experiments: Tests for handlers and services (#4137) 2023-10-26 17:06:06 +05:30
chaos_experiment_run Test/mocks: added mocks for test cases (#4133) 2023-09-15 13:11:37 +05:30
chaos_hub Changed schema chaoshub (#4842) 2024-09-06 11:47:18 +05:30
chaos_infrastructure Test/mocks: added mocks for test cases (#4133) 2023-09-15 13:11:37 +05:30
config feat: Litmus 3.0: Added enhancements in graphql (#4025) 2023-06-29 17:33:48 +05:30
environments Update the code architecture to Interface model for Environment pkg (#4159) 2023-09-13 10:53:26 +05:30
gitops feat/gitops/image-registry: Added revamped UI screens for Gitops and image registry (#4135) 2023-09-05 12:12:23 +05:30
image_registry Updated Github Actions Workflows for 3.x.x Chaos Center (#4063) 2023-07-06 12:40:03 +05:30
mocks Added support for jwt secret creation of each user upon user login (#4719) 2024-07-05 15:14:07 +05:30
probe Add operator interface for Probe pkg (#4849) 2024-11-22 13:04:11 +05:30
project Executor role implementation. (#4737) 2024-07-02 09:56:16 +05:30
collection.go feat: Probes/Added backend implementation for probes as resource (#4116) 2023-08-23 16:31:51 +05:30
common_schema.go Added support for jwt secret creation of each user upon user login (#4719) 2024-07-05 15:14:07 +05:30
init.go updated the environment_id index to be a partia index (#4436) 2024-02-15 18:14:06 +05:30
operations.go Added support for jwt secret creation of each user upon user login (#4719) 2024-07-05 15:14:07 +05:30