1
0
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:
Florian Wilhelm
2020-04-28 17:01:06 +02:00
committed by GitHub
parent ba086f1e9d
commit 60e06a864c
4 changed files with 0 additions and 45 deletions

View File

@@ -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")
}

View File

@@ -1 +0,0 @@
@sap:registry=https://example.com

View File

@@ -1,5 +0,0 @@
{
"name": "a",
"version": "1.0.0",
"lockfileVersion": 1
}

View File

@@ -1,9 +0,0 @@
{
"name": "a",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"ci-build": "echo build"
}
}