2021-03-01 14:51:44 +02:00
|
|
|
package build
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io/ioutil"
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
piperhttp "github.com/SAP/jenkins-library/pkg/http"
|
|
|
|
)
|
|
|
|
|
|
|
|
// MockClient : use NewMockClient for construction
|
|
|
|
type MockClient struct {
|
2021-11-12 15:33:18 +02:00
|
|
|
//Key = HTTP-Method + Url
|
2021-03-01 14:51:44 +02:00
|
|
|
Data map[string][]http.Response
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
// MockData: data for the mockClient
|
|
|
|
type MockData struct {
|
|
|
|
Method string
|
|
|
|
Url string
|
|
|
|
Body string
|
|
|
|
StatusCode int
|
|
|
|
Header http.Header
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockClient : Constructs a new Mock Client implementing piperhttp.Sender
|
|
|
|
func NewMockClient() MockClient {
|
|
|
|
var ret = MockClient{}
|
|
|
|
ret.Data = make(map[string][]http.Response)
|
|
|
|
return ret
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddResponse : adds a response object to the mock lib
|
2021-11-12 15:33:18 +02:00
|
|
|
func (mc *MockClient) AddResponse(Method, Url string, response http.Response) {
|
|
|
|
responseList, ok := mc.Data[Method+Url]
|
2021-03-01 14:51:44 +02:00
|
|
|
if !ok {
|
2021-03-11 12:55:12 +02:00
|
|
|
responseList = make([]http.Response, 0)
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
responseList = append(responseList, response)
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
mc.Data[Method+Url] = responseList
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
// Add : adds a response with the given Body and statusOK to the mock lib
|
|
|
|
func (mc *MockClient) Add(Method, Url, Body string) {
|
|
|
|
mc.AddResponse(Method, Url, http.Response{
|
2021-03-01 14:51:44 +02:00
|
|
|
StatusCode: http.StatusOK,
|
|
|
|
Header: http.Header{},
|
2021-11-12 15:33:18 +02:00
|
|
|
Body: ioutil.NopCloser(bytes.NewReader([]byte(Body))),
|
2021-03-01 14:51:44 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddBody : adds a response with the given data to the mock lib
|
2021-11-12 15:33:18 +02:00
|
|
|
func (mc *MockClient) AddBody(Method, Url, Body string, StatusCode int, header http.Header) {
|
|
|
|
mc.AddResponse(Method, Url, http.Response{
|
|
|
|
StatusCode: StatusCode,
|
2021-03-01 14:51:44 +02:00
|
|
|
Header: header,
|
2021-11-12 15:33:18 +02:00
|
|
|
Body: ioutil.NopCloser(bytes.NewReader([]byte(Body))),
|
2021-03-01 14:51:44 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
// AddData : add the mock Data as response to the mock lib
|
|
|
|
func (mc *MockClient) AddData(data MockData) {
|
|
|
|
mc.AddResponse(data.Method, data.Url, http.Response{
|
|
|
|
StatusCode: data.StatusCode,
|
|
|
|
Header: data.Header,
|
|
|
|
Body: ioutil.NopCloser(bytes.NewReader([]byte(data.Body))),
|
2021-03-01 14:51:44 +02:00
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
func (mc *MockClient) getResponse(Method, Url string) (http.Response, bool) {
|
|
|
|
responseList, ok := mc.Data[Method+Url]
|
2021-03-01 14:51:44 +02:00
|
|
|
if !ok {
|
|
|
|
return http.Response{}, false
|
|
|
|
}
|
2021-03-11 12:55:12 +02:00
|
|
|
response := responseList[0]
|
2021-03-01 14:51:44 +02:00
|
|
|
if len(responseList) > 1 {
|
2021-11-12 15:33:18 +02:00
|
|
|
mc.Data[Method+Url] = responseList[1:]
|
2021-03-01 14:51:44 +02:00
|
|
|
} else {
|
2021-11-12 15:33:18 +02:00
|
|
|
delete(mc.Data, Method+Url)
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return response, true
|
|
|
|
}
|
|
|
|
|
|
|
|
// SetOptions : dummy as of now
|
|
|
|
func (mc *MockClient) SetOptions(opts piperhttp.ClientOptions) {}
|
|
|
|
|
|
|
|
// SendRequest sets a HTTP response for a client mock
|
2021-11-12 15:33:18 +02:00
|
|
|
func (mc *MockClient) SendRequest(Method, Url string, bdy io.Reader, hdr http.Header, cookies []*http.Cookie) (*http.Response, error) {
|
|
|
|
response, ok := mc.getResponse(Method, Url)
|
2021-03-01 14:51:44 +02:00
|
|
|
if !ok {
|
2021-11-12 15:33:18 +02:00
|
|
|
//return nil, errors.New("No Mock data for given Method+Url")
|
|
|
|
return nil, fmt.Errorf("No Mock data for %s", Method+Url)
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
return &response, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// DownloadFile : Empty file download
|
2021-11-12 15:33:18 +02:00
|
|
|
func (mc *MockClient) DownloadFile(Url, filename string, header http.Header, cookies []*http.Cookie) error {
|
2021-03-01 14:51:44 +02:00
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
/***************************************
|
|
|
|
*** BuildMock
|
|
|
|
***************************************/
|
|
|
|
|
|
|
|
// GetBuildMockClient : Constructs a Mock Client with example build Requests/Responses
|
|
|
|
func GetBuildMockClient() MockClient {
|
|
|
|
mc := NewMockClient()
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
mc.AddData(buildHead)
|
|
|
|
mc.AddData(buildPost)
|
|
|
|
mc.AddData(buildGet1)
|
|
|
|
mc.AddData(buildGet2)
|
|
|
|
mc.AddData(buildGetTasks)
|
|
|
|
mc.AddData(buildGetTask0Logs)
|
|
|
|
mc.AddData(buildGetTask1Logs)
|
|
|
|
mc.AddData(buildGetTask2Logs)
|
|
|
|
mc.AddData(buildGetTask3Logs)
|
|
|
|
mc.AddData(buildGetTask4Logs)
|
|
|
|
mc.AddData(buildGetTask5Logs)
|
|
|
|
mc.AddData(buildGetTask6Logs)
|
|
|
|
mc.AddData(buildGetTask7Logs)
|
|
|
|
mc.AddData(buildGetTask8Logs)
|
|
|
|
mc.AddData(buildGetTask9Logs)
|
|
|
|
mc.AddData(buildGetTask10Logs)
|
|
|
|
mc.AddData(buildGetTask11Logs)
|
|
|
|
mc.AddData(buildGetTask12Logs)
|
|
|
|
mc.AddData(buildGetTask0Result)
|
|
|
|
mc.AddData(buildGetTask1Result)
|
|
|
|
mc.AddData(buildGetTask2Result)
|
|
|
|
mc.AddData(buildGetTask3Result)
|
|
|
|
mc.AddData(buildGetTask4Result)
|
|
|
|
mc.AddData(buildGetTask5Result)
|
|
|
|
mc.AddData(buildGetTask6Result)
|
|
|
|
mc.AddData(buildGetTask7Result)
|
|
|
|
mc.AddData(buildGetTask8Result)
|
|
|
|
mc.AddData(buildGetTask9Result)
|
|
|
|
mc.AddData(buildGetTask10Result)
|
|
|
|
mc.AddData(buildGetTask11Result)
|
|
|
|
mc.AddData(buildGetTask12Result)
|
|
|
|
mc.AddData(buildGetTask11ResultMedia)
|
2021-12-06 15:43:37 +02:00
|
|
|
mc.AddData(buildGetValues)
|
2021-03-01 14:51:44 +02:00
|
|
|
|
|
|
|
return mc
|
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
func GetBuildMockClientWithClient() MockClient {
|
|
|
|
mc := NewMockClient()
|
|
|
|
mc.AddData(buildHeadWithClient)
|
|
|
|
mc.AddData(buildPostWithClient)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTasksWithClient)
|
|
|
|
|
|
|
|
mc.AddData(buildGet2WithClient)
|
|
|
|
mc.AddData(buildGetTask0LogsWithClient)
|
|
|
|
mc.AddData(buildGetValuesWithClient)
|
|
|
|
return mc
|
|
|
|
}
|
|
|
|
|
2022-02-07 21:34:11 +02:00
|
|
|
// GetBuildMockClientToRun2Times : Constructs a Mock Client with example build Requests/Responses, this can run two times
|
|
|
|
func GetBuildMockClientToRun2Times() MockClient {
|
|
|
|
mc := NewMockClient()
|
|
|
|
|
|
|
|
mc.AddData(buildHead)
|
|
|
|
mc.AddData(buildHead)
|
|
|
|
|
|
|
|
mc.AddData(buildPost)
|
|
|
|
mc.AddData(buildPost)
|
|
|
|
|
|
|
|
mc.AddData(buildGet1)
|
|
|
|
mc.AddData(buildGet2)
|
|
|
|
mc.AddData(buildGet1)
|
|
|
|
mc.AddData(buildGet2)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTasks)
|
|
|
|
mc.AddData(buildGetTasks)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTask0Logs)
|
|
|
|
mc.AddData(buildGetTask1Logs)
|
|
|
|
mc.AddData(buildGetTask2Logs)
|
|
|
|
mc.AddData(buildGetTask3Logs)
|
|
|
|
mc.AddData(buildGetTask4Logs)
|
|
|
|
mc.AddData(buildGetTask5Logs)
|
|
|
|
mc.AddData(buildGetTask6Logs)
|
|
|
|
mc.AddData(buildGetTask7Logs)
|
|
|
|
mc.AddData(buildGetTask8Logs)
|
|
|
|
mc.AddData(buildGetTask9Logs)
|
|
|
|
mc.AddData(buildGetTask10Logs)
|
|
|
|
mc.AddData(buildGetTask11Logs)
|
|
|
|
mc.AddData(buildGetTask12Logs)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTask0Logs)
|
|
|
|
mc.AddData(buildGetTask1Logs)
|
|
|
|
mc.AddData(buildGetTask2Logs)
|
|
|
|
mc.AddData(buildGetTask3Logs)
|
|
|
|
mc.AddData(buildGetTask4Logs)
|
|
|
|
mc.AddData(buildGetTask5Logs)
|
|
|
|
mc.AddData(buildGetTask6Logs)
|
|
|
|
mc.AddData(buildGetTask7Logs)
|
|
|
|
mc.AddData(buildGetTask8Logs)
|
|
|
|
mc.AddData(buildGetTask9Logs)
|
|
|
|
mc.AddData(buildGetTask10Logs)
|
|
|
|
mc.AddData(buildGetTask11Logs)
|
|
|
|
mc.AddData(buildGetTask12Logs)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTask0Result)
|
|
|
|
mc.AddData(buildGetTask1Result)
|
|
|
|
mc.AddData(buildGetTask2Result)
|
|
|
|
mc.AddData(buildGetTask3Result)
|
|
|
|
mc.AddData(buildGetTask4Result)
|
|
|
|
mc.AddData(buildGetTask5Result)
|
|
|
|
mc.AddData(buildGetTask6Result)
|
|
|
|
mc.AddData(buildGetTask7Result)
|
|
|
|
mc.AddData(buildGetTask8Result)
|
|
|
|
mc.AddData(buildGetTask9Result)
|
|
|
|
mc.AddData(buildGetTask10Result)
|
|
|
|
mc.AddData(buildGetTask11Result)
|
|
|
|
mc.AddData(buildGetTask12Result)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTask0Result)
|
|
|
|
mc.AddData(buildGetTask1Result)
|
|
|
|
mc.AddData(buildGetTask2Result)
|
|
|
|
mc.AddData(buildGetTask3Result)
|
|
|
|
mc.AddData(buildGetTask4Result)
|
|
|
|
mc.AddData(buildGetTask5Result)
|
|
|
|
mc.AddData(buildGetTask6Result)
|
|
|
|
mc.AddData(buildGetTask7Result)
|
|
|
|
mc.AddData(buildGetTask8Result)
|
|
|
|
mc.AddData(buildGetTask9Result)
|
|
|
|
mc.AddData(buildGetTask10Result)
|
|
|
|
mc.AddData(buildGetTask11Result)
|
|
|
|
mc.AddData(buildGetTask12Result)
|
|
|
|
|
|
|
|
mc.AddData(buildGetTask11ResultMedia)
|
|
|
|
mc.AddData(buildGetTask11ResultMedia)
|
|
|
|
|
|
|
|
mc.AddData(buildGetValues)
|
|
|
|
mc.AddData(buildGetValues)
|
|
|
|
|
|
|
|
return mc
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildHead = MockData{
|
|
|
|
Method: `HEAD`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV`,
|
|
|
|
Body: `<?xml version="1.0"?>
|
|
|
|
<HTTP_Body/>`,
|
|
|
|
StatusCode: 200,
|
|
|
|
Header: http.Header{"x-csrf-token": {"HRfJP0OhB9C9mHs2RRqUzw=="}},
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
var buildHeadWithClient = MockData{
|
|
|
|
Method: `HEAD`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV?sap-client=001`,
|
|
|
|
Body: buildHead.Body,
|
|
|
|
StatusCode: 200,
|
|
|
|
Header: buildHead.Header,
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildPost = MockData{
|
|
|
|
Method: `POST`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_BUILDSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"run_state" : "ACCEPTED",
|
|
|
|
"result_state" : "",
|
|
|
|
"phase" : "BUILD_AOI",
|
|
|
|
"entitytype" : "",
|
|
|
|
"startedby" : "CC0000000001",
|
|
|
|
"started_at" : null,
|
|
|
|
"finished_at" : null,
|
|
|
|
"tasks" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"values" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 201,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
var buildPostWithClient = MockData{
|
|
|
|
Method: `POST`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds?sap-client=001`,
|
|
|
|
Body: buildPost.Body,
|
|
|
|
StatusCode: 201,
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGet1 = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_BUILDSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"run_state" : "RUNNING",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"phase" : "BUILD_AOI",
|
|
|
|
"entitytype" : "C",
|
|
|
|
"startedby" : "CC0000000001",
|
|
|
|
"started_at" : "\/Date(1614108520862+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535350+0000)\/",
|
|
|
|
"tasks" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"values" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/values"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGet2 = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_BUILDSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"run_state" : "FINISHED",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"phase" : "BUILD_AOI",
|
|
|
|
"entitytype" : "C",
|
|
|
|
"startedby" : "CC0000000001",
|
|
|
|
"started_at" : "\/Date(1614108520862+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535350+0000)\/",
|
|
|
|
"tasks" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"values" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/values"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
var buildGet2WithClient = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')?sap-client=001`,
|
|
|
|
Body: buildGet2.Body,
|
|
|
|
StatusCode: 200,
|
|
|
|
}
|
|
|
|
|
2021-12-06 15:43:37 +02:00
|
|
|
var buildGetRunStateFailed = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')`,
|
|
|
|
Body: `{
|
|
|
|
"d" : {
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_BUILDSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"run_state" : "FAILED",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"phase" : "BUILD_AOI",
|
|
|
|
"entitytype" : "C",
|
|
|
|
"startedby" : "CC0000000001",
|
|
|
|
"started_at" : "\/Date(1614108520862+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535350+0000)\/",
|
|
|
|
"tasks" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"values" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/values"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
StatusCode: 200,
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTasks = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 1,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_1",
|
|
|
|
"plugin_class" : "CL_CD_SDC_SET_CVERS",
|
|
|
|
"started_at" : "\/Date(1614108521633+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108521637+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 2,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_2",
|
|
|
|
"plugin_class" : "/BUILD/GIT_COMMITS_2_PIECELIST",
|
|
|
|
"started_at" : "\/Date(1614108521651+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108521864+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 3,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_3",
|
|
|
|
"plugin_class" : "CL_CD_SDC_SET_TRDELVCHK",
|
|
|
|
"started_at" : "\/Date(1614108521869+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108521889+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 4,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_4",
|
|
|
|
"plugin_class" : "CL_CD_SDC_CREATE_UPINS",
|
|
|
|
"started_at" : "\/Date(1614108521896+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108522293+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 5,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_5",
|
|
|
|
"plugin_class" : "CL_CD_SDC_MERGE_BY_LIST",
|
|
|
|
"started_at" : "\/Date(1614108522300+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108523039+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 6,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_6",
|
|
|
|
"plugin_class" : "CL_CD_SDC_RELEASE_AOU",
|
|
|
|
"started_at" : "\/Date(1614108523046+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108523230+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 7,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_7",
|
|
|
|
"plugin_class" : "CL_CD_SDC_MERGE_AOI",
|
|
|
|
"started_at" : "\/Date(1614108523236+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108523661+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 8,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_8",
|
|
|
|
"plugin_class" : "CL_CD_SDC_ADD_REQUIRED_OBJECTS",
|
|
|
|
"started_at" : "\/Date(1614108523668+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108523686+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 9,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_9",
|
|
|
|
"plugin_class" : "CL_CD_SDC_CHECK_FT",
|
|
|
|
"started_at" : "\/Date(1614108523692+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108524528+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 10,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_10",
|
|
|
|
"plugin_class" : "CL_CD_SDC_RELEASE_FT",
|
|
|
|
"started_at" : "\/Date(1614108524534+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108534847+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 11,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_11",
|
|
|
|
"plugin_class" : "CL_CD_SDC_ASSEMBLE_FT",
|
|
|
|
"started_at" : "\/Date(1614108534855+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535145+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 12,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_12",
|
|
|
|
"plugin_class" : "CL_CD_SDC_GET_DELIVERY_LOGS_FT",
|
|
|
|
"started_at" : "\/Date(1614108535152+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535343+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"plugin_class" : "",
|
|
|
|
"started_at" : "\/Date(1614108521633+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535356+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
var buildGetTasksWithClient = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks?sap-client=001`,
|
|
|
|
Body: `{
|
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_TASKSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"plugin_class" : "",
|
|
|
|
"started_at" : "\/Date(1614108521633+0000)\/",
|
|
|
|
"finished_at" : "\/Date(1614108535356+0000)\/",
|
|
|
|
"result_state" : "SUCCESSFUL",
|
|
|
|
"logs" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/logs"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"results" : {
|
|
|
|
"__deferred" : {
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/results"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
StatusCode: 200,
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask0Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 ⌂⌂⌂ ABAP Build Framework ⌂⌂⌂",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 ============================",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build 'AKO22FYOFYPOXHOBVKXUTX3A3Q' for execution of Phase 'BUILD_AOI' started",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Start Tree Initialization...",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Initializing build tree for software component /ITAPC1/I_CURRENCY",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Package Tree contains 2 packages",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 # of computed Build Packages: 1",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 # of computed Build Tasks: 12",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 ...Tree initialization finished",
|
|
|
|
"TIME_STMP" : "20210223192841"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Start Build Execution...",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 1 plugin CL_CD_SDC_SET_CVERS executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 2 plugin /BUILD/GIT_COMMITS_2_PIECELIST executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 3 plugin CL_CD_SDC_SET_TRDELVCHK executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 4 plugin CL_CD_SDC_CREATE_UPINS executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 5 plugin CL_CD_SDC_MERGE_BY_LIST executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192843"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 6 plugin CL_CD_SDC_RELEASE_AOU executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192843"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 7 plugin CL_CD_SDC_MERGE_AOI executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192844"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 8 plugin CL_CD_SDC_ADD_REQUIRED_OBJECTS executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192844"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 9 plugin CL_CD_SDC_CHECK_FT executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192845"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 10 plugin CL_CD_SDC_RELEASE_FT executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 11 plugin CL_CD_SDC_ASSEMBLE_FT executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Build Task 12 plugin CL_CD_SDC_GET_DELIVERY_LOGS_FT executed SUCCESSFUL for scope Packages [2]: , /ITAPC1/I_CURRENCY, /ITAPC1/I_CURRENCY_DEV",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_0')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 0,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_0",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 ... Build Execution finished SUCCESSFUL",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
var buildGetTask0LogsWithClient = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/logs?sap-client=001`,
|
|
|
|
Body: buildGetTask0Logs.Body,
|
|
|
|
StatusCode: 200,
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask1Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_1')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_1')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 1,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_1",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 CVERS values set: /ITAPC1/I_CURRENCY, 0001, 0000",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask2Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask3Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_3')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_3')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 3,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_3",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 TRDELVCHK data created.",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask4Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 4,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_4",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery /ITAPC1/SAPK-001AAINITAPC1 successfully deleted",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 4,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_4",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery /ITAPC1/SAPK-001AAINITAPC1 was succesfully created",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 4,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_4",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery request SAPK+001AAINITAPC1 of type AOU was succesfully created",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 4,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_4",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery request SAPK-001AAINITAPC1 of type AOI was created",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_4')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 4,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_4",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Check Set ABAP_IN_SCP successfully assigned",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask5Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_5')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_5')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 5,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_5",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Merge transport Plugin configuration loaded: Delivery transport SAPK+001AAINITAPC1",
|
|
|
|
"TIME_STMP" : "20210223192842"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_5')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_5')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 5,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_5",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Transports merged into delivery /ITAPC1/SAPK-001AAINITAPC1",
|
|
|
|
"TIME_STMP" : "20210223192843"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask6Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_6')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_6')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 6,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_6",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Release transport Plugin configuration loaded: Delivery transport SAPK+001AAINITAPC1",
|
|
|
|
"TIME_STMP" : "20210223192843"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_6')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_6')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 6,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_6",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery Transport SAPK+001AAINITAPC1 was succesfully released",
|
|
|
|
"TIME_STMP" : "20210223192843"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask7Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_7')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_7')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 7,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_7",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery request SAPK-001AAINITAPC1 of type AOI was merged",
|
|
|
|
"TIME_STMP" : "20210223192844"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask8Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_8')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_8')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 8,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_8",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Required objects inserted into SAPK-001AAINITAPC1",
|
|
|
|
"TIME_STMP" : "20210223192844"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask9Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_9')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_9')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 9,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_9",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 OLC for delivery /ITAPC1/SAPK-001AAINITAPC1 was succesfully done",
|
|
|
|
"TIME_STMP" : "20210223192845"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask10Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_10')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_10')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 10,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_10",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Merge transport Plugin configuration loaded: Delivery transport SAPK-001AAINITAPC1",
|
|
|
|
"TIME_STMP" : "20210223192845"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_10')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_10')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 10,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_10",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Delivery Transport SAPK-001AAINITAPC1 was succesfully released",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask11Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_11')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_11')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 11,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_11",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 XML and SAR Archive /usr/sap/trans/tmp/SAPK-001AAINITAPC1.SAR successfully created and stored to file system",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask12Logs = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/logs`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_12')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/logs(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,log_id='AKO22FYOFYPOXHOBVKXUTX3A3Q_12')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_LOGSType"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 12,
|
|
|
|
"log_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q_12",
|
|
|
|
"msgty" : "I",
|
|
|
|
"detlevel" : "3",
|
|
|
|
"log_line" : "I:/BUILD/LOG:000 Provide log Plugin configuration loaded: Delivery /ITAPC1/SAPK-001AAINITAPC1",
|
|
|
|
"TIME_STMP" : "20210223192855"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask0Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask1Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask2Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask3Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask4Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask5Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask6Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask7Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask8Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask9Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask10Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask11Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11,name='SAR_XML')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11,name='SAR_XML')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_RESULTSType",
|
|
|
|
"content_type" : "application/octet-stream",
|
|
|
|
"media_src" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11,name='SAR_XML')/$value"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 11,
|
|
|
|
"name" : "SAR_XML",
|
|
|
|
"additional_info" : "/usr/sap/trans/tmp/SAPK-001AAINITAPC1.SAR",
|
|
|
|
"mimetype" : "application/octet-stream"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask12Result = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/results`,
|
|
|
|
Body: `{
|
2021-03-11 12:55:12 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,name='DELIVERY_LOGS.ZIP')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,name='DELIVERY_LOGS.ZIP')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_RESULTSType",
|
|
|
|
"content_type" : "application/x-zip-compressed",
|
|
|
|
"media_src" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,name='DELIVERY_LOGS.ZIP')/$value"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 12,
|
|
|
|
"name" : "DELIVERY_LOGS.ZIP",
|
|
|
|
"additional_info" : "SAPK-001AAINITAPC1.zip",
|
|
|
|
"mimetype" : "application/x-zip-compressed"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-11 12:55:12 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask12ResultOrig = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/results`,
|
|
|
|
Body: `{
|
2021-03-01 14:51:44 +02:00
|
|
|
"d" : {
|
|
|
|
"results" : [
|
|
|
|
{
|
|
|
|
"__metadata" : {
|
|
|
|
"id" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,name='DELIVERY_LOGS.ZIP')",
|
|
|
|
"uri" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,name='DELIVERY_LOGS.ZIP')",
|
|
|
|
"type" : "BUILD.CORE_SRV.xBUILDxVIEW_RESULTSType",
|
|
|
|
"content_type" : "application/x-zip-compressed",
|
|
|
|
"media_src" : "https://7aa9d1a3-a876-464e-b59a-f26104452461.abap.stagingaws.hanavlab.ondemand.com/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12,name='DELIVERY_LOGS.ZIP')/$value"
|
|
|
|
},
|
|
|
|
"build_id" : "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"task_id" : 12,
|
|
|
|
"name" : "DELIVERY_LOGS.ZIP",
|
|
|
|
"additional_info" : "504B03041400000008009B9B5752BE5CF063BB7900009036050016000000534150452D3030314141494E4954415043312E583032D49D6D6FE248D686BFAFB4FFA134A367D23DEA24C6BC84206525C7381D7A704C63279DD66A850838697608B0E07477F6D73F5506131B97AB4E958F57BB68A4E904FBAAB773EEAABBCA811A718241EDFCFCFE57D0EBAF7FA9C537B4EBC4B91F78C3800C86CEC01A5A41CFBB49DE346A245A8F179BD5721D91E57A1AAE097B75C82FBE35F8E3D8306A96D5BBE905D6C0AEFDB2BFC9249BD74D143E93CC8BDE746F986F57B549B422AB71F4EDF0AA68F576D139F91EAE37B3E5828C1753B20EE7E17813B28BEAEDDA49DD6C9FB4CE7E21BF9CB5EBFB5BCEDBE4AF7F318933B835EBC6BDF3339CBC44ECFEE52389BE8524FC19B765B50E8F57EBE524DC6C668B27F21C46DF96D30D795CAE6921FF7A09375141131B8C5CABD5585D299521C7ABD57C3619C7A56CC235AD30AD9FF1736C3CD41B8FD3FD3DF536BB67B62093F92C5C4444F0A2F7D70CE3977D3BEAF77E345E471D9269CEF2E19FE1243ADEACC2C9EC71361137EDAF7FA9C7AC86C9656DAFA26DBE35EF4797CE95377446342C46B7BE77796DF9D7492BCC06C52CA6EA776F4BAF3738772BB60310B6358384345CA6E3288CE3269A3D87DB6E350D93C667EDBCD6306BCDB37DD0D0F10C7FCE2232594EC3EC38186F81754ED4324B39159B067169ACED1AF6BF9E8374A8832F866190613DAEFF9ED23A315BE45DC2A1F79163526B9ED4CC13D360FF6C759A46C730DE9FA4182F8B593C36E162FC300FA7092B75C585DA2B7567EA9F2C627EDB474BEDFCC46095326BAC5A8D8E59EB34CF53574F968B68BD9C93C7D93CEC90D397CDFA74335E9DC6AD3D8D9E57A76C800E46E884F67F0AF137F2EB6A3625B533C338637A62D6DAE3FA63F8786C86E3C971E3C10C8F1F1A93C9B1316D371EC3D6E4F1F1BC49DE7D9F8C57EF33946DCE647E351F2F9E5EC64FE1C551CFF78E9D9BA3CCBBACCE17470775A6CD1F9F0E0F2A4C1B91BD75AB5F1754A132BF7E78797CA4A3F2BA985CBC869B6C5536CFE48258FD7E96F32D1C475B583C80E4F0B6F162B9787D9EFD7B2BAD17E488566564DFFA81E73AC36C9D323FBCD0B09A2C9F9FE31B0EFAFF8813983FC61B3219CF595C8DD91C309F2F7F6C3AFBB78F7F148CAD931F5ABD28B0978B0595405A7EB424DD4BD7A78DBDEE5E92E3E363427C6778E70C59F38F482C78F1BFD85BFE573F705CF633C51D25E9D23AA740CF757B0153AFAD82ED4B625232A1A2189179F83D9C931A59AEC2052D98CD7C63F234FB1E2EE2D820ABE56C11856B7E9EE4F389D0AA0C284E966CE90CDB898D2CCD1E5F16933802DE6E4914328D1D6FEBBDBF0618DB29C85B04EF215F1D7F77C199D9C8CFDCB4F2992C488574728191B960B698CF1621D944E368932B825DC0B2764AA5913578C3BBA0BF4BEB5D479077DBEC7E9F09A7673A796E36FB3EEB9074E6CD4F3627CF279956645373F5B27E0AA7CBC9CBDB05D93AB0E49AE5FA21DBD28809354D2BDA25C935D3D7C5F87936C984543D0ED9B3FAFD2D4D5A5AF1673AC7C4E358B8FCDA0572FC3AFD9D9C6EDF3BED5165180E9D1BFB2BEBF21A6DD3747AEC2D486F413B7B3EDF6AC8EFA73944B44EE2AB438EBA47E41D9D0E27DFDEA6DCF79C3BD8F0BD6C58938EBCA3FCFBE3F56EEEED10DA88DD6F739751955A273DC3846D9BCDB9CBE2458C20539A993BE83A86CE49AFE471BD7C268E7166EC66069AE1EFF21DFAFE2453AD7A2BBE7B166EF6F7D784F713F2FB01829879C41FAA8C3A8771A50A313890911F0C5539B91EB555BA94530DC32AD9143BF0477452E859FD92202BF046B442657B249077C82ECBDBF71BE63D92153E5DFBFF32AC0743BB6FF9F934FE859C9CA49780FEEB66BE7CEA903F89FDD9A6C9B0DE4C56E14FBA367A0A233F8C226A127E23B2577213A9A5E7DF8F614467DDD9D39AE69A4D979903AAAF1B26B41B96A51B12D803A3FB81FDAF7B19FFCFB04F8ABB24B0BABD74981537F1A067FFBE4DF8F03B9598C9875850FF41E87A801A1C8F4C1F46EB70B51CD145E7E3ECE9651D8E9EA377EF6937B05F3E47A317E69246B47F17D3F17A4A1705D1FA25FCC05CC0287A5D85F417065A590C185FB1594F18F80379FB8101FCA18D5F5614FE8CDE0ADBFDC41081731F408BEB5087F5C91B8EE88ACAA7C6671B84EC8DBE6775A9E59C3D8FE930FE19BEC2819B30228BF007194F9855DDAF56B69B09DB59302920BDF664DDC499BCD2CB26BBB78FDB37CD506578088C0081712B66E4C4C9773CBA8A1D78DDB4F27326FBD44BA677C190266620C4F1ABEC609383CAC85E65E41E989C0C1DDAC02540E71E1D19A0227BEEA03F74FAFAC8CC444281AE1358A580F93AFAB79736EAD0C440C4344D90B8A31D2371477BE8741DC4667BC17074EB3B2960BFE7DEDA83DB4B1CF06D593248E707FBBB613AAF2A437B7E5E860E93872DBA7CBC5C8C71B8711E2371E3FC6AD8736EBA259A9D47BAD6C00AC443A44EB4FBA8750CBE0E9C41196466B4BB5DC6C38E1D05F5390C6E50EAB9D47809520FC4B0AD64D55382C164B12C834EA5A519AE655729457B3EFA5A6BDF7A7C723236F8E42472A4E4A19735C83273DC3A3B8FCFF360DB06A27D709D7D889151334CC338DC8ED036FD3B1E2CBF77171FACC0D57222C3D0B4831986A61DCC302AB283BB3240B30620C0F955C6481D7E87A29351ED203F1871ECA0CAC001EDA00E5232452B2221765088D4B1838A7594DB411D20629A02EDA00E1277B4E5765009A8620775C0303B28208374BE023BC8E763D841A55C84D841550902D8414524C40E2A220176509D28B3838A44881D
|
|
|
|
"mimetype" : "application/x-zip-compressed"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
2021-11-12 15:33:18 +02:00
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var buildGetTask11ResultMedia = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/results(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11,name='SAR_XML')/$value`,
|
|
|
|
Body: ``,
|
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|
|
|
|
|
2021-12-06 15:43:37 +02:00
|
|
|
var buildGetValues = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/values`,
|
|
|
|
Body: `{
|
|
|
|
"d": {
|
|
|
|
"results": [
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "PHASE",
|
|
|
|
"value": "AUNIT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "PACKAGES",
|
|
|
|
"value": "/BUILD/AUNIT_DUMMY_TESTS"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "MyId1",
|
|
|
|
"value": "AunitValue1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "MyId2",
|
|
|
|
"value": "AunitValue2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "BUILD_FRAMEWORK_MODE",
|
|
|
|
"value": "P"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
StatusCode: 200,
|
|
|
|
}
|
|
|
|
|
2022-07-07 08:44:51 +02:00
|
|
|
var buildGetValuesWithClient = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/values?sap-client=001`,
|
|
|
|
Body: `{
|
|
|
|
"d": {
|
|
|
|
"results": [
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "PHASE",
|
|
|
|
"value": "AUNIT"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"build_id": "AKO22FYOFYPOXHOBVKXUTX3A3Q",
|
|
|
|
"value_id": "SUN",
|
|
|
|
"value": "SUMMER"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}`,
|
|
|
|
StatusCode: 200,
|
|
|
|
}
|
|
|
|
|
2021-11-12 15:33:18 +02:00
|
|
|
var template = MockData{
|
|
|
|
Method: `GET`,
|
|
|
|
Url: ``,
|
|
|
|
Body: ``,
|
|
|
|
StatusCode: 200,
|
2021-03-01 14:51:44 +02:00
|
|
|
}
|