mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-02-21 19:48:53 +02:00
fixed helper test
This commit is contained in:
parent
85570095c5
commit
b5b4f60bc4
@ -33,11 +33,11 @@ type ContextDefaultParameters struct {
|
||||
}
|
||||
|
||||
// ReadPipelineContextDefaultData loads step definition in yaml format
|
||||
func (m *ContextDefaultData) readPipelineContextDefaultData(metadata io.ReadCloser) {
|
||||
func (c *ContextDefaultData) readPipelineContextDefaultData(metadata io.ReadCloser) {
|
||||
defer metadata.Close()
|
||||
content, err := ioutil.ReadAll(metadata)
|
||||
checkError(err)
|
||||
err = yaml.Unmarshal(content, &m)
|
||||
err = yaml.Unmarshal(content, &c)
|
||||
checkError(err)
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ func writeFileMock(filename string, data []byte, perm os.FileMode) error {
|
||||
|
||||
func TestProcessMetaFiles(t *testing.T) {
|
||||
|
||||
ProcessMetaFiles([]string{"test.yaml"}, configOpenFileMock, writeFileMock, "")
|
||||
ProcessMetaFiles([]string{"test.yaml"}, configOpenFileMock, writeFileMock, "", false, "placeholder")
|
||||
|
||||
t.Run("step code", func(t *testing.T) {
|
||||
goldenFilePath := filepath.Join("testdata", t.Name()+"_generated.golden")
|
||||
|
Loading…
x
Reference in New Issue
Block a user