|
1 | 1 | /* |
2 | | - * (C) Copyright IBM Corp. 2020, 2021. |
| 2 | + * (C) Copyright IBM Corp. 2021. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with |
5 | 5 | * the License. You may obtain a copy of the License at |
@@ -3817,7 +3817,7 @@ public void testGetMetricsQueryTokenEventWOptions() throws Throwable { |
3817 | 3817 | public void testListCredentialsWOptions() throws Throwable { |
3818 | 3818 | // Schedule some responses. |
3819 | 3819 | String mockResponseBody = |
3820 | | - "{\"credentials\": [{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authentication\": true, \"error_message\": \"errorMessage\"}}]}"; |
| 3820 | + "{\"credentials\": [{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authenticated\": false, \"error_message\": \"errorMessage\"}}]}"; |
3821 | 3821 | String listCredentialsPath = "/v1/environments/testString/credentials"; |
3822 | 3822 |
|
3823 | 3823 | server.enqueue( |
@@ -3870,7 +3870,7 @@ public void testListCredentialsNoOptions() throws Throwable { |
3870 | 3870 | public void testCreateCredentialsWOptions() throws Throwable { |
3871 | 3871 | // Schedule some responses. |
3872 | 3872 | String mockResponseBody = |
3873 | | - "{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authentication\": true, \"error_message\": \"errorMessage\"}}"; |
| 3873 | + "{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authenticated\": false, \"error_message\": \"errorMessage\"}}"; |
3874 | 3874 | String createCredentialsPath = "/v1/environments/testString/credentials"; |
3875 | 3875 |
|
3876 | 3876 | server.enqueue( |
@@ -3907,7 +3907,7 @@ public void testCreateCredentialsWOptions() throws Throwable { |
3907 | 3907 |
|
3908 | 3908 | // Construct an instance of the StatusDetails model |
3909 | 3909 | StatusDetails statusDetailsModel = |
3910 | | - new StatusDetails.Builder().authentication(true).errorMessage("testString").build(); |
| 3910 | + new StatusDetails.Builder().authenticated(true).errorMessage("testString").build(); |
3911 | 3911 |
|
3912 | 3912 | // Construct an instance of the CreateCredentialsOptions model |
3913 | 3913 | CreateCredentialsOptions createCredentialsOptionsModel = |
@@ -3956,7 +3956,7 @@ public void testCreateCredentialsNoOptions() throws Throwable { |
3956 | 3956 | public void testGetCredentialsWOptions() throws Throwable { |
3957 | 3957 | // Schedule some responses. |
3958 | 3958 | String mockResponseBody = |
3959 | | - "{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authentication\": true, \"error_message\": \"errorMessage\"}}"; |
| 3959 | + "{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authenticated\": false, \"error_message\": \"errorMessage\"}}"; |
3960 | 3960 | String getCredentialsPath = "/v1/environments/testString/credentials/testString"; |
3961 | 3961 |
|
3962 | 3962 | server.enqueue( |
@@ -4012,7 +4012,7 @@ public void testGetCredentialsNoOptions() throws Throwable { |
4012 | 4012 | public void testUpdateCredentialsWOptions() throws Throwable { |
4013 | 4013 | // Schedule some responses. |
4014 | 4014 | String mockResponseBody = |
4015 | | - "{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authentication\": true, \"error_message\": \"errorMessage\"}}"; |
| 4015 | + "{\"credential_id\": \"credentialId\", \"source_type\": \"box\", \"credential_details\": {\"credential_type\": \"oauth2\", \"client_id\": \"clientId\", \"enterprise_id\": \"enterpriseId\", \"url\": \"url\", \"username\": \"username\", \"organization_url\": \"organizationUrl\", \"site_collection.path\": \"siteCollectionPath\", \"client_secret\": \"clientSecret\", \"public_key_id\": \"publicKeyId\", \"private_key\": \"privateKey\", \"passphrase\": \"passphrase\", \"password\": \"password\", \"gateway_id\": \"gatewayId\", \"source_version\": \"online\", \"web_application_url\": \"webApplicationUrl\", \"domain\": \"domain\", \"endpoint\": \"endpoint\", \"access_key_id\": \"accessKeyId\", \"secret_access_key\": \"secretAccessKey\"}, \"status\": {\"authenticated\": false, \"error_message\": \"errorMessage\"}}"; |
4016 | 4016 | String updateCredentialsPath = "/v1/environments/testString/credentials/testString"; |
4017 | 4017 |
|
4018 | 4018 | server.enqueue( |
@@ -4049,7 +4049,7 @@ public void testUpdateCredentialsWOptions() throws Throwable { |
4049 | 4049 |
|
4050 | 4050 | // Construct an instance of the StatusDetails model |
4051 | 4051 | StatusDetails statusDetailsModel = |
4052 | | - new StatusDetails.Builder().authentication(true).errorMessage("testString").build(); |
| 4052 | + new StatusDetails.Builder().authenticated(true).errorMessage("testString").build(); |
4053 | 4053 |
|
4054 | 4054 | // Construct an instance of the UpdateCredentialsOptions model |
4055 | 4055 | UpdateCredentialsOptions updateCredentialsOptionsModel = |
|
0 commit comments