googleapis / googleapis/google-cloud-python

add universe-domain tests

Đang mở
#16,330 1 bình luận 0 reaction 2 người được giao Được @ohmayr nhận Xem trên GitHub
priority: p1 type: cleanup
Ngôn ngữ chính
Python
Star
5.4k
Fork
1.8k
Merge trung bình
3 ngày 4 giờ
Pull request đã merge (30 ngày)
122

Mô tả

In googleapis/gapic-generator-python#1898 I made a few suggestions for improving test coverage of the user-configured universe domain feature. In order to not delay that PR further, I am strongly leaning towards merging that as soon as the presubmits with the latest changes pass, and implementing the testing suggestions in a follow-up PR. The suggestions are:

- [ ] `TODO`s listed in `/tests/system/{conftest,test_universe_domain}.py` in googleapis/gapic-generator-python#1898
- [ ] [adding additional fixtures for configured universe possibilities](https://github.com/googleapis/gapic-generator-python/pull/1898#discussion_r1459978342)
- [ ] [adding a testcase where we provide both `cert_source` and `"never"](https://github.com/googleapis/gapic-generator-python/pull/1898#discussion_r1460004264)
- [ ] [adding a testcase where `env` is empty](https://github.com/googleapis/gapic-generator-python/pull/1898#discussion_r1460008043)
- [ ] [testing combinations of client certificate, mTLS endpoint, api_endpoint](https://github.com/googleapis/gapic-generator-python/pull/1898#discussion_r1460028365)
- [ ] [factoring out tests that don't have universe domain](https://github.com/googleapis/gapic-generator-python/pull/1898#discussion_r1460033163)

To be clear: we should make the tests as small as they can be (e.g. preferring unit tests to integration tests), and we should check whether the suggestions above have been already covered in other tests elsewhere in the codebase than where I made the comments above (I suspect in some cases that may be the case).

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.