Skip to content

Commit 467a260

Browse files
committed
Add a test for write token
1 parent 5629c88 commit 467a260

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/testing/main.tf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,22 @@ resource "cloudflare_r2_bucket" "test2" {
4242
name = random_string.bucket2_name.result
4343
}
4444

45-
module "r2-api-token" {
45+
module "r2-api-token-read" {
4646
source = "../.."
4747
account_id = var.account_id
4848
buckets = [cloudflare_r2_bucket.test1.name, cloudflare_r2_bucket.test2.name]
4949
bucket_write = false
5050
expires_on = timeadd(timestamp(), "10m")
5151
}
5252

53+
module "r2-api-token-write" {
54+
source = "../.."
55+
account_id = var.account_id
56+
buckets = [cloudflare_r2_bucket.test2.name]
57+
bucket_write = true
58+
expires_on = timeadd(timestamp(), "10m")
59+
}
60+
5361
module "r2-api-token_custom_name" {
5462
source = "../.."
5563
account_id = var.account_id

0 commit comments

Comments
 (0)