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

Commit

Permalink
chore: linkage monitor check should skipp clirr and enforcer
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Feb 3, 2020
1 parent 08ee8cb commit f1c8e41
Show file tree
Hide file tree
Showing 23 changed files with 212 additions and 408 deletions.
7 changes: 6 additions & 1 deletion .kokoro/linkage-monitor.sh
Expand Up @@ -23,7 +23,12 @@ cd github/java-billing/
java -version
echo ${JOB_TYPE}

mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V
mvn install -B -V \
-DskipTests=true \
-Dclirr.skip=true \
-Denforcer.skip=true \
-Dmaven.javadoc.skip=true \
-Dgcloud.download.skip=true

# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR
JAR=linkage-monitor-latest-all-deps.jar
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -177,7 +177,6 @@ public CloudBillingStub getStub() {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BillingAccount getBillingAccount(BillingAccountName name) {

GetBillingAccountRequest request =
GetBillingAccountRequest.newBuilder()
.setName(name == null ? null : name.toString())
Expand All @@ -204,7 +203,6 @@ public final BillingAccount getBillingAccount(BillingAccountName name) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BillingAccount getBillingAccount(String name) {

GetBillingAccountRequest request = GetBillingAccountRequest.newBuilder().setName(name).build();
return getBillingAccount(request);
}
Expand Down Expand Up @@ -276,7 +274,6 @@ public final UnaryCallable<GetBillingAccountRequest, BillingAccount> getBillingA
*/
public final ListBillingAccountsPagedResponse listBillingAccounts() {
ListBillingAccountsRequest request = ListBillingAccountsRequest.newBuilder().build();

return listBillingAccounts(request);
}

Expand Down Expand Up @@ -381,7 +378,6 @@ public final ListBillingAccountsPagedResponse listBillingAccounts(
*/
public final BillingAccount updateBillingAccount(
BillingAccountName name, BillingAccount account) {

UpdateBillingAccountRequest request =
UpdateBillingAccountRequest.newBuilder()
.setName(name == null ? null : name.toString())
Expand Down Expand Up @@ -413,7 +409,6 @@ public final BillingAccount updateBillingAccount(
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BillingAccount updateBillingAccount(String name, BillingAccount account) {

UpdateBillingAccountRequest request =
UpdateBillingAccountRequest.newBuilder().setName(name).setAccount(account).build();
return updateBillingAccount(request);
Expand Down Expand Up @@ -501,7 +496,6 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BillingAccount createBillingAccount(BillingAccount billingAccount) {

CreateBillingAccountRequest request =
CreateBillingAccountRequest.newBuilder().setBillingAccount(billingAccount).build();
return createBillingAccount(request);
Expand Down Expand Up @@ -728,7 +722,6 @@ public final ListProjectBillingInfoPagedResponse listProjectBillingInfo(
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final ProjectBillingInfo getProjectBillingInfo(String name) {

GetProjectBillingInfoRequest request =
GetProjectBillingInfoRequest.newBuilder().setName(name).build();
return getProjectBillingInfo(request);
Expand Down Expand Up @@ -830,7 +823,6 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque
*/
public final ProjectBillingInfo updateProjectBillingInfo(
String name, ProjectBillingInfo projectBillingInfo) {

UpdateProjectBillingInfoRequest request =
UpdateProjectBillingInfoRequest.newBuilder()
.setName(name)
Expand Down Expand Up @@ -954,7 +946,6 @@ public final ProjectBillingInfo updateProjectBillingInfo(
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(ResourceName resource) {

GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
Expand Down Expand Up @@ -982,7 +973,6 @@ public final Policy getIamPolicy(ResourceName resource) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy getIamPolicy(String resource) {

GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build();
return getIamPolicy(request);
}
Expand Down Expand Up @@ -1061,7 +1051,6 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy setIamPolicy(ResourceName resource, Policy policy) {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
Expand Down Expand Up @@ -1095,7 +1084,6 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final Policy setIamPolicy(String resource, Policy policy) {

SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build();
return setIamPolicy(request);
Expand Down Expand Up @@ -1181,7 +1169,6 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
*/
public final TestIamPermissionsResponse testIamPermissions(
ResourceName resource, List<String> permissions) {

TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(resource == null ? null : resource.toString())
Expand Down Expand Up @@ -1215,7 +1202,6 @@ public final TestIamPermissionsResponse testIamPermissions(
*/
public final TestIamPermissionsResponse testIamPermissions(
String resource, List<String> permissions) {

TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(resource)
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -174,7 +174,6 @@ public CloudCatalogStub getStub() {
*/
public final ListServicesPagedResponse listServices() {
ListServicesRequest request = ListServicesRequest.newBuilder().build();

return listServices(request);
}

Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -174,7 +174,6 @@ public void listBillingAccountsExceptionTest() throws Exception {
mockCloudBilling.addException(exception);

try {

client.listBillingAccounts();
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -117,7 +117,6 @@ public void listServicesExceptionTest() throws Exception {
mockCloudCatalog.addException(exception);

try {

client.listServices();
Assert.fail("No exception raised");
} catch (InvalidArgumentException e) {
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright 2019 Google LLC
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit f1c8e41

Please sign in to comment.