--- http_interactions: - request: method: get uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/agentPools body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 200 message: OK headers: Content-Type: - application/json Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=993462B69AD936795F2DEF2F37DFC7AD; Path=/; HttpOnly Transfer-Encoding: - chunked Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: "{\"count\":2,\"agentPool\":[{\"id\":100,\"name\":\"Linux\",\"href\":\"/httpAuth/app/rest/agentPools/id:100\"},{\"id\":0,\"name\":\"Default\",\"href\":\"/httpAuth/app/rest/agentPools/id:0\"}]}" http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: delete uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/agentPools/id:100 body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 204 message: No Content headers: Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=257FCB921034195CDB27DBA0F65B4998; Path=/; HttpOnly Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: "" http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: delete uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/agentPools/id:0 body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 500 message: Internal Server Error headers: Content-Type: - text/plain Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=9AE2E4EF257A8DCEF2B465D5ECAA1A87; Path=/; HttpOnly Connection: - close Transfer-Encoding: - chunked Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: |- Error has occurred during request processing (Internal Server Error). Error: java.lang.IllegalStateException: Cannot delete agent pool with id '0'., caused by: jetbrains.buildServer.serverSide.agentPools.AgentPoolCannotBeDeletedException: Default agent pool cannot be deleted Error occurred while processing this request. http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: get uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 200 message: OK headers: Content-Type: - application/json Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=E1888B6BB2A09A117D7C29A0A09C1144; Path=/; HttpOnly Transfer-Encoding: - chunked Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: "{\"project\":[{\"id\":\"_Root\",\"name\":\"\",\"href\":\"/httpAuth/app/rest/projects/id:_Root\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=_Root\"},{\"id\":\"SampleProject\",\"name\":\"Sample Project\",\"href\":\"/httpAuth/app/rest/projects/id:SampleProject\",\"archived\":false,\"webUrl\":\"http://localhost:8111/project.html?projectId=SampleProject\",\"parentProjectId\":\"_Root\"}]}" http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: delete uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:_Root body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 403 message: Forbidden headers: Content-Type: - text/plain Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=B05F31A5D42250C797F31F94A0419E17; Path=/; HttpOnly Transfer-Encoding: - chunked Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: |- Error has occurred during request processing (Forbidden). Error: jetbrains.buildServer.serverSide.auth.AccessDeniedException: Root project cannot be removed Access denied. Check the user has enough permissions to perform the operation. http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: delete uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/projects/id:SampleProject body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 204 message: No Content headers: Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=CCB9ACDAE23DC494BFAA17A321D0674B; Path=/; HttpOnly Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: "" http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: post uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/agentPools body: string: "{\"name\":\"Linux\"}" headers: Content-Type: - application/json Accept: - application/json response: status: code: 200 message: OK headers: Content-Type: - application/json Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=16FC0BAC98AF6DE4E511F80A643DC3CE; Path=/; HttpOnly Transfer-Encoding: - chunked Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: "{\"href\":\"/httpAuth/app/rest/agentPools/id:101\",\"id\":101,\"name\":\"Linux\",\"projects\":{\"project\":[]},\"agents\":{\"count\":0,\"agent\":[]}}" http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT - request: method: get uri: http://teamcity:teamcity@localhost:8111/httpAuth/app/rest/agentPools/id:101 body: string: "" headers: Content-Type: - application/json Accept: - application/json response: status: code: 200 message: OK headers: Content-Type: - application/json Expires: - Thu, 01 Jan 1970 00:00:00 GMT Pragma: - no-cache Date: - Fri, 23 May 2014 15:05:35 GMT Set-Cookie: - RememberMe=""; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/; HttpOnly - TCSESSIONID=623B15FEB71E9879BB46A9AA87C4AC61; Path=/; HttpOnly Transfer-Encoding: - chunked Server: - Apache-Coyote/1.1 Cache-Control: - no-cache - no-store body: string: "{\"href\":\"/httpAuth/app/rest/agentPools/id:101\",\"id\":101,\"name\":\"Linux\",\"projects\":{\"project\":[]},\"agents\":{\"count\":0,\"agent\":[]}}" http_version: recorded_at: Fri, 23 May 2014 15:05:36 GMT recorded_with: VCR 2.4.0