Skip to content

Commit f949766

Browse files
Fix test for field cloud_provider
1 parent c6d116c commit f949766

File tree

3 files changed

+758
-1067
lines changed

3 files changed

+758
-1067
lines changed

packages/qualys_gav/_dev/deploy/docker/files/config.yml

Lines changed: 84 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,50 @@ rules:
237237
]
238238
},
239239
"softwareComponent": "Apache HTTP Server",
240-
"provider": "Apache",
241-
"cloudProvider": "Amazon Web Services",
240+
"provider": "AWS",
241+
"cloudProvider": {
242+
"aws": {
243+
"ec2": {
244+
"accountId": "1234",
245+
"availabilityZone": "us-west-2a",
246+
"hasAgent": true,
247+
"hostname": "hostname_value",
248+
"imageId": "imageId_value",
249+
"instanceId": "instanceId_value",
250+
"instanceState": "RUNNING",
251+
"instanceType": "m4.large",
252+
"qualysScanner": false,
253+
"kernelId": null,
254+
"launchdate": 1653386892000,
255+
"privateDNS": "privateDNS_value",
256+
"privateIpAddress": "10.0.0.1",
257+
"publicDNS": null,
258+
"publicIpAddress": "175.16.199.1",
259+
"region": {
260+
"code": "us-west-2",
261+
"name": "US West (Oregon)"
262+
},
263+
"spotInstance": false,
264+
"subnetId": "subnetId_value",
265+
"vpcId": "vpcId_value"
266+
},
267+
"tags": [
268+
{
269+
"key": "tags_key_1",
270+
"value": "tags_value_1"
271+
},
272+
{
273+
"key": "tags_key_2",
274+
"value": "tags_value_2"
275+
}
276+
]
277+
},
278+
"azure": null,
279+
"gcp": null,
280+
"oci": null,
281+
"ibm": null,
282+
"alibaba": null
283+
},
242284
"agent": {
243285
"version": "2.4.7",
244286
"configurationProfile": "Apache HTTP Server",
@@ -623,8 +665,40 @@ rules:
623665
]
624666
},
625667
"softwareComponent": "mock_software_component",
626-
"provider": "mock_provider",
627-
"cloudProvider": "mock_cloud_provider",
668+
"provider": "GCP",
669+
"cloudProvider": {
670+
"aws": null,
671+
"azure": null,
672+
"gcp": {
673+
"compute": {
674+
"hostname": "hostname_value",
675+
"instanceId": "instanceId_value",
676+
"macAddress": "00:11:22:33:44:55",
677+
"machineType": "e2-standard-4",
678+
"network": "network_value",
679+
"privateIpAddress": "175.16.199.1",
680+
"projectId": "projectId_value",
681+
"projectNumber": "123456789012",
682+
"publicIpAddress": "34.0.0.1",
683+
"zone": "us-central1-a",
684+
"state": "RUNNING",
685+
"imageId": "projects/debian-cloud/global/images/debian-11-bullseye-v20221206"
686+
},
687+
"tags": [
688+
{
689+
"key": "tags_key_1",
690+
"value": "tags_value_1"
691+
},
692+
{
693+
"key": "tags_key_2",
694+
"value": "tags_value_2"
695+
}
696+
]
697+
},
698+
"oci": null,
699+
"ibm": null,
700+
"alibaba": null
701+
},
628702
"agent": {
629703
"version": "mock_agent_version",
630704
"configurationProfile": "mock_agent_configuration_profile",
@@ -1029,8 +1103,8 @@ rules:
10291103
]
10301104
},
10311105
"softwareComponent": "mock_software_component",
1032-
"provider": "mock_provider",
1033-
"cloudProvider": "mock_cloud_provider",
1106+
"provider": null,
1107+
"cloudProvider": null,
10341108
"agent": {
10351109
"version": "7.2.0.38",
10361110
"configurationProfile": "config_modules",
@@ -1415,8 +1489,8 @@ rules:
14151489
]
14161490
},
14171491
"softwareComponent": "mock_software_component",
1418-
"provider": "mock_provider",
1419-
"cloudProvider": "mock_cloud_provider",
1492+
"provider": null,
1493+
"cloudProvider": null,
14201494
"agent": {
14211495
"version": "7.2.0.38",
14221496
"configurationProfile": "config_modules",
@@ -1825,8 +1899,8 @@ rules:
18251899
]
18261900
},
18271901
"softwareComponent": "mock_software_component",
1828-
"provider": "mock_provider",
1829-
"cloudProvider": "mock_cloud_provider",
1902+
"provider": null,
1903+
"cloudProvider": null,
18301904
"agent": {
18311905
"version": "mock_agent_version",
18321906
"configurationProfile": "mock_agent_configuration_profile",

0 commit comments

Comments
 (0)