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

Commit

Permalink
feat: added NO_STARTING_URL_FOUND_FOR_MANAGED_SCAN to ScanRunWarningT…
Browse files Browse the repository at this point in the history
…race.Code

fix: Added fix to return a list of the endpoints that encountered errors during crawl, along with the specific error message when the starting URL returns Http errors
fix: GoogleAccount is deprecated

PiperOrigin-RevId: 472758119

Source-Link: googleapis/googleapis@4356ba6

Source-Link: googleapis/googleapis-gen@2370420
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjM3MDQyMDIzZjEwOGIxNGMwNDI3MTE4NDUyNDFmYmI2MmNmMmUwOCJ9
  • Loading branch information
gcf-owl-bot[bot] committed Sep 7, 2022
1 parent 0ae3d16 commit 92e1b19
Show file tree
Hide file tree
Showing 500 changed files with 33,614 additions and 53,070 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.websecurityscanner.v1.stub.WebSecurityScannerStubSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ public void createScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -201,6 +202,7 @@ public void getScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -319,6 +321,7 @@ public void updateScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -335,6 +338,7 @@ public void updateScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -378,6 +382,7 @@ public void updateScanConfigExceptionTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Expand Down Expand Up @@ -702,6 +707,7 @@ public void getFindingTest() throws Exception {
.setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
.setVulnerableParameters(VulnerableParameters.newBuilder().build())
.setXss(Xss.newBuilder().build())
.setXxe(Xxe.newBuilder().build())
.build();
mockService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void createScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -189,6 +190,7 @@ public void getScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -292,6 +294,7 @@ public void updateScanConfigTest() throws Exception {
.setSchedule(ScanConfig.Schedule.newBuilder().build())
.setManagedScan(true)
.setStaticIpScan(true)
.setIgnoreHttpStatusErrors(true)
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down Expand Up @@ -604,6 +607,7 @@ public void getFindingTest() throws Exception {
.setVulnerableHeaders(VulnerableHeaders.newBuilder().build())
.setVulnerableParameters(VulnerableParameters.newBuilder().build())
.setXss(Xss.newBuilder().build())
.setXxe(Xxe.newBuilder().build())
.build();
mockWebSecurityScanner.addResponse(expectedResponse);

Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit 92e1b19

Please sign in to comment.