Skip to content

Commit 3e41d48

Browse files
cortlyonstamas-jozsa
authored andcommitted
WIP: Empty value -> Default transformations (Integration tests failing)
1 parent 5db210b commit 3e41d48

File tree

4 files changed

+474
-29
lines changed

4 files changed

+474
-29
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
variable "cloudflare_account_id" {
2+
description = "Cloudflare account ID"
3+
type = string
4+
}
5+
6+
variable "cloudflare_zone_id" {
7+
description = "Cloudflare zone ID"
8+
type = string
9+
}
10+
11+
variable "cloudflare_domain" {
12+
description = "Cloudflare Domain"
13+
type = string
14+
}
15+
16+
# Minimal E2E test - basic self-hosted app
17+
resource "cloudflare_zero_trust_access_application" "e2e_minimal" {
18+
account_id = var.cloudflare_account_id
19+
name = "E2E Minimal App"
20+
domain = var.cloudflare_domain
21+
type = "self_hosted"
22+
}
23+
24+
# E2E test - SAML SAAS app (no domain required)
25+
resource "cloudflare_zero_trust_access_application" "e2e_saas_saml" {
26+
account_id = var.cloudflare_account_id
27+
name = "E2E SAML SAAS"
28+
type = "saas"
29+
30+
saas_app = {
31+
consumer_service_url = "https://${var.cloudflare_domain}/sso/saml"
32+
sp_entity_id = "e2e-saml-app"
33+
name_id_format = "email"
34+
custom_attributes = [
35+
{
36+
name = "email"
37+
source = {
38+
name = "user_email"
39+
}
40+
}
41+
]
42+
}
43+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
variable "cloudflare_account_id" {
2+
description = "Cloudflare account ID"
3+
type = string
4+
}
5+
6+
variable "cloudflare_zone_id" {
7+
description = "Cloudflare zone ID"
8+
type = string
9+
}
10+
11+
variable "cloudflare_domain" {
12+
description = "Cloudflare Domain"
13+
type = string
14+
}
15+
16+
# Minimal E2E test - basic self-hosted app
17+
resource "cloudflare_zero_trust_access_application" "e2e_minimal" {
18+
account_id = var.cloudflare_account_id
19+
name = "E2E Minimal App"
20+
domain = var.cloudflare_domain
21+
type = "self_hosted"
22+
}
23+
24+
# E2E test - SAML SAAS app (no domain required)
25+
resource "cloudflare_zero_trust_access_application" "e2e_saas_saml" {
26+
account_id = var.cloudflare_account_id
27+
name = "E2E SAML SAAS"
28+
type = "saas"
29+
30+
saas_app {
31+
consumer_service_url = "https://${var.cloudflare_domain}/sso/saml"
32+
sp_entity_id = "e2e-saml-app"
33+
name_id_format = "email"
34+
35+
custom_attribute {
36+
name = "email"
37+
source {
38+
name = "user_email"
39+
}
40+
}
41+
}
42+
}

0 commit comments

Comments
 (0)