Skip to content

Commit

Permalink
Fix tests for real
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-snow committed Jun 4, 2024
1 parent eb9b88c commit 92bff60
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 6 additions & 2 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ If you're contributing changes or code to the provider, the integration tests cr
To run the tests, first get an API key with a Member role for the public environment and run:

```
export TF_ACC_PROVIDER_NAMESPACE="hashicorp"
export TF_ACC_PROVIDER_HOST="registry.opentofu.org"
export TF_ACC_TERRAFORM_PATH="$(which terraform)"
LIGHTSTEP_API_KEY_PUBLIC=(your api key here) make acc-test
```

Expand All @@ -32,8 +35,9 @@ provider_installation {
## Updating docs

Documentation files in `docs` are generated by combining:
* the contents of the `.md.tmpl` template files found in the `template` directory
* field-level documentation configured inline via `Description` attributes in `lightstep/*.go`.

- the contents of the `.md.tmpl` template files found in the `template` directory
- field-level documentation configured inline via `Description` attributes in `lightstep/*.go`.

Any edits to documentation files should be made in the `templates` directory or the .go files. Then you can use the following steps to generate the files in the docs directory:

Expand Down
12 changes: 9 additions & 3 deletions lightstep/resource_dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -956,21 +956,27 @@ chart {
query {
query_name = "error_ratio"
display = "trichart"
display_type_options = { display_type = trichart }
display_type_options {
display_type = "trichart"
}
hidden = false
query_string = "with\n errors = spans count\n | delta\n | filter service == \"web\" && error == true\n | group_by [], sum;\n total = spans count\n | delta\n | filter service == \"web\"\n | group_by [], sum;\n join errors / total, errors=0, total=0"
}
query {
query_name = "latency"
display = "trichart"
display_type_options = { display_type = trichart }
display_type_options {
display_type = "trichart"
}
hidden = false
query_string = "spans latency | delta | filter service == \"web\" | group_by [], sum | point percentile(value, 99.0)"
}
query {
query_name = "rate"
display = "trichart"
display_type_options = { display_type = trichart }
display_type_options {
display_type = "trichart"
}
hidden = false
query_string = "spans count | rate | filter service == \"web\" | group_by [], sum"
}
Expand Down

0 comments on commit 92bff60

Please sign in to comment.