8000 Integration tests break mvn verify (without additional, undocumented setup) · Issue #28 · googleapis/java-bigquery · GitHub
[go: up one dir, main page]

Skip to content

Integration tests break mvn verify (without additional, undocumented setup) #28

@elharo

Description

@elharo

With the inclusion of the samples into the repo, a simple clone and mvn verify no longer works. Undoubtedly there's some extra setup required. Ideally there shouldn;t be, but if this is mandatory then the needed steps need to be clearly documented in the relevant files in the repo.

[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.002 s <<< FAILURE! - in com.google.cloud.bigquery.it.ITBigQueryTest
[ERROR] com.google.cloud.bigquery.it.ITBigQueryTest  Time elapsed: 1.001 s  <<< ERROR!
com.google.cloud.storage.StorageException: 401 Unauthorized
	at com.google.cloud.bigquery.it.ITBigQueryTest.beforeClass(ITBigQueryTest.java:290)
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 401 Unauthorized
	at com.google.cloud.bigquery.it.ITBigQueryTest.beforeClass(ITBigQueryTest.java:290)

[ERROR] com.google.cloud.bigquery.it.ITBigQueryTest  Time elapsed: 1.002 s  <<< ERROR!
com.google.cloud.bigquery.BigQueryException: Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
	at com.google.cloud.bigquery.it.ITBigQueryTest.afterClass(ITBigQueryTest.java:323)
Caused by: com.google.api.client.googleapis.json.GoogleJsonResponseException: 
401 Unauthorized
{
  "code" : 401,
  "errors" : [ {
    "domain" : "global",
    "location" : "Authorization",
    "locationType" : "header",
    "message" : "Login Required.",
    "reason" : "required"
  } ],
  "message" : "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
  "status" : "UNAUTHENTICATED"
}
	at com.google.cloud.bigquery.it.ITBigQueryTest.afterClass(ITBigQueryTest.java:323)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Errors: 
[ERROR] com.google.cloud.bigquery.it.ITBigQueryTest.com.google.cloud.bigquery.it.ITBigQueryTest
[ERROR]   Run 1: ITBigQueryTest.beforeClass:290 » Storage 401 Unauthorized
[ERROR]   Run 2: ITBigQueryTest.afterClass:323 » BigQuery Request is missing required authentic...
[INFO] 
[INFO] 
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
[INFO] 

Metadata

Metadata

Labels

api: bigqueryIssues related to the googleapis/java-bigquery API.semver: patchA minor bug fix or small change.type: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0