Add local Windows Server inventory collection and validation; include core package
This commit is contained in:
213
tests/fixtures/windows/server-2016.json
vendored
Normal file
213
tests/fixtures/windows/server-2016.json
vendored
Normal file
@@ -0,0 +1,213 @@
|
||||
{
|
||||
"schema_version": "1.0",
|
||||
"synthetic": true,
|
||||
"collected_at": "2026-10-01T12:00:00Z",
|
||||
"server": {
|
||||
"hostname": "fixture-win2016.example.test",
|
||||
"operating_system": "Microsoft Windows Server 2016 Standard (synthetic)",
|
||||
"os_build": "14393",
|
||||
"last_boot": "2026-09-25T06:30:00Z",
|
||||
"ip_addresses": [
|
||||
"192.0.2.20"
|
||||
],
|
||||
"network_adapters": [
|
||||
"Synthetic Ethernet adapter"
|
||||
],
|
||||
"domain": "example.test",
|
||||
"platform": "windows",
|
||||
"os_version": "2016",
|
||||
"kernel_version": "10.0.14393",
|
||||
"product_type": 3,
|
||||
"domain_joined": true,
|
||||
"collection_source": "Synthetic Windows fixture"
|
||||
},
|
||||
"checks": {
|
||||
"system": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"roles": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"services": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"network": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"tasks": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"software": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"storage": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"shares": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
},
|
||||
"certificates": {
|
||||
"status": "complete",
|
||||
"message": "Synthetic contract fixture; no Windows collection performed.",
|
||||
"started_at": "2026-10-01T12:00:00Z",
|
||||
"completed_at": "2026-10-01T12:00:01Z",
|
||||
"errors": [],
|
||||
"permission_limitations": [],
|
||||
"limitations": [
|
||||
"Synthetic fixture only."
|
||||
]
|
||||
}
|
||||
},
|
||||
"inventory": {
|
||||
"roles": [
|
||||
{
|
||||
"name": "Web-Server",
|
||||
"state": "Installed"
|
||||
},
|
||||
{
|
||||
"name": "File-Services",
|
||||
"state": "Installed"
|
||||
}
|
||||
],
|
||||
"services": [
|
||||
{
|
||||
"name": "W3SVC",
|
||||
"display_name": "World Wide Web Publishing Service",
|
||||
"state": "Running",
|
||||
"startup": "Automatic",
|
||||
"account": "LocalSystem",
|
||||
"pid": 123
|
||||
}
|
||||
],
|
||||
"network": [
|
||||
{
|
||||
"state": "Listen",
|
||||
"local_address": "0.0.0.0",
|
||||
"local_port": 443,
|
||||
"remote_address": "",
|
||||
"remote_port": 0,
|
||||
"pid": 4,
|
||||
"process": "System",
|
||||
"direction": "Unknown"
|
||||
},
|
||||
{
|
||||
"state": "Established",
|
||||
"local_address": "192.0.2.20",
|
||||
"local_port": 443,
|
||||
"remote_address": "192.0.2.45",
|
||||
"remote_port": 52104,
|
||||
"pid": 4,
|
||||
"process": "System",
|
||||
"direction": "Unknown"
|
||||
}
|
||||
],
|
||||
"tasks": [
|
||||
{
|
||||
"name": "Nightly export",
|
||||
"path": "\\Operations\\",
|
||||
"enabled": true,
|
||||
"account": "EXAMPLE\\svc_export",
|
||||
"triggers": "MSFT_TaskDailyTrigger; start=2026-10-01T02:00:00; daysInterval=1",
|
||||
"executables": "export.exe",
|
||||
"state": "Ready"
|
||||
}
|
||||
],
|
||||
"software": [
|
||||
{
|
||||
"name": "Example Reporting Service",
|
||||
"publisher": "Example Software",
|
||||
"version": "4.2",
|
||||
"installation_date": "2024-06-12"
|
||||
}
|
||||
],
|
||||
"storage": [
|
||||
{
|
||||
"type": "Volume",
|
||||
"name": "C:",
|
||||
"path": "C:\\",
|
||||
"capacity_gib": 160,
|
||||
"free_gib": 72
|
||||
},
|
||||
{
|
||||
"type": "SMB Share",
|
||||
"name": "Reports",
|
||||
"path": "D:\\Reports",
|
||||
"capacity_gib": null,
|
||||
"free_gib": null
|
||||
}
|
||||
],
|
||||
"certificates": [
|
||||
{
|
||||
"subject": "CN=demo-web-01.example.test",
|
||||
"issuer": "CN=Example Test CA",
|
||||
"expires": "2027-06-01T00:00:00Z",
|
||||
"thumbprint": "0123456789ABCDEF0123456789ABCDEF01234567",
|
||||
"store": "My"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user