Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import time

import pytest
from test_utils import retry

Expand Down Expand Up @@ -77,7 +79,10 @@ def test_create_instance(
instance_operation_timeout,
):
alt_instance_id = _helpers.unique_id("new")
instance = spanner_client.instance(alt_instance_id, instance_config.name)
labels = {"python-spanner-systests": "true", "created": str(int(time.time()))}
instance = spanner_client.instance(
alt_instance_id, instance_config.name, labels=labels
)
operation = instance.create()
# Make sure this instance gets deleted after the test case.
instances_to_delete.append(instance)
Expand All @@ -102,10 +107,12 @@ def test_create_instance_with_processing_units(
):
alt_instance_id = _helpers.unique_id("wpn")
processing_units = 5000
labels = {"python-spanner-systests": "true", "created": str(int(time.time()))}
instance = spanner_client.instance(
instance_id=alt_instance_id,
configuration_name=instance_config.name,
processing_units=processing_units,
labels=labels,
)
operation = instance.create()
# Make sure this instance gets deleted after the test case.
Expand Down
Loading