https://github.com/skorfmann/wing-test-providers
https://github.com/skorfmann/wing-test-providers
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/skorfmann/wing-test-providers
- Owner: skorfmann
- Created: 2023-11-20T15:25:35.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-20T15:25:45.000Z (almost 2 years ago)
- Last Synced: 2025-05-30T11:51:59.451Z (6 months ago)
- Language: CWeb
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# wing duplicated providers in test
works with one test, adding more tests will lead to duplicated providers.
```
wing --version
0.48.8
```
```
npm install
```
## main.w
```
wing test -t tf-aws main.w
```
result
```
│ Error: Duplicate provider configuration
│
│ on main.tf.json line 28, in provider:
│ 28: "docker": [
│
│ A default (non-aliased) provider configuration for "docker" was already
│ given at main.tf.json:28,15-16. If multiple configurations are required,
│ set the "alias" argument for alternative configurations.
╵
╷
│ Error: Duplicate provider configuration
│
│ on main.tf.json line 34, in provider:
│ 34: "null": [
│
│ A default (non-aliased) provider configuration for "null" was already given
│ at main.tf.json:34,13-14. If multiple configurations are required, set the
│ "alias" argument for alternative configurations.
╵
╷
│ Error: Duplicate provider configuration
│
│ on main.tf.json line 40, in provider:
│ 40: "random": [
│
│ A default (non-aliased) provider configuration for "random" was already
│ given at main.tf.json:40,15-16. If multiple configurations are required,
│ set the "alias" argument for alternative configurations.
╵
```
## once.main.w
```
wing test -t tf-aws once.main.w
```
```
╷
│ Error: Duplicate provider configuration
│
│ on main.tf.json line 28, in provider:
│ 28: "docker": [
│
│ A default (non-aliased) provider configuration for "docker" was already
│ given at main.tf.json:28,15-16. If multiple configurations are required,
│ set the "alias" argument for alternative configurations.
╵
╷
│ Error: Duplicate provider configuration
│
│ on main.tf.json line 34, in provider:
│ 34: "null": [
│
│ A default (non-aliased) provider configuration for "null" was already given
│ at main.tf.json:34,13-14. If multiple configurations are required, set the
│ "alias" argument for alternative configurations.
╵
╷
│ Error: Duplicate provider configuration
│
│ on main.tf.json line 40, in provider:
│ 40: "random": [
│
│ A default (non-aliased) provider configuration for "random" was already
│ given at main.tf.json:40,15-16. If multiple configurations are required,
│ set the "alias" argument for alternative configurations.
```
## singleton.main.w
```
wing test -t tf-aws singleton.main.w
```
```
⠋ Compiling singleton.main.w to tf-aws...
root
exists undefined
rootAsResource
root
exists provider-instances
✖ Compiling singleton.main.w to tf-aws...
runtime error: Validation failed with the following errors:
[root] Found resources without a matching provider construct. Please make sure to add provider constructs [e.g. new RandomProvider(...)] to your stack 'root' for the following providers: random, docker, null
```