summaryrefslogtreecommitdiff
path: root/tests/testdata/run
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2024-05-28 14:58:43 -0400
committerGitHub <noreply@github.com>2024-05-28 14:58:43 -0400
commit448fe67b7a2142f62332b651f9d215534dceb1f5 (patch)
tree3cfc763f39bf275a537e6228767b3e43866f5d0f /tests/testdata/run
parentcd8f5f53f7616e4c74de0f1ff5eadd6ef024118a (diff)
feat(vendor): support modifying remote files in vendor folder without checksum errors (#23979)
Includes: * https://github.com/denoland/deno_graph/pull/486 * https://github.com/denoland/deno_graph/pull/488 * https://github.com/denoland/deno_lockfile/pull/25 * https://github.com/denoland/deno_lockfile/pull/22 * https://github.com/denoland/deno_graph/pull/483 * https://github.com/denoland/deno_graph/pull/470
Diffstat (limited to 'tests/testdata/run')
-rw-r--r--tests/testdata/run/auto_discover_lockfile/deno.json3
-rw-r--r--tests/testdata/run/auto_discover_lockfile/deno.lock7
-rw-r--r--tests/testdata/run/auto_discover_lockfile/main.out5
-rw-r--r--tests/testdata/run/auto_discover_lockfile/main.ts1
-rw-r--r--tests/testdata/run/config_file_lock_boolean/deno.lock7
-rw-r--r--tests/testdata/run/config_file_lock_boolean/false.json3
-rw-r--r--tests/testdata/run/config_file_lock_boolean/false.main.out2
-rw-r--r--tests/testdata/run/config_file_lock_boolean/main.ts1
-rw-r--r--tests/testdata/run/config_file_lock_boolean/true.json3
-rw-r--r--tests/testdata/run/config_file_lock_boolean/true.main.out3
-rw-r--r--tests/testdata/run/config_file_lock_path.json3
-rw-r--r--tests/testdata/run/config_file_lock_path.out3
-rw-r--r--tests/testdata/run/lock_check_err.json4
-rw-r--r--tests/testdata/run/lock_check_err.out3
-rw-r--r--tests/testdata/run/lock_check_err2.json19
-rw-r--r--tests/testdata/run/lock_check_err2.out3
-rw-r--r--tests/testdata/run/lock_dynamic_imports.json6
-rw-r--r--tests/testdata/run/lock_dynamic_imports.out4
-rw-r--r--tests/testdata/run/lock_v2_check_err.json7
-rw-r--r--tests/testdata/run/lock_v2_check_err.out3
-rw-r--r--tests/testdata/run/lock_v2_check_err2.json13
-rw-r--r--tests/testdata/run/lock_v2_check_err2.out3
-rw-r--r--tests/testdata/run/lock_v2_dynamic_imports.json9
-rw-r--r--tests/testdata/run/lock_v2_dynamic_imports.out4
24 files changed, 11 insertions, 108 deletions
diff --git a/tests/testdata/run/auto_discover_lockfile/deno.json b/tests/testdata/run/auto_discover_lockfile/deno.json
deleted file mode 100644
index 90faa728a..000000000
--- a/tests/testdata/run/auto_discover_lockfile/deno.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "tasks": {}
-}
diff --git a/tests/testdata/run/auto_discover_lockfile/deno.lock b/tests/testdata/run/auto_discover_lockfile/deno.lock
deleted file mode 100644
index 059f66789..000000000
--- a/tests/testdata/run/auto_discover_lockfile/deno.lock
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": "2",
- "remote": {
- "http://localhost:4545/subdir/mod2.ts": "cae1d3e9f3c38cd415ff52dff854be8f3d17d35f8d7b3d285e813fb0f6393a2f",
- "http://localhost:4545/subdir/print_hello.ts": "foobar"
- }
-}
diff --git a/tests/testdata/run/auto_discover_lockfile/main.out b/tests/testdata/run/auto_discover_lockfile/main.out
deleted file mode 100644
index 28f4724e9..000000000
--- a/tests/testdata/run/auto_discover_lockfile/main.out
+++ /dev/null
@@ -1,5 +0,0 @@
-Download http://localhost:4545/subdir/mod2.ts
-Download http://localhost:4545/subdir/print_hello.ts
-error: The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://localhost:4545/subdir/print_hello.ts
- Lock file: [WILDCARD]auto_discover_lockfile[WILDCARD]deno.lock
diff --git a/tests/testdata/run/auto_discover_lockfile/main.ts b/tests/testdata/run/auto_discover_lockfile/main.ts
deleted file mode 100644
index baa52775d..000000000
--- a/tests/testdata/run/auto_discover_lockfile/main.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "http://localhost:4545/subdir/mod2.ts";
diff --git a/tests/testdata/run/config_file_lock_boolean/deno.lock b/tests/testdata/run/config_file_lock_boolean/deno.lock
deleted file mode 100644
index 059f66789..000000000
--- a/tests/testdata/run/config_file_lock_boolean/deno.lock
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": "2",
- "remote": {
- "http://localhost:4545/subdir/mod2.ts": "cae1d3e9f3c38cd415ff52dff854be8f3d17d35f8d7b3d285e813fb0f6393a2f",
- "http://localhost:4545/subdir/print_hello.ts": "foobar"
- }
-}
diff --git a/tests/testdata/run/config_file_lock_boolean/false.json b/tests/testdata/run/config_file_lock_boolean/false.json
deleted file mode 100644
index 358b7d299..000000000
--- a/tests/testdata/run/config_file_lock_boolean/false.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "lock": false
-}
diff --git a/tests/testdata/run/config_file_lock_boolean/false.main.out b/tests/testdata/run/config_file_lock_boolean/false.main.out
deleted file mode 100644
index 0d8f0a237..000000000
--- a/tests/testdata/run/config_file_lock_boolean/false.main.out
+++ /dev/null
@@ -1,2 +0,0 @@
-Download http://localhost:4545/subdir/mod2.ts
-Download http://localhost:4545/subdir/print_hello.ts
diff --git a/tests/testdata/run/config_file_lock_boolean/main.ts b/tests/testdata/run/config_file_lock_boolean/main.ts
deleted file mode 100644
index baa52775d..000000000
--- a/tests/testdata/run/config_file_lock_boolean/main.ts
+++ /dev/null
@@ -1 +0,0 @@
-import "http://localhost:4545/subdir/mod2.ts";
diff --git a/tests/testdata/run/config_file_lock_boolean/true.json b/tests/testdata/run/config_file_lock_boolean/true.json
deleted file mode 100644
index 090481af9..000000000
--- a/tests/testdata/run/config_file_lock_boolean/true.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "lock": true
-}
diff --git a/tests/testdata/run/config_file_lock_boolean/true.main.out b/tests/testdata/run/config_file_lock_boolean/true.main.out
deleted file mode 100644
index 313c0eb0c..000000000
--- a/tests/testdata/run/config_file_lock_boolean/true.main.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://localhost:4545/subdir/print_hello.ts
- Lock file: [WILDCARD]deno.lock
diff --git a/tests/testdata/run/config_file_lock_path.json b/tests/testdata/run/config_file_lock_path.json
deleted file mode 100644
index 2c393f76e..000000000
--- a/tests/testdata/run/config_file_lock_path.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "lock": "./lock_check_err2.json"
-}
diff --git a/tests/testdata/run/config_file_lock_path.out b/tests/testdata/run/config_file_lock_path.out
deleted file mode 100644
index 97d35337f..000000000
--- a/tests/testdata/run/config_file_lock_path.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://localhost:4545/subdir/mt_text_ecmascript.j3.js
- Lock file: [WILDCARD]lock_check_err2.json
diff --git a/tests/testdata/run/lock_check_err.json b/tests/testdata/run/lock_check_err.json
deleted file mode 100644
index fc6c2d45c..000000000
--- a/tests/testdata/run/lock_check_err.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "http://127.0.0.1:4545/subdir/print_hello.ts": "fa6692c8f9ff3fb107e773c3ece5274e9d08be282867a1e3ded1d9c00fcaa63c",
- "http://127.0.0.1:4545/run/003_relative_import.ts": "bad"
-}
diff --git a/tests/testdata/run/lock_check_err.out b/tests/testdata/run/lock_check_err.out
deleted file mode 100644
index e4cc7b81a..000000000
--- a/tests/testdata/run/lock_check_err.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://127.0.0.1:4545/run/003_relative_import.ts
- Lock file: run/lock_check_err.json
diff --git a/tests/testdata/run/lock_check_err2.json b/tests/testdata/run/lock_check_err2.json
index a59cbc9e3..14d8b7117 100644
--- a/tests/testdata/run/lock_check_err2.json
+++ b/tests/testdata/run/lock_check_err2.json
@@ -1,10 +1,13 @@
{
- "http://localhost:4545/subdir/mt_application_ecmascript.j2.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_application_x_javascript.j4.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_application_x_typescript.t4.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_text_ecmascript.j3.js": "bad",
- "http://localhost:4545/subdir/mt_text_javascript.j1.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_text_typescript.t1.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_video_mp2t.t3.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_video_vdn.t2.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18"
+ "version": "3",
+ "remote": {
+ "http://localhost:4545/subdir/mt_application_ecmascript.j2.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_application_x_javascript.j4.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_application_x_typescript.t4.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_text_ecmascript.j3.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_text_javascript.j1.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_text_typescript.t1.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_video_mp2t.t3.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
+ "http://localhost:4545/subdir/mt_video_vdn.t2.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18"
+ }
}
diff --git a/tests/testdata/run/lock_check_err2.out b/tests/testdata/run/lock_check_err2.out
deleted file mode 100644
index 065c7434b..000000000
--- a/tests/testdata/run/lock_check_err2.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://localhost:4545/subdir/mt_text_ecmascript.j3.js
- Lock file: run/lock_check_err2.json
diff --git a/tests/testdata/run/lock_dynamic_imports.json b/tests/testdata/run/lock_dynamic_imports.json
deleted file mode 100644
index 0269b9409..000000000
--- a/tests/testdata/run/lock_dynamic_imports.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "http://127.0.0.1:4545/run/013_dynamic_import.ts": "3f83e653329dc1f963761a986997d710b9763f667fc243eef89b3a5decacda30",
- "http://127.0.0.1:4545/subdir/mod1.ts": "bfc1037b02c99abc20367f739bca7455813a5950066abd77965bff33b6eece0f",
- "http://127.0.0.1:4545/subdir/print_hello.ts": "fa6692c8f9ff3fb107e773c3ece5274e9d08be282867a1e3ded1d9c00fcaa63c",
- "http://127.0.0.1:4545/subdir/subdir2/mod2.ts": "bad"
-}
diff --git a/tests/testdata/run/lock_dynamic_imports.out b/tests/testdata/run/lock_dynamic_imports.out
deleted file mode 100644
index acc65c8e6..000000000
--- a/tests/testdata/run/lock_dynamic_imports.out
+++ /dev/null
@@ -1,4 +0,0 @@
-[WILDCARD]
-error: The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://127.0.0.1:4545/subdir/subdir2/mod2.ts
- Lock file: run/lock_dynamic_imports.json
diff --git a/tests/testdata/run/lock_v2_check_err.json b/tests/testdata/run/lock_v2_check_err.json
deleted file mode 100644
index 6bd6491c6..000000000
--- a/tests/testdata/run/lock_v2_check_err.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "version": "2",
- "remote": {
- "http://127.0.0.1:4545/subdir/print_hello.ts": "fa6692c8f9ff3fb107e773c3ece5274e9d08be282867a1e3ded1d9c00fcaa63c",
- "http://127.0.0.1:4545/run/003_relative_import.ts": "bad"
- }
-}
diff --git a/tests/testdata/run/lock_v2_check_err.out b/tests/testdata/run/lock_v2_check_err.out
deleted file mode 100644
index 28ad01cf4..000000000
--- a/tests/testdata/run/lock_v2_check_err.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://127.0.0.1:4545/run/003_relative_import.ts
- Lock file: run/lock_v2_check_err.json
diff --git a/tests/testdata/run/lock_v2_check_err2.json b/tests/testdata/run/lock_v2_check_err2.json
deleted file mode 100644
index 30fbcdf4b..000000000
--- a/tests/testdata/run/lock_v2_check_err2.json
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- "version": "2",
- "remote": {
- "http://localhost:4545/subdir/mt_application_ecmascript.j2.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_application_x_javascript.j4.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_application_x_typescript.t4.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_text_ecmascript.j3.js": "bad",
- "http://localhost:4545/subdir/mt_text_javascript.j1.js": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_text_typescript.t1.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_video_mp2t.t3.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18",
- "http://localhost:4545/subdir/mt_video_vdn.t2.ts": "3a3e002e2f92dc8f045bd4a7c66b4791453ad0417b038dd2b2d9d0f277c44f18"
- }
-}
diff --git a/tests/testdata/run/lock_v2_check_err2.out b/tests/testdata/run/lock_v2_check_err2.out
deleted file mode 100644
index 3d82cba27..000000000
--- a/tests/testdata/run/lock_v2_check_err2.out
+++ /dev/null
@@ -1,3 +0,0 @@
-[WILDCARD]The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://localhost:4545/subdir/mt_text_ecmascript.j3.js
- Lock file: run/lock_v2_check_err2.json
diff --git a/tests/testdata/run/lock_v2_dynamic_imports.json b/tests/testdata/run/lock_v2_dynamic_imports.json
deleted file mode 100644
index eadbee272..000000000
--- a/tests/testdata/run/lock_v2_dynamic_imports.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "version": "2",
- "remote": {
- "http://127.0.0.1:4545/run/013_dynamic_import.ts": "3f83e653329dc1f963761a986997d710b9763f667fc243eef89b3a5decacda30",
- "http://127.0.0.1:4545/subdir/mod1.ts": "bfc1037b02c99abc20367f739bca7455813a5950066abd77965bff33b6eece0f",
- "http://127.0.0.1:4545/subdir/print_hello.ts": "fa6692c8f9ff3fb107e773c3ece5274e9d08be282867a1e3ded1d9c00fcaa63c",
- "http://127.0.0.1:4545/subdir/subdir2/mod2.ts": "bad"
- }
-}
diff --git a/tests/testdata/run/lock_v2_dynamic_imports.out b/tests/testdata/run/lock_v2_dynamic_imports.out
deleted file mode 100644
index 36c2c9b5c..000000000
--- a/tests/testdata/run/lock_v2_dynamic_imports.out
+++ /dev/null
@@ -1,4 +0,0 @@
-[WILDCARD]
-error: The source code is invalid, as it does not match the expected hash in the lock file.
- Specifier: http://127.0.0.1:4545/subdir/subdir2/mod2.ts
- Lock file: run/lock_v2_dynamic_imports.json