summaryrefslogtreecommitdiff
path: root/tests/specs/npm/npmrc_tarball_other_server/fail
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/npm/npmrc_tarball_other_server/fail')
-rw-r--r--tests/specs/npm/npmrc_tarball_other_server/fail/.npmrc2
-rw-r--r--tests/specs/npm/npmrc_tarball_other_server/fail/main.js3
-rw-r--r--tests/specs/npm/npmrc_tarball_other_server/fail/main.out11
-rw-r--r--tests/specs/npm/npmrc_tarball_other_server/fail/package.json7
4 files changed, 23 insertions, 0 deletions
diff --git a/tests/specs/npm/npmrc_tarball_other_server/fail/.npmrc b/tests/specs/npm/npmrc_tarball_other_server/fail/.npmrc
new file mode 100644
index 000000000..de3704b92
--- /dev/null
+++ b/tests/specs/npm/npmrc_tarball_other_server/fail/.npmrc
@@ -0,0 +1,2 @@
+@denotest:registry=http://localhost:4261/
+//localhost:4261/:_authToken=private-reg-token
diff --git a/tests/specs/npm/npmrc_tarball_other_server/fail/main.js b/tests/specs/npm/npmrc_tarball_other_server/fail/main.js
new file mode 100644
index 000000000..176874aa5
--- /dev/null
+++ b/tests/specs/npm/npmrc_tarball_other_server/fail/main.js
@@ -0,0 +1,3 @@
+import getValue from "@denotest/tarballs-privateserver2";
+
+console.log(getValue());
diff --git a/tests/specs/npm/npmrc_tarball_other_server/fail/main.out b/tests/specs/npm/npmrc_tarball_other_server/fail/main.out
new file mode 100644
index 000000000..08a84a477
--- /dev/null
+++ b/tests/specs/npm/npmrc_tarball_other_server/fail/main.out
@@ -0,0 +1,11 @@
+Download http://localhost:4261/@denotest/tarballs-privateserver2
+Download http://localhost:4262/@denotest/tarballs-privateserver2/1.0.0.tgz
+error: Failed caching npm package '@denotest/tarballs-privateserver2@1.0.0'.
+
+Caused by:
+ No auth for tarball URI, but present for scoped registry.
+
+ Tarball URI: http://localhost:4262/@denotest/tarballs-privateserver2/1.0.0.tgz
+ Scope URI: http://localhost:4261/
+
+ More info here: https://github.com/npm/cli/wiki/%22No-auth-for-URI,-but-auth-present-for-scoped-registry%22
diff --git a/tests/specs/npm/npmrc_tarball_other_server/fail/package.json b/tests/specs/npm/npmrc_tarball_other_server/fail/package.json
new file mode 100644
index 000000000..2effd6bda
--- /dev/null
+++ b/tests/specs/npm/npmrc_tarball_other_server/fail/package.json
@@ -0,0 +1,7 @@
+{
+ "name": "npmrc_test",
+ "version": "0.0.1",
+ "dependencies": {
+ "@denotest/tarballs-privateserver2": "1.0.0"
+ }
+}