googleapis / googleapis/google-cloud-rust

End to end tests for resource ID with App Hub

Open
#5,065 1 comment 0 reactions 0 assignees View on GitHub
priority: p3 type: feature request
Dominant language
Rust
Stars
955
Forks
144
Avg merge
1d 5h
Merged PRs (30d)
279

Description

We have successfully validated e2e trace propagation for `storage`, `compute`, and `secretmanager`, confirming that the labels generated are correctly enriched with `apphub` attributes.
However, the current approach for integrations tests attempts to **dynamically provision** the App Hub environment (create application -> link service -> wait for service discovery) on every run, which is flaky and crosses over testing App Hub.

Instead, we want to establish a static App Hub resource in a dedicated testing project and should persist across all test runs with a simplified flow:
* perform a client library operation with specific resource names
* wait for a reasonable propagation delay
* verify that the resulting span is correctly enriched with the expected `apphub` attributes

We will use Terraform to manage this one-time setup of the static App Hub environment. This ensures the environment is documented and reproducible if the project is ever deleted.
Reference: [google_apphub_service | Terraform Registry](https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/apphub_service)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.