Skip to content

Commit e9b2015

Browse files
committed
test plain single label hostnames
Signed-off-by: Stephan Wurm <[email protected]>
1 parent c8b5709 commit e9b2015

File tree

6 files changed

+30
-0
lines changed

6 files changed

+30
-0
lines changed

tests/draft-next/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@
9696
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
9797
"valid": false
9898
},
99+
{
100+
"description": "single label",
101+
"data": "hostname",
102+
"valid": true
103+
},
99104
{
100105
"description": "single label with hyphen",
101106
"data": "host-name",

tests/draft2019-09/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@
9696
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
9797
"valid": false
9898
},
99+
{
100+
"description": "single label",
101+
"data": "hostname",
102+
"valid": true
103+
},
99104
{
100105
"description": "single label with hyphen",
101106
"data": "host-name",

tests/draft2020-12/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@
9696
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
9797
"valid": false
9898
},
99+
{
100+
"description": "single label",
101+
"data": "hostname",
102+
"valid": true
103+
},
99104
{
100105
"description": "single label with hyphen",
101106
"data": "host-name",

tests/draft4/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
9494
"valid": false
9595
},
96+
{
97+
"description": "single label",
98+
"data": "hostname",
99+
"valid": true
100+
},
96101
{
97102
"description": "single label with hyphen",
98103
"data": "host-name",

tests/draft6/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
9494
"valid": false
9595
},
96+
{
97+
"description": "single label",
98+
"data": "hostname",
99+
"valid": true
100+
},
96101
{
97102
"description": "single label with hyphen",
98103
"data": "host-name",

tests/draft7/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@
9393
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
9494
"valid": false
9595
},
96+
{
97+
"description": "single label",
98+
"data": "hostname",
99+
"valid": true
100+
},
96101
{
97102
"description": "single label with hyphen",
98103
"data": "host-name",

0 commit comments

Comments
 (0)