Skip to content

Conversation

@aneepct
Copy link
Contributor

@aneepct aneepct commented May 7, 2018

Modify system test for new GAPIC code

Luke Sneeringer and others added 30 commits January 4, 2018 10:29
@aneepct
Copy link
Contributor Author

aneepct commented May 7, 2018

@jonparrott @crwilcox I am getting error on create_cluster on system tests.

grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.INVALID_ARGUMENT, Error in field 'clusters' : Need to have at least one cluster map element in CreateInstanceRequest.)>

@crwilcox crwilcox mentioned this pull request May 7, 2018
)
clusters = []
clusters.append(instance_pb2.Cluster(name=cluster_path,
location=location_path))

This comment was marked as spam.

This comment was marked as spam.

from test_utils.system import unique_resource_id


PROJECT_ID = 'grass-clump-479'

This comment was marked as spam.

This comment was marked as spam.

Config.CLIENT = Client(admin=True, credentials=credentials)
else:
Config.CLIENT = Client(admin=True)
Config.CLIENT = Client(project=PROJECT_ID, admin=True)

This comment was marked as spam.

This comment was marked as spam.

# raise ValueError('List instances failed in module set up.')

EXISTING_INSTANCES[:] = instances
EXISTING_INSTANCES[:] = instances_response.instances

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver added the api: bigtable Issues related to the Bigtable API. label May 8, 2018
@tseaver
Copy link
Contributor

tseaver commented May 8, 2018

@aneepct Also, can you please rebase against the current master to dump all the redundant commits?

@zakons
Copy link
Contributor

zakons commented May 10, 2018

@jonparrott @tseaver Hoping this closes the loop on a rather large series of merges on master to support GAPIC. Together with #5275, #5315 and #5283 - which add support for app profile, truncate table and initial splits on top of the GAPIC interface - this should complete the series of changes for the python beta. All have been updated to resolve the review issues found. Please let us know if any issues remain so we can turn these around quickly. Thanks again for the excellent reviews.

"""
return bigtable_v2.BigtableClient(channel=self._channel,
credentials=self._credentials)
return bigtable_v2.BigtableClient(channel=self._channel)

This comment was marked as spam.

raise ValueError('Client is not an admin client.')
return bigtable_admin_v2.BigtableTableAdminClient(
channel=self._channel, credentials=self._credentials)
channel=self._channel)

This comment was marked as spam.

raise ValueError('Client is not an admin client.')
return bigtable_admin_v2.BigtableInstanceAdminClient(
channel=self._channel, credentials=self._credentials)
channel=self._channel)

This comment was marked as spam.


number_of_bytes = 10 * 1024 * 1024
number_of_bytes = 10 * 1024
data = b'1' * number_of_bytes # 10MB of 1's.

This comment was marked as spam.

location = self._client._instance_admin_client.location_path(
self._client.project, self._cluster_location_id)
cluster = instance_pb2.Cluster(name=cluster_name, location=location,
serve_nodes=DEFAULT_SERVE_NODES)

This comment was marked as spam.

client = self._make_one(
project=project, credentials=credentials, admin=True)
project=project, channel=channel, credentials=credentials,
admin=True)

This comment was marked as spam.

channel = _make_channel()
client = self._make_one(project=self.PROJECT, channel=channel)
credentials = _make_credentials()
client = self._make_one(project=self.PROJECT, credentials=credentials)

This comment was marked as spam.

This comment was marked as spam.

google.auth.credentials.Scoped):
pass

return mock.Mock(spec=_CredentialsWithScopes)

This comment was marked as spam.

@aneepct
Copy link
Contributor Author

aneepct commented May 15, 2018

@tseaver Please review the recent changes

@tseaver tseaver merged commit 1b4cf40 into googleapis:master May 16, 2018
@aneepct
Copy link
Contributor Author

aneepct commented May 17, 2018

@tseaver Thank you for all your help.

@crwilcox
Copy link
Contributor

@aneepct the tests are failing after this merge. nox -s "system(py='3.6')" run from the bigtable directory will show the failures.

Here is a circle build failing if you want to see what the errors are. https://circleci.com/gh/GoogleCloudPlatform/google-cloud-python/6646

@aneepct
Copy link
Contributor Author

aneepct commented May 25, 2018

@crwilcox The system test already fixed on different PR #5315

parthea pushed a commit that referenced this pull request Nov 22, 2025
* Provide new auto-generated layer for Bigtable.

* Change bigtable_pb2 imports to use from gapic library.

* Add retry for read rows

* Add parameter start_inclusive to _create_row_request

* Add retry for Deadline Exceeded on read rows

* Refactor yield_rows retry

* Add grpc google iam v1 on setup.py on bigtable

* Change routing_header to use to_grpc_metadata
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants