Skip to content

Commit

Permalink
feat: Adding database access information, such as queries field to a …
Browse files Browse the repository at this point in the history
…finding. A database may be a sub-resource of an instance (as in the case of CloudSQL instances or Cloud Spanner instances), or the database instance itself (#902)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 469544940

Source-Link: googleapis/googleapis@a887434

Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca12635e1b065de9efcaa551669648fcbde1a944
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2ExMjYzNWUxYjA2NWRlOWVmY2FhNTUxNjY5NjQ4ZmNiZGUxYTk0NCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Aug 24, 2022
1 parent 6566bd8 commit f8ab964
Show file tree
Hide file tree
Showing 10 changed files with 2,309 additions and 170 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public void createFindingTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -399,6 +400,7 @@ public void createFindingTest2() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -2789,6 +2791,7 @@ public void setFindingStateTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -2868,6 +2871,7 @@ public void setFindingStateTest2() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -2945,6 +2949,7 @@ public void setMuteTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -3022,6 +3027,7 @@ public void setMuteTest2() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -3349,6 +3355,7 @@ public void updateFindingTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -3384,6 +3391,7 @@ public void updateFindingTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();

Finding actualResponse = client.updateFinding(finding);
Expand Down Expand Up @@ -3444,6 +3452,7 @@ public void updateFindingExceptionTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
client.updateFinding(finding);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ public void createFindingTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -386,6 +387,7 @@ public void createFindingTest2() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2560,6 +2562,7 @@ public void setFindingStateTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2635,6 +2638,7 @@ public void setFindingStateTest2() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2708,6 +2712,7 @@ public void setMuteTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -2780,6 +2785,7 @@ public void setMuteTest2() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down Expand Up @@ -3062,6 +3068,7 @@ public void updateFindingTest() throws Exception {
.setNextSteps("nextSteps1206138868")
.addAllContainers(new ArrayList<Container>())
.setKubernetes(Kubernetes.newBuilder().build())
.setDatabase(Database.newBuilder().build())
.build();
mockSecurityCenter.addResponse(expectedResponse);

Expand Down
Loading

0 comments on commit f8ab964

Please sign in to comment.