aquasecurity / kube-hunter

Hunt for security weaknesses in Kubernetes clusters
Apache License 2.0
4.66k stars 578 forks source link

Create tests for custom hunting feature #490

Open danielsagi opened 2 years ago

danielsagi commented 2 years ago

What would you like to be added

Following #489 . we need tests to be implemented for this.

Essentially setting a custom config with an empty config,core_hunters. and allowing a new hunter with the config.custom. Then assert the handler.hooks to see only this hunter is registered.