Skip to content

Commit

Permalink
refactor: update fixtures and permissions, remove unused data
Browse files Browse the repository at this point in the history
- Removed extensive data from targetApp.json, including historical IPs, related domains, registrars, domain registrations, WHOIS status, nameservers, DNS records, and domain info.
- Updated auth.json to modify permission names and codenames, and removed several user and group entries.
- Added new todo notes in recon_note.json and updated existing ones.
- Updated dashboard.json to modify project details and remove unused settings.
- Modified scanEngine.json to update YAML configurations and add a new interesting lookup model.
- Enabled remote debugging in docker-compose.dev.yml.
- Updated a test in test_vulnerability.py to patch a different method for generating vulnerability reports
  • Loading branch information
psyray committed Nov 13, 2024
1 parent 5390b37 commit 20823c0
Show file tree
Hide file tree
Showing 9 changed files with 66,745 additions and 2,694 deletions.
2 changes: 1 addition & 1 deletion web/api/tests/test_vulnerability.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def setUp(self):
self.data_generator.create_endpoint()
self.data_generator.create_vulnerability()

@patch("reNgine.tasks.llm_vulnerability_description.apply_async")
@patch("reNgine.tasks.llm_vulnerability_report.apply_async")
def test_get_vulnerability_report(self, mock_apply_async):
"""Test generating a vulnerability report."""
mock_task = MagicMock()
Expand Down
31 changes: 9 additions & 22 deletions web/dashboard/fixtures/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,21 @@
"pk": 1,
"fields": {
"name": "Default",
"description": null,
"slug": "default",
"insert_date": "2024-09-03T21:23:21.459Z"
"insert_date": "2024-11-13T01:59:02.841Z",
"users": []
}
},
{
"model": "dashboard.project",
"pk": 2,
"pk": 34,
"fields": {
"name": "My Project",
"slug": "my-project",
"insert_date": "2024-09-04T00:32:08.839Z"
}
},
{
"model": "dashboard.project",
"pk": 3,
"fields": {
"name": "My Other Project",
"slug": "my-other-project",
"insert_date": "2024-09-04T00:32:31.475Z"
}
},
{
"model": "dashboard.ollamasettings",
"pk": 1,
"fields": {
"selected_model": "gpt-3",
"use_ollama": false
"name": "Another project",
"description": null,
"slug": "another-project",
"insert_date": "2024-11-13T03:05:09.478Z",
"users": []
}
}
]
Loading

0 comments on commit 20823c0

Please sign in to comment.