Improve test configuration for Apache/Thrift/Hive-based drivers to allow multiple environments
- Dominant language
- C#
- Stars
- 627
- Forks
- 217
- Avg merge
- 17h
- Merged PRs (30d)
- 57
Description
### What feature or improvement would you like to see?
This feature adopts the mechanism used by the BigQuery driver to allow definition of multiple test environments but for the Apache/Thrift/Hive-based drivers.
See: `csharp/test/Drivers/BigQuery/Resources/bigqueryconfig.json`.
This will reduce the effort in defining/maintaining/executing tests across multiple data source variants.
```
{
"testEnvironments": [ "", "" ],
"shared": {
"clientId": "clientId_example",
"clientSecret": "clientSecret_example"
}
"environments": {
"": {
"projectId": "",
"clientId": "$ref:shared.clientId",
"clientSecret": "$ref:shared.clientSecret",
"refreshToken": "",
"maxStreamCount": 1,
"metadata": {
"catalog": "",
"schema": "",
"table": "",
"expectedColumnCount": 0
},
"query": "",
"expectedResults": 0
}
}
}
```
Contributor guide
Research direction
Start with csharp/test/Drivers/BigQuery/Resources/bigqueryconfig.json and trace how its test environments are loaded and used. Compare that flow with the Apache/Thrift/Hive-based driver test configurations. Done means those drivers can define, select, and execute tests across multiple data source environments using shared configuration values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- databases, testing-qa
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100