mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-01 13:18:04 +02:00
81c8553d6a
* initial commit of yaml file * initial commit for HaDoLint in GO * add helper function to load file from url * load config file * write report information to disk * comment the code * refactor groovy code * remove download function from FileUtils * use http.Downloader * rename step files * update generated files * update generated files * remove duplicate commands * add credentials for config url * add generated test file * reuse piperExecuteBin functions * correct step name * update go step * deactivate test * fix import * use differing go step name * rename step * correct result publishing * correct command name * expose tls insecure flag * hand through error * disable tls verification * fix tls disabling * use credentials * mow * reformat * add qgate only if set * correct report name * remove old defaults * add qgate to defaults * handle report name * restore default * remove unused step config * use piperExecuteBin * remove obsolete type * add test cases * remove groovy tests * move client parameter handling to run function * use custom interfaces and mockery * remove commented code * correct struct names * rename parameter dockerfile * add further asserts * cleanup * change file permission to read/write * remove tokenize * add further comments * init http client only if necessary * add todo * Revert "rename parameter dockerfile" This reverts commit 2a570685b89317d20217217894d68242d4620031. * add alias for dockerfile parameter * correct test case * Apply suggestions from code review Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com> * add comment about mock assertions Co-authored-by: Stephan Aßmus <stephan.assmus@sap.com>
35 lines
929 B
Go
35 lines
929 B
Go
// Code generated by mockery v2.0.0-alpha.13. DO NOT EDIT.
|
|
|
|
package mocks
|
|
|
|
import (
|
|
http "net/http"
|
|
|
|
pkghttp "github.com/SAP/jenkins-library/pkg/http"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// HadolintClient is an autogenerated mock type for the HadolintClient type
|
|
type HadolintClient struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// DownloadFile provides a mock function with given fields: url, filename, header, cookies
|
|
func (_m *HadolintClient) DownloadFile(url string, filename string, header http.Header, cookies []*http.Cookie) error {
|
|
ret := _m.Called(url, filename, header, cookies)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(string, string, http.Header, []*http.Cookie) error); ok {
|
|
r0 = rf(url, filename, header, cookies)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// SetOptions provides a mock function with given fields: options
|
|
func (_m *HadolintClient) SetOptions(options pkghttp.ClientOptions) {
|
|
_m.Called(options)
|
|
}
|