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 {
	//Key = HTTP-Method + Url
	Data map[string][]http.Response
}

// MockData: data for the mockClient
type MockData struct {
	Method     string
	Url        string
	Body       string
	StatusCode int
	Header     http.Header
}

// 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
func (mc *MockClient) AddResponse(Method, Url string, response http.Response) {
	responseList, ok := mc.Data[Method+Url]
	if !ok {
		responseList = make([]http.Response, 0)
	}
	responseList = append(responseList, response)

	mc.Data[Method+Url] = responseList
}

// 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{
		StatusCode: http.StatusOK,
		Header:     http.Header{},
		Body:       ioutil.NopCloser(bytes.NewReader([]byte(Body))),
	})
}

// AddBody : adds a response with the given data to the mock lib
func (mc *MockClient) AddBody(Method, Url, Body string, StatusCode int, header http.Header) {
	mc.AddResponse(Method, Url, http.Response{
		StatusCode: StatusCode,
		Header:     header,
		Body:       ioutil.NopCloser(bytes.NewReader([]byte(Body))),
	})
}

// 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))),
	})
}

func (mc *MockClient) getResponse(Method, Url string) (http.Response, bool) {
	responseList, ok := mc.Data[Method+Url]
	if !ok {
		return http.Response{}, false
	}
	response := responseList[0]
	if len(responseList) > 1 {
		mc.Data[Method+Url] = responseList[1:]
	} else {
		delete(mc.Data, Method+Url)
	}

	return response, true
}

// SetOptions : dummy as of now
func (mc *MockClient) SetOptions(opts piperhttp.ClientOptions) {}

// SendRequest sets a HTTP response for a client mock
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)
	if !ok {
		//return nil, errors.New("No Mock data for given Method+Url")
		return nil, fmt.Errorf("No Mock data for %s", Method+Url)
	}
	return &response, nil
}

// DownloadFile : Empty file download
func (mc *MockClient) DownloadFile(Url, filename string, header http.Header, cookies []*http.Cookie) error {
	return nil
}

/***************************************
*** BuildMock
***************************************/

// GetBuildMockClient : Constructs a Mock Client with example build Requests/Responses
func GetBuildMockClient() MockClient {
	mc := NewMockClient()

	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)
	mc.AddData(buildGetValues)

	return mc
}

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
}

// 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
}

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=="}},
}

var buildHeadWithClient = MockData{
	Method:     `HEAD`,
	Url:        `/sap/opu/odata/BUILD/CORE_SRV?sap-client=001`,
	Body:       buildHead.Body,
	StatusCode: 200,
	Header:     buildHead.Header,
}

var buildPost = MockData{
	Method: `POST`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/builds`,
	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" : "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" : [
			]
		}
	}
}`,
	StatusCode: 201,
}

var buildPostWithClient = MockData{
	Method:     `POST`,
	Url:        `/sap/opu/odata/BUILD/CORE_SRV/builds?sap-client=001`,
	Body:       buildPost.Body,
	StatusCode: 201,
}

var buildGet1 = 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" : "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"
			}
		}
	}
}`,
	StatusCode: 200,
}

var buildGet2 = 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" : "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"
			}
		}
	}
}`,
	StatusCode: 200,
}

var buildGet2WithClient = MockData{
	Method:     `GET`,
	Url:        `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')?sap-client=001`,
	Body:       buildGet2.Body,
	StatusCode: 200,
}

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,
}

var buildGetTasks = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/builds('AKO22FYOFYPOXHOBVKXUTX3A3Q')/tasks`,
	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=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"
				}
			}
		}
	]
	}
}`,
	StatusCode: 200,
}

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,
}

var buildGetTask0Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/logs`,
	Body: `{
		"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

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,
}

var buildGetTask1Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask2Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)/logs`,
	Body: `{
	"d" : {
		"results" : [
			]
	}
}`,
	StatusCode: 200,
}

var buildGetTask3Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask4Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask5Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask6Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask7Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask8Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask9Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask10Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask11Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask12Logs = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/logs`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask0Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=0)/results`,
	Body: `{
	"d" : {
		"results" : [
		]
	}
}`,
	StatusCode: 200,
}
var buildGetTask1Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=1)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask2Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=2)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask3Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=3)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask4Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=4)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask5Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=5)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask6Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=6)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask7Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=7)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask8Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=8)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask9Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=9)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask10Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=10)/results`,
	Body: `{
		"d" : {
			"results" : [
			]
		}
	}`,
	StatusCode: 200,
}
var buildGetTask11Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=11)/results`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}
var buildGetTask12Result = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/results`,
	Body: `{
	"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"
			}
		]
	}
}`,
	StatusCode: 200,
}

var buildGetTask12ResultOrig = MockData{
	Method: `GET`,
	Url:    `/sap/opu/odata/BUILD/CORE_SRV/tasks(build_id='AKO22FYOFYPOXHOBVKXUTX3A3Q',task_id=12)/results`,
	Body: `{
	"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" : "[encoded data, 98492 characters]",
				"mimetype" : "application/x-zip-compressed"
			}
		]
	}
}`,
	StatusCode: 200,
}

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,
}

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,
}

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,
}

var template = MockData{
	Method:     `GET`,
	Url:        ``,
	Body:       ``,
	StatusCode: 200,
}
