You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: branches/autosynth-os-login/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequest.java
Copy file name to clipboardExpand all lines: branches/autosynth-os-login/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/java/com/google/cloud/securitycenter/v1/GroupAssetsRequestOrBuilder.java
Copy file name to clipboardExpand all lines: branches/autosynth-os-login/google-api-grpc/proto-google-cloud-securitycenter-v1/src/main/proto/google/cloud/securitycenter/v1/securitycenter_service.proto
Copy file name to clipboardExpand all lines: branches/autosynth-os-login/google-cloud-clients/google-cloud-securitycenter/src/test/java/com/google/cloud/securitycenter/v1/SecurityCenterClientTest.java
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -93,12 +93,12 @@ public void tearDown() throws Exception {
93
93
@Test
94
94
@SuppressWarnings("all")
95
95
public void createSourceTest() {
96
-
String name = "name3373707";
96
+
SourceName name = SourceName.of("[ORGANIZATION]", "[SOURCE]");
97
97
String displayName = "displayName1615086568";
98
98
String description = "description-1724546052";
99
99
Source expectedResponse =
100
100
Source.newBuilder()
101
-
.setName(name)
101
+
.setName(name.toString())
102
102
.setDisplayName(displayName)
103
103
.setDescription(description)
104
104
.build();
@@ -142,14 +142,14 @@ public void createSourceExceptionTest() throws Exception {
142
142
@Test
143
143
@SuppressWarnings("all")
144
144
public void createFindingTest() {
145
-
String name = "name3373707";
145
+
FindingName name = FindingName.of("[ORGANIZATION]", "[SOURCE]", "[FINDING]");
146
146
String parent2 = "parent21175163357";
147
147
String resourceName = "resourceName979421212";
148
148
String category = "category50511102";
149
149
String externalUri = "externalUri-1385596168";
150
150
Finding expectedResponse =
151
151
Finding.newBuilder()
152
-
.setName(name)
152
+
.setName(name.toString())
153
153
.setParent(parent2)
154
154
.setResourceName(resourceName)
155
155
.setCategory(category)
@@ -283,12 +283,12 @@ public void getOrganizationSettingsExceptionTest() throws Exception {
0 commit comments