mirror of
https://github.com/aquasecurity/kube-hunter.git
synced 2026-05-06 01:08:11 +00:00
Better test that reflects Kubernetes response
This commit is contained in:
@@ -8,7 +8,7 @@ def test_ApiServer():
|
||||
|
||||
with requests_mock.Mocker() as m:
|
||||
m.get('https://mockOther:443', text='elephant')
|
||||
m.get('https://mockKubernetes:443', text='code')
|
||||
m.get('https://mockKubernetes:443', text='{"code":403}')
|
||||
|
||||
e = Event()
|
||||
e.port = 443
|
||||
|
||||
Reference in New Issue
Block a user