forked from denoland/deno
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
15 changes: 15 additions & 0 deletions
15
tests/specs/run/net_descriptor_invalid_with_special_characters/__test__.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"tempDir": true, | ||
"steps": [ | ||
{ | ||
"args": " run --allow-read --allow-env --allow-write=notion-next --allow-net=api.notion.com,www.google.com,*.amazon.com main.js", | ||
"output": "err_i.out", | ||
"exitCode": 1 | ||
}, | ||
{ | ||
"args": " run --allow-net main.js", | ||
"output": "err_ii.out", | ||
"exitCode": 1 | ||
} | ||
] | ||
} |
4 changes: 4 additions & 0 deletions
4
tests/specs/run/net_descriptor_invalid_with_special_characters/err_i.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
error: Failed to parse *.amazon.com | ||
|
||
Caused by: | ||
invalid char found in FQDN |
2 changes: 2 additions & 0 deletions
2
tests/specs/run/net_descriptor_invalid_with_special_characters/err_ii.out
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
error: Uncaught (in promise) Error: No such host is known. (os error 11001) | ||
at async Object.connect (ext:deno_net/01_net.js:587:55) |
2 changes: 2 additions & 0 deletions
2
tests/specs/run/net_descriptor_invalid_with_special_characters/main.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Deno.connect({hostname:'api.notion.com.', port: 443}); | ||
Deno.connect({hostname:'*.amazon.com.', port: 443}); |