You've already forked sap-jenkins-library
mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-09-16 09:26:22 +02:00
Delete npm IT as it is flakey (#1475)
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
// +build integration
|
||||
// can be execute with go test -tags=integration ./integration/...
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/SAP/jenkins-library/pkg/command"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestNpmExecuteScripts(t *testing.T) {
|
||||
cmd := command.Command{}
|
||||
cmd.SetDir("testdata/TestNpmIntegration")
|
||||
|
||||
piperOptions := []string{
|
||||
"npmExecuteScripts",
|
||||
"--install",
|
||||
"--runScripts=ci-build,ci-backend-unit-test",
|
||||
}
|
||||
|
||||
var commandOutput bytes.Buffer
|
||||
cmd.Stdout(&commandOutput)
|
||||
cmd.Stderr(&commandOutput)
|
||||
|
||||
err := cmd.RunExecutable(getPiperExecutable(), piperOptions...)
|
||||
assert.NoError(t, err, "Calling piper with arguments %v failed.", piperOptions)
|
||||
assert.Contains(t, commandOutput.String(), "Discovered pre-configured npm registry https://example.com")
|
||||
}
|
@@ -1 +0,0 @@
|
||||
@sap:registry=https://example.com
|
5
integration/testdata/TestNpmIntegration/package-lock.json
generated
vendored
5
integration/testdata/TestNpmIntegration/package-lock.json
generated
vendored
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "a",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"name": "a",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"ci-build": "echo build"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user