Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jpbruinsslot committed Jan 13, 2025
1 parent defa125 commit d3524cb
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 141 deletions.
54 changes: 31 additions & 23 deletions boefjes/tests/examples/scheduler/pop_response_boefje.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
{
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"priority": 1,
"scheduler_id": "boefje-_dev",
"schedule_id": null,
"status": "dispatched",
"type": "boefje",
"hash": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"data": {
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"boefje": {
"id": "dns-records",
"version": null
},
"input_ooi": "Hostname|internet|test.test",
"organization": "_dev",
"arguments": {},
"started_at": null,
"runnable_hash": null,
"environment": null,
"ended_at": null
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"priority": 1,
"scheduler_id": "boefje",
"organisation": "_dev",
"schedule_id": null,
"status": "dispatched",
"type": "boefje",
"hash": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"data": {
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"boefje": {
"id": "dns-records",
"version": null
},
"input_ooi": "Hostname|internet|test.test",
"organization": "_dev",
"arguments": {},
"started_at": null,
"runnable_hash": null,
"environment": null,
"ended_at": null
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
}
]
}
54 changes: 31 additions & 23 deletions boefjes/tests/examples/scheduler/pop_response_boefje_2.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
{
"id": "70da7d4f-f41f-4940-901b-d98a92e9014c",
"priority": 1,
"scheduler_id": "boefje-_dev",
"schedule_id": null,
"status": "dispatched",
"type": "boefje",
"hash": "70da7d4f-f41f-4940-901b-d98a92e9014c",
"data": {
"id": "70da7d4f-f41f-4940-901b-d98a92e9014c",
"boefje": {
"id": "dns-records",
"version": null
},
"input_ooi": "Hostname|internet|test.test",
"organization": "_dev",
"arguments": {},
"started_at": null,
"runnable_hash": null,
"environment": null,
"ended_at": null
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "70da7d4f-f41f-4940-901b-d98a92e9014c",
"priority": 1,
"scheduler_id": "boefje",
"organisation": "_dev",
"schedule_id": null,
"status": "dispatched",
"type": "boefje",
"hash": "70da7d4f-f41f-4940-901b-d98a92e9014c",
"data": {
"id": "70da7d4f-f41f-4940-901b-d98a92e9014c",
"boefje": {
"id": "dns-records",
"version": null
},
"input_ooi": "Hostname|internet|test.test",
"organization": "_dev",
"arguments": {},
"started_at": null,
"runnable_hash": null,
"environment": null,
"ended_at": null
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
}
]
}
54 changes: 31 additions & 23 deletions boefjes/tests/examples/scheduler/pop_response_boefje_no_ooi.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,33 @@
{
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"priority": 1,
"scheduler_id": "boefje-_dev",
"schedule_id": null,
"status": "dispatched",
"type": "boefje",
"hash": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"data": {
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"boefje": {
"id": "dns-records",
"version": null
},
"input_ooi": "",
"organization": "_dev",
"arguments": {},
"started_at": null,
"runnable_hash": null,
"environment": null,
"ended_at": null
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"priority": 1,
"scheduler_id": "boefje",
"organisation": "_dev",
"schedule_id": null,
"status": "dispatched",
"type": "boefje",
"hash": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"data": {
"id": "70da7d4f-f41f-4940-901b-d98a92e9014b",
"boefje": {
"id": "dns-records",
"version": null
},
"input_ooi": "",
"organization": "_dev",
"arguments": {},
"started_at": null,
"runnable_hash": null,
"environment": null,
"ended_at": null
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
}
]
}
109 changes: 57 additions & 52 deletions boefjes/tests/examples/scheduler/pop_response_normalizer.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,62 @@
{
"id": "60da7d4ff41f4940901bd98a92e9014b",
"priority": 1,
"scheduler_id": "normalizer-_dev",
"schedule_id": null,
"status": "dispatched",
"type": "normalizer",
"hash": "7e698c377cfd85015c0d7086b76b76b4",
"data": {
"id": "60da7d4ff41f4940901bd98a92e9014b",
"raw_data": {
"id": "60da7d4ff41f4940901bd98a92e9014a",
"boefje_meta": {
"id": "70da7d4ff41f4940901bd98a92e9014b",
"boefje": {
"id": "dns-records",
"name": "DnsRecords",
"description": "Fetch the DNS record(s) of a hostname",
"version": null,
"scan_level": 1,
"consumes": [
"Hostname"
],
"produces": [
"DNSAAAARecord",
"IPAddressV6",
"NXDOMAIN",
"Hostname",
"Network",
"DNSNSRecord",
"DNSTXTRecord",
"IPAddressV4",
"DNSMXRecord",
"DNSZone",
"DNSARecord",
"DNSSOARecord",
"DNSCNAMERecord"
],
"dispatches": null
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": "60da7d4ff41f4940901bd98a92e9014b",
"priority": 1,
"scheduler_id": "normalizer-_dev",
"schedule_id": null,
"status": "dispatched",
"type": "normalizer",
"hash": "7e698c377cfd85015c0d7086b76b76b4",
"data": {
"id": "60da7d4ff41f4940901bd98a92e9014b",
"raw_data": {
"id": "60da7d4ff41f4940901bd98a92e9014a",
"boefje_meta": {
"id": "70da7d4ff41f4940901bd98a92e9014b",
"boefje": {
"id": "dns-records",
"name": "DnsRecords",
"description": "Fetch the DNS record(s) of a hostname",
"version": null,
"scan_level": 1,
"consumes": ["Hostname"],
"produces": [
"DNSAAAARecord",
"IPAddressV6",
"NXDOMAIN",
"Hostname",
"Network",
"DNSNSRecord",
"DNSTXTRecord",
"IPAddressV4",
"DNSMXRecord",
"DNSZone",
"DNSARecord",
"DNSSOARecord",
"DNSCNAMERecord"
],
"dispatches": null
},
"input_ooi": "Hostname|internet|test.test",
"organization": "_dev",
"dispatches": []
},
"mime_types": [
{
"value": "boefje/dns-records"
}
]
},
"input_ooi": "Hostname|internet|test.test",
"organization": "_dev",
"dispatches": []
},
"mime_types": [
{
"value": "boefje/dns-records"
"normalizer": {
"id": "kat_dns_normalize"
}
]
},
"normalizer": {
"id": "kat_dns_normalize"
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
}
},
"created_at": "2021-06-29T14:00:00",
"modified_at": "2021-06-29T14:00:00"
]
}
20 changes: 0 additions & 20 deletions boefjes/tests/examples/scheduler/queues_response.json

This file was deleted.

0 comments on commit d3524cb

Please sign in to comment.