Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions gapic-libraries-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -887,11 +887,6 @@
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-logging-logback</artifactId>
<version>0.143.0-alpha-SNAPSHOT</version><!-- {x-version-update:google-cloud-logging-logback:current} -->
</dependency>
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>google-cloud-lustre-bom</artifactId>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
* </tr>
* <tr>
* <td><p> ValidateAttestationOccurrence</td>
* <td><p> Returns whether the given Attestation for the given image URI was signed by the given Attestor</td>
* <td><p> Returns whether the given `Attestation` for the given image URI was signed by the given `Attestor`</td>
* <td>
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
* <ul>
Expand Down Expand Up @@ -185,7 +185,8 @@ public ValidationHelperV1Stub getStub() {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns whether the given Attestation for the given image URI was signed by the given Attestor
* Returns whether the given `Attestation` for the given image URI was signed by the given
* `Attestor`
*
* <p>Sample code:
*
Expand Down Expand Up @@ -218,7 +219,8 @@ public final Service.ValidateAttestationOccurrenceResponse validateAttestationOc

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Returns whether the given Attestation for the given image URI was signed by the given Attestor
* Returns whether the given `Attestation` for the given image URI was signed by the given
* `Attestor`
*
* <p>Sample code:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public void getPolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -144,6 +145,7 @@ public void getPolicyTest2() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -196,6 +198,7 @@ public void updatePolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -210,6 +213,7 @@ public void updatePolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();

Policy actualResponse = client.updatePolicy(policy);
Expand Down Expand Up @@ -249,6 +253,7 @@ public void updatePolicyExceptionTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
client.updatePolicy(policy);
Assert.fail("No exception raised");
Expand All @@ -264,6 +269,7 @@ public void createAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -314,6 +320,7 @@ public void createAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -364,6 +371,7 @@ public void getAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -410,6 +418,7 @@ public void getAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -456,6 +465,7 @@ public void updateAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -464,6 +474,7 @@ public void updateAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();

Attestor actualResponse = client.updateAttestor(attestor);
Expand Down Expand Up @@ -497,6 +508,7 @@ public void updateAttestorExceptionTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
client.updateAttestor(attestor);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public void getPolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -142,6 +143,7 @@ public void getPolicyTest2() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -188,6 +190,7 @@ public void updatePolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -228,6 +231,7 @@ public void createAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -274,6 +278,7 @@ public void createAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -320,6 +325,7 @@ public void getAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -360,6 +366,7 @@ public void getAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -400,6 +407,7 @@ public void updateAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1Beta1.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public void getSystemPolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -139,6 +140,7 @@ public void getSystemPolicyTest2() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public void getSystemPolicyTest() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockSystemPolicyV1Beta1.addResponse(expectedResponse);

Expand Down Expand Up @@ -137,6 +138,7 @@ public void getSystemPolicyTest2() throws Exception {
.putAllIstioServiceIdentityAdmissionRules(new HashMap<String, AdmissionRule>())
.setDefaultAdmissionRule(AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockSystemPolicyV1Beta1.addResponse(expectedResponse);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void getPolicyTest() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -148,6 +149,7 @@ public void getPolicyTest2() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -202,6 +204,7 @@ public void updatePolicyTest() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -218,6 +221,7 @@ public void updatePolicyTest() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();

Resources.Policy actualResponse = client.updatePolicy(policy);
Expand Down Expand Up @@ -261,6 +265,7 @@ public void updatePolicyExceptionTest() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
client.updatePolicy(policy);
Assert.fail("No exception raised");
Expand All @@ -276,6 +281,7 @@ public void createAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -326,6 +332,7 @@ public void createAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -376,6 +383,7 @@ public void getAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -422,6 +430,7 @@ public void getAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand Down Expand Up @@ -468,6 +477,7 @@ public void updateAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockService.addResponse(expectedResponse);

Expand All @@ -476,6 +486,7 @@ public void updateAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();

Resources.Attestor actualResponse = client.updateAttestor(attestor);
Expand Down Expand Up @@ -509,6 +520,7 @@ public void updateAttestorExceptionTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
client.updateAttestor(attestor);
Assert.fail("No exception raised");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void getPolicyTest() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -146,6 +147,7 @@ public void getPolicyTest2() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -194,6 +196,7 @@ public void updatePolicyTest() throws Exception {
new HashMap<String, Resources.AdmissionRule>())
.setDefaultAdmissionRule(Resources.AdmissionRule.newBuilder().build())
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -235,6 +238,7 @@ public void createAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -282,6 +286,7 @@ public void createAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -329,6 +334,7 @@ public void getAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -369,6 +375,7 @@ public void getAttestorTest2() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down Expand Up @@ -409,6 +416,7 @@ public void updateAttestorTest() throws Exception {
.setName(AttestorName.of("[PROJECT]", "[ATTESTOR]").toString())
.setDescription("description-1724546052")
.setUpdateTime(Timestamp.newBuilder().build())
.setEtag("etag3123477")
.build();
mockBinauthzManagementServiceV1.addResponse(expectedResponse);

Expand Down
Loading
Loading