Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

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

Verified

This commit was signed with the committer’s verified signature.
ignatiusmb Ignatius Bagus
1 parent 7d7bf9e commit a5848b2
Showing 10 changed files with 2,309 additions and 170 deletions.
Original file line number Diff line number Diff line change
@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);
@@ -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");
Original file line number Diff line number Diff line change
@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);

@@ -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);

Loading

0 comments on commit a5848b2

Please sign in to comment.