GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Bigtable: Adding Integration Test of BigtableInstanceAdminClient by rahulKQL · Pull Request #6186 · googleapis/google-cloud-java

Conversation

@rahulKQL

@rahulKQL rahulKQL commented Aug 28, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR contains Integration tests for BigtableInstanceAdminClient.

  • As this client is not supported on emulator So it would be ignored.
  • Also, it will not create any bigtable resource(instance, cluster: considering these resources are expensive) unless createBigtableResource property is set along with other TestEnvRule properties.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rahulKQL
rahulKQL requested a review from igorbernstein2 August 28, 2019 17:07
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 28, 2019
@igorbernstein2 igorbernstein2 added the api: bigtable Issues related to the Bigtable API. label Aug 28, 2019
rahulKQL
rahulKQL commented Aug 28, 2019
View reviewed changes
Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

igorbernstein2
igorbernstein2 reviewed Aug 28, 2019
View reviewed changes
Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Aug 29, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Codecov Report

Merging #6186 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #6186   +/-   ##
=========================================
  Coverage     47.51%   47.51%           
- Complexity    27460    27475   +15     
=========================================
  Files          2526     2526           
  Lines        274681   274681           
  Branches      31402    31397    -5     
=========================================
  Hits         130521   130521           
  Misses       134528   134528           
  Partials       9632     9632

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cede9f...4e4a1ea. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rahulKQL rahulKQL mentioned this pull request Aug 29, 2019
Bigtable: Added deleteForcedAppProfile InstanceAdmin operation #6193
Merged
igorbernstein2
igorbernstein2 reviewed Aug 29, 2019
View reviewed changes
Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Outdated
.addCluster(newClusterId, "us-central1-a", 1, StorageType.SSD)
.setDisplayName("Fresh-Instance-Name")
.addLabel("state", "readytodelete")
.setType(Instance.Type.PRODUCTION));

@igorbernstein2 igorbernstein2 Aug 29, 2019

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use a development instance. Also, prod instances require at least 3 nodes, while your cluster only has 1

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@igorbernstein2 igorbernstein2 Aug 29, 2019

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, you should move this out of the try

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@rahulKQL rahulKQL Aug 30, 2019 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My apologies for the number of nodes. I have switched to Development cluster:

 client.createInstance(
        CreateInstanceRequest.of(newInstanceId)
            .addCluster(newClusterId, "us-central1-a", 0, StorageType.SSD)
            .setDisplayName("Fresh-Instance-Name")
            .addLabel("state", "readytodelete")
            .setType(Instance.Type.DEVELOPMENT));

Q: This was confusing to me, whenever I used 1 for the server nodes it threw an IllegalArgumentException stating server nodes cannot be provided.

com.google.api.gax.rpc.InvalidArgumentException: io.grpc.StatusRuntimeException: INVALID_ARGUMENT: Error in field 'clusters' : Serve nodes cannot be specified for development instances.

This worked fine when the server node is 0(It creates an instance with a cluster combining of 0 nodes). Should we change this behavior or should we update the docs?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread ...table/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableInstanceAdminClientIT.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rahulKQL
Adding Integration Test of BigtableInstanceAdminClient
46c64c0
- Test case for AppProfile, IAMPolicy, Instance, Clusters.
- BigtableInstanceAdminClient in AbstractTestEnv.
- Added cleanups for stale appProfile/instance/cluster.
- Setup a cleanUpInstance() in case of prod or direct_path env type.
@rahulKQL
rahulKQL force-pushed the instanceAdmintest branch from 5866706 to 46c64c0 Compare August 30, 2019 09:47
@rahulKQL
rahulKQL marked this pull request as ready for review August 30, 2019 09:56
igorbernstein2
igorbernstein2 reviewed Aug 30, 2019
View reviewed changes
Comment thread ...gle-cloud-bigtable/src/test/java/com/google/cloud/bigtable/test_helpers/env/TestEnvRule.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rahulKQL
Shifted instanse admin check into isInstanceAdminSupported()
4e4a1ea
igorbernstein2
igorbernstein2 approved these changes Aug 30, 2019
View reviewed changes

@igorbernstein2 igorbernstein2 left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@igorbernstein2 igorbernstein2 added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Aug 30, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 30, 2019
@igorbernstein2
igorbernstein2 merged commit 1cd99a8 into googleapis:master Aug 30, 2019
@chingor13 chingor13 mentioned this pull request Sep 5, 2019
Release google-cloud-java v0.108.0 #6223
Merged
benjaminp pushed a commit to benjaminp/google-cloud-java that referenced this pull request Jul 13, 2026
@rahulKQL @igorbernstein2
Bigtable: Adding Integration Test of BigtableInstanceAdminClient (goo…
122b705
…gleapis#6186)

* Adding Integration Test of BigtableInstanceAdminClient

- Test case for AppProfile, IAMPolicy, Instance, Clusters.
- BigtableInstanceAdminClient in AbstractTestEnv.
- Added cleanups for stale appProfile/instance/cluster.
- Setup a cleanUpInstance() in case of prod or direct_path env type.

* Shifted instanse admin check into isInstanceAdminSupported()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@igorbernstein2 igorbernstein2 igorbernstein2 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: bigtable Issues related to the Bigtable API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@rahulKQL @igorbernstein2 @googlebot @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.