@@ -88,6 +88,7 @@ exports[`#fetchComputeFirewalls should collect data 1`] = `
88
88
Object {
89
89
" collectedEntities" : Array [
90
90
Object {
91
+ " CIDR" : null ,
91
92
" _class" : Array [
92
93
" Network" ,
93
94
],
@@ -175,6 +176,7 @@ Object {
175
176
" webLink" : " https://console.cloud.google.com/networking/networks/details/default?project=j1-gc-integration-dev" ,
176
177
},
177
178
Object {
179
+ " CIDR" : null ,
178
180
" _class" : Array [
179
181
" Network" ,
180
182
],
@@ -215,6 +217,7 @@ Object {
215
217
" webLink" : " https://console.cloud.google.com/networking/networks/details/public-compute-app-vpc?project=j1-gc-integration-dev" ,
216
218
},
217
219
Object {
220
+ " CIDR" : null ,
218
221
" _class" : Array [
219
222
" Network" ,
220
223
],
@@ -3090,7 +3093,7 @@ Object {
3090
3093
},
3091
3094
Object {
3092
3095
" _class" : " ALLOWS" ,
3093
- " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-icmp:0.0.0.0/0:*" ,
3096
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-icmp:icmp: 0.0.0.0/0:*" ,
3094
3097
" _mapping" : Object {
3095
3098
" relationshipDirection" : " REVERSE" ,
3096
3099
" skipTargetCreation" : true ,
@@ -3138,6 +3141,90 @@ Object {
3138
3141
" _type" : " google_compute_network_has_firewall" ,
3139
3142
" displayName" : " HAS" ,
3140
3143
},
3144
+ Object {
3145
+ " _class" : " ALLOWS" ,
3146
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-internal:tcp:10.128.0.0/9:*" ,
3147
+ " _mapping" : Object {
3148
+ " relationshipDirection" : " REVERSE" ,
3149
+ " skipTargetCreation" : true ,
3150
+ " sourceEntityKey" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-internal" ,
3151
+ " targetEntity" : Object {
3152
+ " CIDR" : " 10.128.0.0/9" ,
3153
+ " _class" : " Network" ,
3154
+ " netmask" : " 9" ,
3155
+ },
3156
+ " targetFilterKeys" : Array [
3157
+ Array [
3158
+ " _class" ,
3159
+ " CIDR" ,
3160
+ ],
3161
+ ],
3162
+ },
3163
+ " _type" : " google_cloud_firewall_rule" ,
3164
+ " displayName" : " ALLOWS" ,
3165
+ " fromPort" : 0 ,
3166
+ " ipProtocol" : " tcp" ,
3167
+ " ipRange" : " 10.128.0.0/9" ,
3168
+ " portRange" : " *" ,
3169
+ " protocol" : " tcp" ,
3170
+ " toPort" : 65535 ,
3171
+ },
3172
+ Object {
3173
+ " _class" : " ALLOWS" ,
3174
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-internal:udp:10.128.0.0/9:*" ,
3175
+ " _mapping" : Object {
3176
+ " relationshipDirection" : " REVERSE" ,
3177
+ " skipTargetCreation" : true ,
3178
+ " sourceEntityKey" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-internal" ,
3179
+ " targetEntity" : Object {
3180
+ " CIDR" : " 10.128.0.0/9" ,
3181
+ " _class" : " Network" ,
3182
+ " netmask" : " 9" ,
3183
+ },
3184
+ " targetFilterKeys" : Array [
3185
+ Array [
3186
+ " _class" ,
3187
+ " CIDR" ,
3188
+ ],
3189
+ ],
3190
+ },
3191
+ " _type" : " google_cloud_firewall_rule" ,
3192
+ " displayName" : " ALLOWS" ,
3193
+ " fromPort" : 0 ,
3194
+ " ipProtocol" : " udp" ,
3195
+ " ipRange" : " 10.128.0.0/9" ,
3196
+ " portRange" : " *" ,
3197
+ " protocol" : " udp" ,
3198
+ " toPort" : 65535 ,
3199
+ },
3200
+ Object {
3201
+ " _class" : " ALLOWS" ,
3202
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-internal:icmp:10.128.0.0/9:*" ,
3203
+ " _mapping" : Object {
3204
+ " relationshipDirection" : " REVERSE" ,
3205
+ " skipTargetCreation" : true ,
3206
+ " sourceEntityKey" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-internal" ,
3207
+ " targetEntity" : Object {
3208
+ " CIDR" : " 10.128.0.0/9" ,
3209
+ " _class" : " Network" ,
3210
+ " netmask" : " 9" ,
3211
+ },
3212
+ " targetFilterKeys" : Array [
3213
+ Array [
3214
+ " _class" ,
3215
+ " CIDR" ,
3216
+ ],
3217
+ ],
3218
+ },
3219
+ " _type" : " google_cloud_firewall_rule" ,
3220
+ " displayName" : " ALLOWS" ,
3221
+ " fromPort" : 0 ,
3222
+ " ipProtocol" : " icmp" ,
3223
+ " ipRange" : " 10.128.0.0/9" ,
3224
+ " portRange" : " *" ,
3225
+ " protocol" : " icmp" ,
3226
+ " toPort" : 65535 ,
3227
+ },
3141
3228
Object {
3142
3229
" _class" : " PROTECTS" ,
3143
3230
" _fromEntityKey" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-rdp" ,
@@ -3156,7 +3243,7 @@ Object {
3156
3243
},
3157
3244
Object {
3158
3245
" _class" : " ALLOWS" ,
3159
- " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-rdp:0.0.0.0/0:3389" ,
3246
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-rdp:tcp: 0.0.0.0/0:3389" ,
3160
3247
" _mapping" : Object {
3161
3248
" relationshipDirection" : " REVERSE" ,
3162
3249
" skipTargetCreation" : true ,
@@ -3206,7 +3293,7 @@ Object {
3206
3293
},
3207
3294
Object {
3208
3295
" _class" : " ALLOWS" ,
3209
- " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-ssh:0.0.0.0/0:22" ,
3296
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/default-allow-ssh:tcp: 0.0.0.0/0:22" ,
3210
3297
" _mapping" : Object {
3211
3298
" relationshipDirection" : " REVERSE" ,
3212
3299
" skipTargetCreation" : true ,
@@ -3256,7 +3343,7 @@ Object {
3256
3343
},
3257
3344
Object {
3258
3345
" _class" : " ALLOWS" ,
3259
- " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/public-compute-app-fw-allow-http:0.0.0.0/0:80" ,
3346
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/public-compute-app-fw-allow-http:tcp: 0.0.0.0/0:80" ,
3260
3347
" _mapping" : Object {
3261
3348
" relationshipDirection" : " REVERSE" ,
3262
3349
" skipTargetCreation" : true ,
@@ -3306,7 +3393,7 @@ Object {
3306
3393
},
3307
3394
Object {
3308
3395
" _class" : " ALLOWS" ,
3309
- " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/public-compute-app-fw-allow-https:0.0.0.0/0:443" ,
3396
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/public-compute-app-fw-allow-https:tcp: 0.0.0.0/0:443" ,
3310
3397
" _mapping" : Object {
3311
3398
" relationshipDirection" : " REVERSE" ,
3312
3399
" skipTargetCreation" : true ,
@@ -3356,7 +3443,7 @@ Object {
3356
3443
},
3357
3444
Object {
3358
3445
" _class" : " DENIES" ,
3359
- " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/public-compute-app-fw-deny-ssh:0.0.0.0/0:22" ,
3446
+ " _key" : " https://www.googleapis.com/compute/v1/projects/j1-gc-integration-dev/global/firewalls/public-compute-app-fw-deny-ssh:tcp: 0.0.0.0/0:22" ,
3360
3447
" _mapping" : Object {
3361
3448
" relationshipDirection" : " REVERSE" ,
3362
3449
" skipTargetCreation" : true ,
@@ -3399,7 +3486,7 @@ Object {
3399
3486
" google_cloud_firewall_rule" ,
3400
3487
],
3401
3488
" numCollectedEntities" : 59 ,
3402
- " numCollectedRelationships" : 69 ,
3489
+ " numCollectedRelationships" : 72 ,
3403
3490
}
3404
3491
` ;
3405
3492
@@ -4036,6 +4123,10 @@ Object {
4036
4123
" labelFingerprint" : " 42WmSpB8rSM=" ,
4037
4124
" machineType" : " n1-standard-1" ,
4038
4125
" name" : " testvm" ,
4126
+ " privateIpAddress" : Array [
4127
+ " 10.128.0.2" ,
4128
+ ],
4129
+ " publicIpAddress" : Array [],
4039
4130
" startRestricted" : false ,
4040
4131
" status" : " RUNNING" ,
4041
4132
" zone" : " us-central1-a" ,
@@ -4181,6 +4272,7 @@ exports[`#fetchComputeNetworks should collect data 1`] = `
4181
4272
Object {
4182
4273
" collectedEntities" : Array [
4183
4274
Object {
4275
+ " CIDR" : null ,
4184
4276
" _class" : Array [
4185
4277
" Network" ,
4186
4278
],
@@ -4268,6 +4360,7 @@ Object {
4268
4360
" webLink" : " https://console.cloud.google.com/networking/networks/details/default?project=j1-gc-integration-dev" ,
4269
4361
},
4270
4362
Object {
4363
+ " CIDR" : null ,
4271
4364
" _class" : Array [
4272
4365
" Network" ,
4273
4366
],
@@ -4308,6 +4401,7 @@ Object {
4308
4401
" webLink" : " https://console.cloud.google.com/networking/networks/details/public-compute-app-vpc?project=j1-gc-integration-dev" ,
4309
4402
},
4310
4403
Object {
4404
+ " CIDR" : null ,
4311
4405
" _class" : Array [
4312
4406
" Network" ,
4313
4407
],
@@ -4408,6 +4502,7 @@ exports[`#fetchComputeSubnetworks should collect data 1`] = `
4408
4502
Object {
4409
4503
" collectedEntities" : Array [
4410
4504
Object {
4505
+ " CIDR" : null ,
4411
4506
" _class" : Array [
4412
4507
" Network" ,
4413
4508
],
@@ -4495,6 +4590,7 @@ Object {
4495
4590
" webLink" : " https://console.cloud.google.com/networking/networks/details/default?project=j1-gc-integration-dev" ,
4496
4591
},
4497
4592
Object {
4593
+ " CIDR" : null ,
4498
4594
" _class" : Array [
4499
4595
" Network" ,
4500
4596
],
@@ -4535,6 +4631,7 @@ Object {
4535
4631
" webLink" : " https://console.cloud.google.com/networking/networks/details/public-compute-app-vpc?project=j1-gc-integration-dev" ,
4536
4632
},
4537
4633
Object {
4634
+ " CIDR" : null ,
4538
4635
" _class" : Array [
4539
4636
" Network" ,
4540
4637
],
0 commit comments