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 — Add system test for 'Client.list_metrics'. by tseaver · Pull Request #1611 · googleapis/google-cloud-python

Conversation

@tseaver

@tseaver tseaver commented Mar 15, 2016

Copy link
Copy Markdown
Contributor

Uses #1610 as a base.

Note the changes to gcloud.logging: the system test revealed that the API returns "simple" names for the LogMetric resource (as documented, but which I misread as returning fully-qualified paths).

Sorry, something went wrong.

Uh oh!

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

All reactions
@tseaver tseaver added the api: logging Issues related to the Cloud Logging API. label Mar 15, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 15, 2016
This was referenced Mar 15, 2016
Add system test for 'Metric.reload'. #1612
Merged
Fix verb / target for 'Metric.create' / 'Sink.create'. #1616
Merged
@tseaver
Add system test for 'Client.list_metrics'.
61004b7
Adjust 'Metric.from_api_repr' and associated tests to accomodate the
fact that the 'LogMetric' resource does not contain a fully-qualified
path, but only the simple name.
@tseaver tseaver assigned dhermes Mar 18, 2016
@tseaver

tseaver commented Mar 18, 2016

Copy link
Copy Markdown
Contributor Author

@dhermes Rebased after merging #1610 to the logging-api branch. PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Mar 18, 2016
View reviewed changes
Comment thread gcloud/logging/metric.py
from the client.
"""
metric_name = _metric_name_from_path(resource['name'], client.project)
metric_name = resource['name']

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Mar 18, 2016

Copy link
Copy Markdown
Contributor

Side question: Can we turn these on to run in Travis?

All reactions

Sorry, something went wrong.

Uh oh!

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

dhermes
dhermes reviewed Mar 18, 2016
View reviewed changes
Comment thread system_tests/logging_.py
DEFAULT_METRIC_NAME, DEFAULT_FILTER, DEFAULT_DESCRIPTION)
self.assertFalse(metric.exists())
before_metrics, _ = Config.CLIENT.list_metrics()
before_names = set(metric.name for metric in before_metrics)

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

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

@tseaver

tseaver commented Mar 18, 2016

Copy link
Copy Markdown
Contributor Author

Side question: Can we turn these on to run in Travis?

The Sink tests (only #1628, at present) are the ones which will need the Owner role for the project. The others should work fine.

All reactions

Sorry, something went wrong.

Uh oh!

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

@dhermes

dhermes commented Mar 18, 2016

Copy link
Copy Markdown
Contributor

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver added a commit that referenced this pull request Mar 18, 2016
@tseaver
Merge pull request #1611 from tseaver/logging-system_test-client_list…
4d21791
…_metrics

Add system test for 'Client.list_metrics'.
@tseaver
tseaver merged commit 4d21791 into googleapis:logging-api Mar 18, 2016
@tseaver
tseaver deleted the logging-system_test-client_list_metrics branch March 18, 2016 17:32
@dhermes dhermes mentioned this pull request Apr 1, 2016
Upgrading version to 0.12.0 #1689
Merged
@theacodes theacodes unassigned dhermes Sep 28, 2018
parthea pushed a commit that referenced this pull request Nov 26, 2025
@sai-sunder-s
fix: update secret (#1611)
60925e1
parthea pushed a commit that referenced this pull request Mar 6, 2026
@gcf-owl-bot
build(deps): [autoapprove] bump cryptography from 41.0.0 to 41.0.2 (#…
5f67fe0
…1611)

Source-Link: googleapis/synthtool@d6103f4
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:39f0f3f2be02ef036e297e376fe3b6256775576da8a6ccb1d5eeb80f4c8bf8fb

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this pull request Mar 9, 2026
@mrfaizal
fix: Skip flaky test (#1622)
653caec
This test is causing failures in CI. Skipping until it can be fixed
properly.

Thank you for opening a Pull Request! Before submitting your PR, there
are a few things you can do to make sure it goes smoothly:
- [x] Make sure to open an issue as a
[bug/issue](https://github.com/googleapis/python-storage/issues/new/choose)
before writing your code! That way we can discuss the change, evaluate
designs, and agree on the general idea
- [x] Ensure the tests and linter pass
- [x] Code coverage does not decrease (if any source code was changed)
- [x] Appropriate docs were updated (if necessary)

Fixes #1611 🦕
parthea pushed a commit that referenced this pull request Apr 1, 2026
@tswast
fix: use dictionaries to avoid problematic google.iam namespace (#1611)
a9f0e75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

api: logging Issues related to the Cloud Logging 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.

3 participants

@tseaver @dhermes @googlebot
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.