mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
6714794066
* add Step awsS3Upload * fix JSON Read * fix groovy wrapper * change credentials to secret text * Change credentials type to token * add cleanup for environment variables * Add AwsS3UploadCommand to piper.go * add documentation of awsS3Upload * Fix JSON String Example in Documentation * add the Upload of whole directories * add Logging to awsS3Upload.go * imporve Logging * fix and improve unit tests * fix non-existing-filepaths-Bug * fix windows filepaths * remove ... from logging * change step description * fix PR Tests * remove redundant code * try to run tests sequentially * fix file.Close * executed go mod tidy * requested changes * fix comments and awsCredentials * Update documentation/docs/steps/awsS3Upload.md Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> * use temporary files for unit tests * executed go generate Co-authored-by: ffeldmann <f.feldmann@sap.com> Co-authored-by: Oliver Feldmann <oliver.feldmann@sap.com> Co-authored-by: Thorsten Duda <thorsten.duda@sap.com>
18 lines
330 B
Go
18 lines
330 B
Go
package cmd
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestAwsS3UploadCommand(t *testing.T) {
|
|
t.Parallel()
|
|
|
|
testCmd := AwsS3UploadCommand()
|
|
|
|
// only high level testing performed - details are tested in step generation procedure
|
|
assert.Equal(t, "awsS3Upload", testCmd.Use, "command name incorrect")
|
|
|
|
}
|