File tree Expand file tree Collapse file tree 4 files changed +474
-29
lines changed
integration/v4_to_v5/testdata/zero_trust_access_application
internal/resources/zero_trust_access_application Expand file tree Collapse file tree 4 files changed +474
-29
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments