Skip to content

Commit dcdae5c

Browse files
authored
Merge pull request #758 from sirosen/hostname-format-check-empty-string
test: hostname format check fails on empty string
2 parents 82a0774 + db21d21 commit dcdae5c

File tree

11 files changed

+55
-0
lines changed

11 files changed

+55
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@
120120
"description": "single label ending with digit",
121121
"data": "hostnam3",
122122
"valid": true
123+
},
124+
{
125+
"description": "empty string",
126+
"data": "",
127+
"valid": false
123128
}
124129
]
125130
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@
326326
"description": "single label ending with digit",
327327
"data": "hostnam3",
328328
"valid": true
329+
},
330+
{
331+
"description": "empty string",
332+
"data": "",
333+
"valid": false
329334
}
330335
]
331336
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@
120120
"description": "single label ending with digit",
121121
"data": "hostnam3",
122122
"valid": true
123+
},
124+
{
125+
"description": "empty string",
126+
"data": "",
127+
"valid": false
123128
}
124129
]
125130
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@
326326
"description": "single label ending with digit",
327327
"data": "hostnam3",
328328
"valid": true
329+
},
330+
{
331+
"description": "empty string",
332+
"data": "",
333+
"valid": false
329334
}
330335
]
331336
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,11 @@
120120
"description": "single label ending with digit",
121121
"data": "hostnam3",
122122
"valid": true
123+
},
124+
{
125+
"description": "empty string",
126+
"data": "",
127+
"valid": false
123128
}
124129
]
125130
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,11 @@
326326
"description": "single label ending with digit",
327327
"data": "hostnam3",
328328
"valid": true
329+
},
330+
{
331+
"description": "empty string",
332+
"data": "",
333+
"valid": false
329334
}
330335
]
331336
}

tests/draft3/optional/format/host-name.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@
5757
"description": "exceeds maximum label length",
5858
"data": "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijkl.com",
5959
"valid": false
60+
},
61+
{
62+
"description": "empty string",
63+
"data": "",
64+
"valid": false
6065
}
6166
]
6267
}

tests/draft4/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@
112112
"description": "single label ending with digit",
113113
"data": "hostnam3",
114114
"valid": true
115+
},
116+
{
117+
"description": "empty string",
118+
"data": "",
119+
"valid": false
115120
}
116121
]
117122
}

tests/draft6/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@
112112
"description": "single label ending with digit",
113113
"data": "hostnam3",
114114
"valid": true
115+
},
116+
{
117+
"description": "empty string",
118+
"data": "",
119+
"valid": false
115120
}
116121
]
117122
}

tests/draft7/optional/format/hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@
112112
"description": "single label ending with digit",
113113
"data": "hostnam3",
114114
"valid": true
115+
},
116+
{
117+
"description": "empty string",
118+
"data": "",
119+
"valid": false
115120
}
116121
]
117122
}

tests/draft7/optional/format/idn-hostname.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,11 @@
318318
"description": "single label ending with digit",
319319
"data": "hostnam3",
320320
"valid": true
321+
},
322+
{
323+
"description": "empty string",
324+
"data": "",
325+
"valid": false
321326
}
322327
]
323328
}

0 commit comments

Comments
 (0)