| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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.
Sorry, something went wrong.
| from the client. | ||
| """ | ||
| metric_name = _metric_name_from_path(resource['name'], client.project) | ||
| metric_name = resource['name'] |
|
Side question: Can we turn these on to run in Travis? |
Sorry, something went wrong.
| 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) |
The Sink tests (only #1628, at present) are the ones which will need the Owner role for the project. The others should work fine. |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
…_metrics Add system test for 'Client.list_metrics'.
…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>
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 🦕
| Back | FazBrowse Home | New Git URL |
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).