diff --git a/internal/provider/datasource_directory_users_test.go b/internal/provider/datasource_directory_users_test.go index bb97f62e..556aa4e1 100644 --- a/internal/provider/datasource_directory_users_test.go +++ b/internal/provider/datasource_directory_users_test.go @@ -49,26 +49,21 @@ func TestDataSourceDirectoryUsers(t *testing.T) { }, }) }) - // FIXME ends in unmarshal error - /* - t.Run("error path - non existing idp", func(t *testing.T) { - rec := setupVCR(t, "fixtures/datasource_directory_users.non_existing_idp") - defer stopQuietly(rec) + t.Run("error path - non existing idp", func(t *testing.T) { + rec := setupVCR(t, "fixtures/datasource_directory_users.non_existing_idp") + defer stopQuietly(rec) - resource.Test(t, resource.TestCase{ - IsUnitTest: true, - ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()), - Steps: []resource.TestStep{ - { - Config: hclProvider() + hclDatasourceDirectoryUsersWithCustomIdp("uut", "05368777-4934-41e8-9f3c-6ec5f4d564b9", "this-doesnt-exist"), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.btp_directory_users.uut", "directory_id", "05368777-4934-41e8-9f3c-6ec5f4d564b9"), - resource.TestCheckResourceAttr("data.btp_directory_users.uut", "values.#", "2"), - ), - }, - }, - }) - })*/ + resource.Test(t, resource.TestCase{ + IsUnitTest: true, + ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()), + Steps: []resource.TestStep{ + { + Config: hclProvider() + hclDatasourceDirectoryUsersWithCustomIdp("uut", "05368777-4934-41e8-9f3c-6ec5f4d564b9", "this-doesnt-exist"), + ExpectError: regexp.MustCompile(`API Error Reading Resource Users \(Directory\)`), + }, + }, + }) + }) t.Run("error path - directory_id mandatory", func(t *testing.T) { resource.Test(t, resource.TestCase{ IsUnitTest: true, diff --git a/internal/provider/datasource_globalaccount_role_collection_test.go b/internal/provider/datasource_globalaccount_role_collection_test.go index aeebde25..a4a87de3 100644 --- a/internal/provider/datasource_globalaccount_role_collection_test.go +++ b/internal/provider/datasource_globalaccount_role_collection_test.go @@ -32,8 +32,8 @@ func TestDataSourceGlobalaccountRoleCollection(t *testing.T) { }, }) }) - // FIXME https://github.com/SAP/terraform-provider-btp/issues/160 - /*t.Run("happy path - role collection not available", func(t *testing.T) { + + t.Run("error path - role collection not available", func(t *testing.T) { rec := setupVCR(t, "fixtures/datasource_globalaccount_role_collection.role_collection_not_available") defer stopQuietly(rec) @@ -42,16 +42,13 @@ func TestDataSourceGlobalaccountRoleCollection(t *testing.T) { ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()), Steps: []resource.TestStep{ { - Config: hclProvider() + hclDatasourceGlobalaccountRoleCollection("uut", "fuh"), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.btp_globalaccount_role_collection.uut", "description", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_role_collection.uut", "read_only", "false"), - resource.TestCheckResourceAttr("data.btp_globalaccount_role_collection.uut", "roles.#", "0"), - ), + Config: hclProvider() + hclDatasourceGlobalaccountRoleCollection("uut", "fuh"), + ExpectError: regexp.MustCompile(`API Error Reading Resource Role Collection \(Global Account\)`), }, }, }) - })*/ + }) + t.Run("error path - name must not be empty", func(t *testing.T) { resource.Test(t, resource.TestCase{ IsUnitTest: true, diff --git a/internal/provider/datasource_globalaccount_trust_configuration_test.go b/internal/provider/datasource_globalaccount_trust_configuration_test.go index 7b43d299..85551255 100644 --- a/internal/provider/datasource_globalaccount_trust_configuration_test.go +++ b/internal/provider/datasource_globalaccount_trust_configuration_test.go @@ -61,8 +61,7 @@ func TestDataSourceGlobalaccountTrustConfiguration(t *testing.T) { }, }) }) - // FIXME https://github.com/SAP/terraform-provider-btp/issues/167 - /*t.Run("happy path - custom idp - not existing", func(t *testing.T) { + t.Run("error path - custom idp - not existing", func(t *testing.T) { rec := setupVCR(t, "fixtures/datasource_globalaccount_trust_configuration.custom_idp_not_existing") defer stopQuietly(rec) @@ -71,21 +70,12 @@ func TestDataSourceGlobalaccountTrustConfiguration(t *testing.T) { ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()), Steps: []resource.TestStep{ { - Config: hclProvider() + hclDatasourceGlobalaccountTrustConfiguration("uut", "fuh"), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "id", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "description", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "identity_provider", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "name", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "protocol", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "read_only", "false"), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "status", ""), - resource.TestCheckResourceAttr("data.btp_globalaccount_trust_configuration.uut", "type", ""), - ), + Config: hclProvider() + hclDatasourceGlobalaccountTrustConfiguration("uut", "fuh"), + ExpectError: regexp.MustCompile(`API Error Reading Resource Trust Configuration \(Global Account\)`), }, }, }) - })*/ + }) t.Run("error path - origin must not be empty", func(t *testing.T) { resource.Test(t, resource.TestCase{ IsUnitTest: true, diff --git a/internal/provider/datasource_subaccount_trust_configuration_test.go b/internal/provider/datasource_subaccount_trust_configuration_test.go index 4ed8697d..ea3dfc07 100644 --- a/internal/provider/datasource_subaccount_trust_configuration_test.go +++ b/internal/provider/datasource_subaccount_trust_configuration_test.go @@ -61,8 +61,7 @@ func TestDataSourceSubaccountTrustConfiguration(t *testing.T) { }, }) }) - // FIXME https://github.com/SAP/terraform-provider-btp/issues/167 - /*t.Run("happy path", func(t *testing.T) { + t.Run("error path - custom idp not existing", func(t *testing.T) { rec := setupVCR(t, "fixtures/datasource_subaccount_trust_configuration.custom_idp_not_existing") defer stopQuietly(rec) @@ -71,21 +70,12 @@ func TestDataSourceSubaccountTrustConfiguration(t *testing.T) { ProtoV6ProviderFactories: getProviders(rec.GetDefaultClient()), Steps: []resource.TestStep{ { - Config: hclProvider() + hclDatasourceSubaccountTrustConfiguration("uut", "ef23ace8-6ade-4d78-9c1f-8df729548bbf", "fuh"), - Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "id", ""), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "description", ""), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "identity_provider", ""), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "name", ""), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "protocol", ""), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "read_only", "false"), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "status", ""), - resource.TestCheckResourceAttr("data.btp_subaccount_trust_configuration.uut", "type", ""), - ), + Config: hclProvider() + hclDatasourceSubaccountTrustConfiguration("uut", "ef23ace8-6ade-4d78-9c1f-8df729548bbf", "fuh"), + ExpectError: regexp.MustCompile(`API Error Reading Resource Trust Configuration \(Subaccount\)`), }, }, }) - })*/ + }) t.Run("error path - origin must not be empty", func(t *testing.T) { resource.Test(t, resource.TestCase{ IsUnitTest: true, diff --git a/internal/provider/fixtures/datasource_directory_users.non_existing_idp.yaml b/internal/provider/fixtures/datasource_directory_users.non_existing_idp.yaml index 6f4cbda4..7380ca73 100644 --- a/internal/provider/fixtures/datasource_directory_users.non_existing_idp.yaml +++ b/internal/provider/fixtures/datasource_directory_users.non_existing_idp.yaml @@ -6,7 +6,7 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 115 + content_length: 118 transfer_encoding: [] trailer: {} host: cpcli.cf.sap.hana.ondemand.com @@ -19,9 +19,9 @@ interactions: Content-Type: - application/json User-Agent: - - Terraform/1.3.9 terraform-provider-btp/dev + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - 2d18dfc7-4fe3-7f3c-465f-9f3fcb2e34f2 + - 55499ef8-d702-331d-5070-96a6191987ac X-Cpcli-Format: - json url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 @@ -32,18 +32,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 143 + content_length: 149 uncompressed: false body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Content-Length: - - "143" + - "149" Content-Type: - application/json Date: - - Thu, 15 Jun 2023 10:08:19 GMT + - Wed, 12 Jul 2023 13:13:25 GMT Expires: - "0" Pragma: @@ -57,12 +57,12 @@ interactions: X-Frame-Options: - DENY X-Vcap-Request-Id: - - 14a9c909-5b96-47ec-6e0f-0a107f1473d8 + - 5b391618-243c-4b96-6a8f-f96b7c10c6f7 X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 966.583683ms + duration: 759.7271ms - id: 1 request: proto: HTTP/1.1 @@ -81,9 +81,9 @@ interactions: Content-Type: - application/json User-Agent: - - Terraform/1.3.9 terraform-provider-btp/dev + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - 743f177f-60bc-1c0e-721c-8b3b4549bab3 + - 921d6ebb-acf0-4774-5ac9-5c6a76b06ef9 X-Cpcli-Customidp: - "" X-Cpcli-Format: @@ -109,7 +109,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 15 Jun 2023 10:08:21 GMT + - Wed, 12 Jul 2023 13:13:26 GMT Expires: - "0" Pragma: @@ -131,9 +131,9 @@ interactions: X-Frame-Options: - DENY X-Vcap-Request-Id: - - a713b570-dd5e-421c-634d-1c554cd89ecd + - 0e706860-07c7-45a5-49b2-61ee135de91a X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 652.213329ms + duration: 444.1048ms diff --git a/internal/provider/fixtures/datasource_globalaccount_role_collection.role_collection_not_available.yaml b/internal/provider/fixtures/datasource_globalaccount_role_collection.role_collection_not_available.yaml index 4ab326c7..05a7f77b 100644 --- a/internal/provider/fixtures/datasource_globalaccount_role_collection.role_collection_not_available.yaml +++ b/internal/provider/fixtures/datasource_globalaccount_role_collection.role_collection_not_available.yaml @@ -6,7 +6,7 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 113 + content_length: 118 transfer_encoding: [] trailer: {} host: cpcli.cf.sap.hana.ondemand.com @@ -18,8 +18,10 @@ interactions: headers: Content-Type: - application/json + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - b488cb1e-aa7a-0ccd-58d3-a28dfa71cd44 + - d6df8181-0331-4956-233e-08599cdacdfc X-Cpcli-Format: - json url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 @@ -30,18 +32,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 139 + content_length: 149 uncompressed: false body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Content-Length: - - "139" + - "149" Content-Type: - application/json Date: - - Thu, 01 Jun 2023 15:06:05 GMT + - Wed, 12 Jul 2023 13:02:30 GMT Expires: - "0" Pragma: @@ -55,12 +57,12 @@ interactions: X-Frame-Options: - DENY X-Vcap-Request-Id: - - cac1f34f-3d28-4115-48fa-495cfadd177b + - 8ea539b6-24b1-4b99-7abb-91bf4d27414b X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 546.507424ms + duration: 721.9811ms - id: 1 request: proto: HTTP/1.1 @@ -78,8 +80,10 @@ interactions: headers: Content-Type: - application/json + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - cf7b3ae4-02c8-eb9b-23cb-bcb280b72700 + - 78caadfb-71a0-67be-5762-33b490061685 X-Cpcli-Customidp: - "" X-Cpcli-Format: @@ -105,7 +109,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 01 Jun 2023 15:06:05 GMT + - Wed, 12 Jul 2023 13:02:31 GMT Expires: - "0" Pragma: @@ -120,594 +124,16 @@ interactions: - application/json X-Cpcli-Backend-Status: - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 7cfabfb7-dc33-48b8-504f-65e96258b1c2 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 170.393425ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 70936472-676e-fa20-b4ed-5fbd8e29acc4 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:06 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - b8fd1d51-5ea8-49bd-7760-3eeed316b0b0 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 554.644909ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 82 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","roleCollectionName":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 216a09a6-ed85-c562-96f5-9d1df2c4de46 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/role-collection?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"error":"No entity found with values = [[03760ecf-9d89-4189-a92a-1c7efed09298, fuh, 03760ecf-9d89-4189-a92a-1c7efed09298]]"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:07 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Mediatype: - - application/json - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 6437ec54-9991-437a-5d94-7d818a94504c - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 215.337366ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - d5ac2eb8-2ef7-d494-35ee-a0fa6bf2c25c - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:08 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 8afdb4ca-1473-4db3-6e58-4892d17f589e - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 519.010067ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 82 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","roleCollectionName":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 566459a5-d2fe-f753-ab4a-c0ff99bf57db - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/role-collection?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"error":"No entity found with values = [[03760ecf-9d89-4189-a92a-1c7efed09298, fuh, 03760ecf-9d89-4189-a92a-1c7efed09298]]"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:09 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Mediatype: - - application/json - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 042e577a-b415-43c3-6060-3964e1bcb9a2 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 159.637487ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 893cd9cf-530c-9327-6e78-96268317ecd5 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:10 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 02b81e11-444b-4cce-4e73-d7f0c9e7a0be - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 431.254826ms - - id: 7 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 82 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","roleCollectionName":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 2dd75a21-5b61-208f-ddb3-ce7a43e181aa - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/role-collection?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"error":"No entity found with values = [[03760ecf-9d89-4189-a92a-1c7efed09298, fuh, 03760ecf-9d89-4189-a92a-1c7efed09298]]"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:10 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Mediatype: - - application/json - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 028f2ef4-09f4-4dfc-4efd-12fd076aa7ba - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 171.407962ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - bd548ce5-fc9f-1a4f-2449-316b040891ac - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:11 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 3a8db265-a971-49e1-4582-55c7bff6e8b9 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 468.45719ms - - id: 9 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 82 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","roleCollectionName":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - b8171e62-6692-0165-13e0-891925146600 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json X-Cpcli-Refreshtoken: - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/role-collection?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: '{"error":"No entity found with values = [[03760ecf-9d89-4189-a92a-1c7efed09298, fuh, 03760ecf-9d89-4189-a92a-1c7efed09298]]"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:12 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Mediatype: - - application/json - X-Cpcli-Backend-Status: - - "404" X-Cpcli-Replacementrefreshtoken: - redacted X-Frame-Options: - DENY X-Vcap-Request-Id: - - 7bddd6a2-7832-4e18-7354-d6fb8178e556 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 170.067777ms - - id: 10 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - a91945ee-dfd4-41e5-f4f5-52d9b812ac40 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:06:13 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 34a22c2c-fb3a-4a07-5088-d7a4e7a53508 + - a134570a-035e-4b41-53b0-c1a1a85b23ac X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 412.109612ms + duration: 290.3803ms diff --git a/internal/provider/fixtures/datasource_globalaccount_trust_configuration.custom_idp_not_existing.yaml b/internal/provider/fixtures/datasource_globalaccount_trust_configuration.custom_idp_not_existing.yaml index eb3ec15f..30be6998 100644 --- a/internal/provider/fixtures/datasource_globalaccount_trust_configuration.custom_idp_not_existing.yaml +++ b/internal/provider/fixtures/datasource_globalaccount_trust_configuration.custom_idp_not_existing.yaml @@ -6,7 +6,7 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 113 + content_length: 118 transfer_encoding: [] trailer: {} host: cpcli.cf.sap.hana.ondemand.com @@ -18,8 +18,10 @@ interactions: headers: Content-Type: - application/json + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - 2e311499-1ceb-74ce-3821-2eeefef24bfc + - c813e830-7724-f21e-6e9e-4fcd271b79ca X-Cpcli-Format: - json url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 @@ -30,18 +32,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 139 + content_length: 149 uncompressed: false body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Content-Length: - - "139" + - "149" Content-Type: - application/json Date: - - Thu, 01 Jun 2023 15:39:22 GMT + - Wed, 12 Jul 2023 13:06:22 GMT Expires: - "0" Pragma: @@ -55,12 +57,12 @@ interactions: X-Frame-Options: - DENY X-Vcap-Request-Id: - - 30856af6-4e38-41c0-7441-159ff6f1e43e + - 5f0ae7ac-6651-4298-489e-3e3f0199aaad X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 395.254908ms + duration: 781.1796ms - id: 1 request: proto: HTTP/1.1 @@ -78,8 +80,10 @@ interactions: headers: Content-Type: - application/json + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - a205f3b9-1dd5-c221-ba26-a280632394b5 + - 77da52fb-827c-c31c-5a80-1ee175462911 X-Cpcli-Customidp: - "" X-Cpcli-Format: @@ -105,7 +109,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 01 Jun 2023 15:39:23 GMT + - Wed, 12 Jul 2023 13:06:22 GMT Expires: - "0" Pragma: @@ -118,586 +122,16 @@ interactions: - nosniff X-Cpcli-Backend-Status: - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 6546800e-98ca-4b77-6724-8e2a38258f55 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 189.025779ms - - id: 2 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 55afbac8-dc5e-94d8-2f1a-c983592a85b6 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:23 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 7c002f5c-d604-47c2-6b69-80b2034a99a8 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 481.571995ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 70 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","origin":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 1e34d750-0ea0-d9bb-0286-8b1c2205433e - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:24 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 0fff3f26-96e8-47fa-7971-b299896c5a06 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 165.372359ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 115f4ba7-d202-28e5-e259-1428ecb9df13 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:25 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - bd3cb481-1845-4c64-4479-351f97f6e44f - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 398.37739ms - - id: 5 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 70 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","origin":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - f3f795d1-d261-340f-cb1a-91039411c0a2 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:26 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 755ea2a7-3096-4137-5bf7-eb48815a2787 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 165.744631ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 80f842cc-7d03-f284-a36f-4999e1894467 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:26 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 0d9646db-598f-4a50-5266-a0dc7f66e405 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 395.332805ms - - id: 7 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 70 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","origin":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - e2e1c092-c8f0-4dc5-10c5-993d2d62745d - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json X-Cpcli-Refreshtoken: - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:27 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" X-Cpcli-Replacementrefreshtoken: - redacted X-Frame-Options: - DENY X-Vcap-Request-Id: - - e6739a2b-7e99-4c19-5f73-99c894b569ec - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 154.407432ms - - id: 8 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 33bb17a3-0d69-eb5e-94d9-7492118f875f - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:27 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 201fbbe5-c6aa-4966-4b50-96fedce03086 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 368.962555ms - - id: 9 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 70 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"globalAccount":"terraformintcanary","origin":"fuh"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - ff3d0605-9d38-245a-2f2e-07797e85de78 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:28 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - a78b31ab-fe05-48c7-55a4-61e53600d9cc - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 168.773762ms - - id: 10 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - ed9c98aa-9036-b6f4-95a5-be286d199603 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 15:39:29 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 003b30ab-d685-4396-4081-d405ff28bd0b + - cb73309b-a27c-4b0c-55aa-747a1c720e8b X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 408.1277ms + duration: 275.9017ms diff --git a/internal/provider/fixtures/datasource_subaccount_trust_configuration.custom_idp_not_existing.yaml b/internal/provider/fixtures/datasource_subaccount_trust_configuration.custom_idp_not_existing.yaml index f718afda..caf68c15 100644 --- a/internal/provider/fixtures/datasource_subaccount_trust_configuration.custom_idp_not_existing.yaml +++ b/internal/provider/fixtures/datasource_subaccount_trust_configuration.custom_idp_not_existing.yaml @@ -6,7 +6,7 @@ interactions: proto: HTTP/1.1 proto_major: 1 proto_minor: 1 - content_length: 113 + content_length: 118 transfer_encoding: [] trailer: {} host: cpcli.cf.sap.hana.ondemand.com @@ -18,8 +18,10 @@ interactions: headers: Content-Type: - application/json + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - a2fea34b-e8fa-c701-eb20-445c8a27a6ab + - a03081f6-9086-6b38-8d3e-370fedcee300 X-Cpcli-Format: - json url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 @@ -30,18 +32,18 @@ interactions: proto_minor: 0 transfer_encoding: [] trailer: {} - content_length: 139 + content_length: 149 uncompressed: false body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' headers: Cache-Control: - no-cache, no-store, max-age=0, must-revalidate Content-Length: - - "139" + - "149" Content-Type: - application/json Date: - - Thu, 01 Jun 2023 16:09:25 GMT + - Wed, 12 Jul 2023 13:10:41 GMT Expires: - "0" Pragma: @@ -55,12 +57,12 @@ interactions: X-Frame-Options: - DENY X-Vcap-Request-Id: - - 84b94f53-89d3-4a98-5493-38a7d1a9c827 + - f6878b7f-66ba-4cf3-67fd-388a2774725c X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 420.443823ms + duration: 869.8759ms - id: 1 request: proto: HTTP/1.1 @@ -78,8 +80,10 @@ interactions: headers: Content-Type: - application/json + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - aaede633-7a35-cdf7-af32-9c280f73df78 + - ebcc37e5-cce9-42fb-e1e2-c15c1af637bb X-Cpcli-Customidp: - "" X-Cpcli-Format: @@ -105,7 +109,7 @@ interactions: Content-Length: - "0" Date: - - Thu, 01 Jun 2023 16:09:25 GMT + - Wed, 12 Jul 2023 13:10:42 GMT Expires: - "0" Location: @@ -118,6 +122,8 @@ interactions: - max-age=31536000; includeSubDomains; preload; X-Content-Type-Options: - nosniff + X-Cpcli-Refreshtoken: + - redacted X-Cpcli-Replacementrefreshtoken: - redacted X-Cpcli-Subdomain: @@ -127,12 +133,12 @@ interactions: X-Id-Token: - redacted X-Vcap-Request-Id: - - 0bbbf0c3-a118-4421-69e5-07a2996c1bbe + - 1d49894f-d0d4-4ec7-6535-57f5f132c692 X-Xss-Protection: - "0" status: 307 Temporary Redirect code: 307 - duration: 155.62749ms + duration: 270.1916ms - id: 2 request: proto: "" @@ -152,8 +158,10 @@ interactions: - application/json Referer: - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get + User-Agent: + - Terraform/1.5.2 terraform-provider-btp/dev X-Correlationid: - - aaede633-7a35-cdf7-af32-9c280f73df78 + - ebcc37e5-cce9-42fb-e1e2-c15c1af637bb X-Cpcli-Customidp: - "" X-Cpcli-Format: @@ -181,7 +189,7 @@ interactions: Content-Type: - application/json Date: - - Thu, 01 Jun 2023 16:09:25 GMT + - Wed, 12 Jul 2023 13:10:42 GMT Expires: - "0" Pragma: @@ -194,890 +202,16 @@ interactions: - nosniff X-Cpcli-Backend-Status: - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - cc15aef4-e35e-4431-4e43-fa5ccf4894a3 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 96.07395ms - - id: 3 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - dc4e6ce5-59df-8b0f-ee18-448ad4c0d6a6 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:26 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 309431df-a162-4aef-5417-56abd6f8385d - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 446.69298ms - - id: 4 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - f5732975-c191-35fa-44e9-5b80cb54afe3 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 0 - uncompressed: false - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "0" - Date: - - Thu, 01 Jun 2023 16:09:27 GMT - Expires: - - "0" - Location: - - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Frame-Options: - - DENY - X-Id-Token: - - redacted - X-Vcap-Request-Id: - - 3eb8ff08-2f39-437b-6088-4e1112cf8b41 - X-Xss-Protection: - - "0" - status: 307 Temporary Redirect - code: 307 - duration: 200.692747ms - - id: 5 - request: - proto: "" - proto_major: 0 - proto_minor: 0 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: "" - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - Referer: - - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - X-Correlationid: - - f5732975-c191-35fa-44e9-5b80cb54afe3 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json X-Cpcli-Refreshtoken: - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Id-Token: - - redacted - url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:27 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" X-Cpcli-Replacementrefreshtoken: - redacted X-Frame-Options: - DENY X-Vcap-Request-Id: - - e9a20e39-400b-4bb5-620b-fa10a463ea06 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 79.685982ms - - id: 6 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - b229e716-47c7-adf8-8967-96f450cd3938 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:28 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - acf09ee3-56ea-4ebf-5abb-f9daf14c0df5 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 423.107366ms - - id: 7 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - a5266fe7-b46f-0dae-5881-c180eab2931c - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 0 - uncompressed: false - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "0" - Date: - - Thu, 01 Jun 2023 16:09:28 GMT - Expires: - - "0" - Location: - - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Frame-Options: - - DENY - X-Id-Token: - - redacted - X-Vcap-Request-Id: - - de555eba-e850-46cb-6d30-e2b2a2b3834e - X-Xss-Protection: - - "0" - status: 307 Temporary Redirect - code: 307 - duration: 156.397962ms - - id: 8 - request: - proto: "" - proto_major: 0 - proto_minor: 0 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: "" - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - Referer: - - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - X-Correlationid: - - a5266fe7-b46f-0dae-5881-c180eab2931c - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Id-Token: - - redacted - url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:29 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 10ab8583-6cd2-430d-40cd-1d00e6b7565d - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 90.916295ms - - id: 9 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 76b2cd27-4167-240b-7d19-e9a97808d87e - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:29 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - aad416e4-d85d-4200-7894-63b4a2362119 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 477.397092ms - - id: 10 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - d4da9c7a-953e-f116-d379-95f756da4c45 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 0 - uncompressed: false - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "0" - Date: - - Thu, 01 Jun 2023 16:09:30 GMT - Expires: - - "0" - Location: - - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Frame-Options: - - DENY - X-Id-Token: - - redacted - X-Vcap-Request-Id: - - b5b02133-2bf1-4f4f-6747-febee991ed43 - X-Xss-Protection: - - "0" - status: 307 Temporary Redirect - code: 307 - duration: 163.357862ms - - id: 11 - request: - proto: "" - proto_major: 0 - proto_minor: 0 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: "" - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - Referer: - - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - X-Correlationid: - - d4da9c7a-953e-f116-d379-95f756da4c45 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Id-Token: - - redacted - url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:30 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - ec3b5b08-bb08-47bc-630d-2e1baa43bf96 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 93.113962ms - - id: 12 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 4188ddc3-0a96-a2bd-c7ab-d1686d97bbe7 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:31 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 822544ca-83f0-47fe-4656-893b58a9db33 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 388.457883ms - - id: 13 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - 43d80534-c382-43e6-69cf-b59e7fb5e602 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - terraformintcanary - url: https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 0 - uncompressed: false - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "0" - Date: - - Thu, 01 Jun 2023 16:09:31 GMT - Expires: - - "0" - Location: - - https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Frame-Options: - - DENY - X-Id-Token: - - redacted - X-Vcap-Request-Id: - - 4de51720-a47b-4fdf-4c90-9c8f6f9a5b97 - X-Xss-Protection: - - "0" - status: 307 Temporary Redirect - code: 307 - duration: 199.655662ms - - id: 14 - request: - proto: "" - proto_major: 0 - proto_minor: 0 - content_length: 85 - transfer_encoding: [] - trailer: {} - host: "" - remote_addr: "" - request_uri: "" - body: | - {"paramValues":{"origin":"fuh","subaccount":"ef23ace8-6ade-4d78-9c1f-8df729548bbf"}} - form: {} - headers: - Content-Type: - - application/json - Referer: - - https://cpcli.cf.sap.hana.ondemand.com/command/v2.38.0/security/trust?get - X-Correlationid: - - 43d80534-c382-43e6-69cf-b59e7fb5e602 - X-Cpcli-Customidp: - - "" - X-Cpcli-Format: - - json - X-Cpcli-Refreshtoken: - - redacted - X-Cpcli-Subdomain: - - integration-test-acc-static-b8xxozer - X-Id-Token: - - redacted - url: https://cpcli.cf.eu12.hana.ondemand.com/command/v2.38.0/security/trust?get - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: -1 - uncompressed: true - body: "" - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:32 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Cpcli-Backend-Status: - - "404" - X-Cpcli-Replacementrefreshtoken: - - redacted - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - c8b29426-de95-4113-5ebe-35601d4502c2 - X-Xss-Protection: - - "0" - status: 200 OK - code: 200 - duration: 92.855893ms - - id: 15 - request: - proto: HTTP/1.1 - proto_major: 1 - proto_minor: 1 - content_length: 113 - transfer_encoding: [] - trailer: {} - host: cpcli.cf.sap.hana.ondemand.com - remote_addr: "" - request_uri: "" - body: | - {"customIdp":"","subdomain":"terraformintcanary","userName":"john.doe@int.test","password":"redacted"} - form: {} - headers: - Content-Type: - - application/json - X-Correlationid: - - cc8a35a3-bcdf-d960-3791-8b84e5ebfd33 - X-Cpcli-Format: - - json - url: https://cpcli.cf.sap.hana.ondemand.com/login/v2.38.0 - method: POST - response: - proto: HTTP/2.0 - proto_major: 2 - proto_minor: 0 - transfer_encoding: [] - trailer: {} - content_length: 139 - uncompressed: false - body: '{"issuer":"accounts.sap.com","refreshToken":"redacted","user":"john.doe@int.test","mail":"john.doe@int.test"}' - headers: - Cache-Control: - - no-cache, no-store, max-age=0, must-revalidate - Content-Length: - - "139" - Content-Type: - - application/json - Date: - - Thu, 01 Jun 2023 16:09:32 GMT - Expires: - - "0" - Pragma: - - no-cache - Referrer-Policy: - - no-referrer - Strict-Transport-Security: - - max-age=31536000; includeSubDomains; preload; - X-Content-Type-Options: - - nosniff - X-Frame-Options: - - DENY - X-Vcap-Request-Id: - - 61c4e84a-0a5f-40b0-55ef-ea86e16ef26f + - 45c45ce5-e972-4eb2-401c-83cfb07659c5 X-Xss-Protection: - "0" status: 200 OK code: 200 - duration: 385.92853ms + duration: 382.0496ms