Skip to content

Commit 72a7758

Browse files
authored
Fix k6 project limits datasource tests (#2417)
1 parent b9088f1 commit 72a7758

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/data-sources/k6_project_limits.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ resource "grafana_k6_project" "test_project_limits" {
1717
name = "Terraform Project Test Limits"
1818
}
1919
20+
resource "grafana_k6_project_limits" "test_limits" {
21+
project_id = grafana_k6_project.test_project_limits.id
22+
vuh_max_per_month = 10000
23+
vu_max_per_test = 10000
24+
vu_browser_max_per_test = 1000
25+
duration_max_per_test = 3600
26+
}
27+
2028
data "grafana_k6_project_limits" "from_project_id" {
2129
project_id = grafana_k6_project.test_project_limits.id
2230
}

examples/data-sources/grafana_k6_project_limits/data-source.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ resource "grafana_k6_project" "test_project_limits" {
22
name = "Terraform Project Test Limits"
33
}
44

5+
resource "grafana_k6_project_limits" "test_limits" {
6+
project_id = grafana_k6_project.test_project_limits.id
7+
vuh_max_per_month = 10000
8+
vu_max_per_test = 10000
9+
vu_browser_max_per_test = 1000
10+
duration_max_per_test = 3600
11+
}
12+
513
data "grafana_k6_project_limits" "from_project_id" {
614
project_id = grafana_k6_project.test_project_limits.id
715
}

0 commit comments

Comments
 (0)