@@ -25,7 +25,7 @@ import (
2525
2626// Test_config_setup_FoldersAPIService_Create tests the creation of a folder
2727func Test_config_setup_FoldersAPIService_Create (t * testing.T ) {
28- t .Skip ("API returns 500 Internal Server Error on folder create - folder creation not supported in test environment" )
28+ t .Skip ("API returns 500 Internal Server Error - folder creation not supported in test environment" )
2929 // Setup the authenticated client
3030 client := SetupConfigSvcTestClient (t )
3131
@@ -57,10 +57,10 @@ func Test_config_setup_FoldersAPIService_Create(t *testing.T) {
5757 require .NotNil (t , res .Description , "API Response error: Description field in response is unexpectedly nil" )
5858 assert .Equal (t , * folder .Description , * res .Description , "Description string value should match the expected value" )
5959 assert .Equal (t , folder .Parent , res .Parent , "Parent should match" )
60- assert . NotEmpty (t , res .Id , "Created folder should have an ID" )
60+ require . NotNil (t , res .Id , "Created folder should have an ID" )
6161
6262 // Use the ID from the response object
63- createdFolderID := res .Id
63+ createdFolderID := * res .Id
6464 t .Logf ("Successfully created folder: %s with ID: %s" , createdFolderName , createdFolderID )
6565
6666 // Cleanup: Delete the created folder to maintain test isolation
@@ -79,7 +79,7 @@ func Test_config_setup_FoldersAPIService_Create(t *testing.T) {
7979
8080// Test_config_setup_FoldersAPIService_GetByID tests retrieving a folder by its ID
8181func Test_config_setup_FoldersAPIService_GetByID (t * testing.T ) {
82- t .Skip ("API returns 500 Internal Server Error on folder create - folder creation not supported in test environment" )
82+ t .Skip ("API returns 500 Internal Server Error - folder creation not supported in test environment" )
8383 // Setup the authenticated client
8484 client := SetupConfigSvcTestClient (t )
8585
@@ -99,8 +99,8 @@ func Test_config_setup_FoldersAPIService_GetByID(t *testing.T) {
9999 }
100100 require .NoError (t , err , "Failed to create folder for get test" )
101101 require .NotNil (t , createRes , "Create response should not be nil" )
102- createdFolderID := createRes .Id
103- require . NotEmpty ( t , createdFolderID , "Created folder should have an ID" )
102+ require . NotNil ( t , createRes .Id , "Created folder should have an ID" )
103+ createdFolderID := * createRes . Id
104104
105105 // Test Get by ID operation
106106 reqGetById := client .FoldersAPI .GetFolderByID (context .Background (), createdFolderID )
@@ -116,7 +116,7 @@ func Test_config_setup_FoldersAPIService_GetByID(t *testing.T) {
116116 // Assert response object properties
117117 require .NotNil (t , getRes , "Get response should not be nil" )
118118 assert .Equal (t , createdFolderName , getRes .Name , "Folder name should match" )
119- assert .Equal (t , createdFolderID , getRes .Id , "Folder ID should match" )
119+ assert .Equal (t , createdFolderID , * getRes .Id , "Folder ID should match" )
120120 assert .Equal (t , "Shared" , getRes .Parent , "Parent should match" )
121121
122122 t .Logf ("Successfully retrieved folder: %s" , getRes .Name )
@@ -137,7 +137,7 @@ func Test_config_setup_FoldersAPIService_GetByID(t *testing.T) {
137137
138138// Test_config_setup_FoldersAPIService_Update tests updating an existing folder
139139func Test_config_setup_FoldersAPIService_Update (t * testing.T ) {
140- t .Skip ("API returns 500 Internal Server Error on folder create - folder creation not supported in test environment" )
140+ t .Skip ("API returns 500 Internal Server Error - folder creation not supported in test environment" )
141141 // Setup the authenticated client
142142 client := SetupConfigSvcTestClient (t )
143143
@@ -156,7 +156,7 @@ func Test_config_setup_FoldersAPIService_Update(t *testing.T) {
156156 handleAPIError (err )
157157 }
158158 require .NoError (t , err , "Failed to create folder for update test" )
159- createdFolderID := createRes .Id
159+ createdFolderID := * createRes .Id
160160
161161 // 2. Test Update operation with modified fields
162162 updatedFolder := config_setup.Folders {
@@ -179,7 +179,7 @@ func Test_config_setup_FoldersAPIService_Update(t *testing.T) {
179179 require .NotNil (t , updateRes , "Update response should not be nil" )
180180 assert .Equal (t , createdFolderName , updateRes .Name , "Folder name should remain the same" )
181181 assert .Equal (t , * updatedFolder .Description , * updateRes .Description , "Description should be updated" )
182- assert .Equal (t , createdFolderID , updateRes .Id , "Folder ID should remain the same" )
182+ assert .Equal (t , createdFolderID , * updateRes .Id , "Folder ID should remain the same" )
183183
184184 t .Logf ("Successfully updated folder: %s" , createdFolderName )
185185
@@ -217,7 +217,7 @@ func Test_config_setup_FoldersAPIService_List(t *testing.T) {
217217
218218// Test_config_setup_FoldersAPIService_DeleteByID tests deleting a folder by its ID
219219func Test_config_setup_FoldersAPIService_DeleteByID (t * testing.T ) {
220- t .Skip ("API returns 500 Internal Server Error on folder create - folder creation not supported in test environment" )
220+ t .Skip ("API returns 500 Internal Server Error - folder creation not supported in test environment" )
221221 // Setup the authenticated client
222222 client := SetupConfigSvcTestClient (t )
223223
@@ -236,8 +236,8 @@ func Test_config_setup_FoldersAPIService_DeleteByID(t *testing.T) {
236236 handleAPIError (err )
237237 }
238238 require .NoError (t , err , "Failed to create folder for delete test" )
239- createdFolderID := createRes .Id
240- require . NotEmpty ( t , createdFolderID , "Created folder should have an ID" )
239+ require . NotNil ( t , createRes .Id , "Created folder should have an ID" )
240+ createdFolderID := * createRes . Id
241241 t .Logf ("Folder created successfully: %s" , createdFolderID )
242242
243243 // 2. Test Delete by ID operation
0 commit comments