From 30163e4b9e9b59c43614c0672dd2b3c964a018a7 Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Wed, 12 Jul 2023 16:56:28 +1000 Subject: [PATCH] remove extraneous '.' --- tests/age-parse.mjs | 12 ++++++------ tests/cc-response.mjs | 2 +- tests/conditional-etag.mjs | 28 ++++++++++++++-------------- tests/conditional-lm.mjs | 6 +++--- tests/expires-parse.mjs | 32 ++++++++++++++++---------------- tests/stale.mjs | 6 +++--- tests/status.mjs | 4 ++-- tests/update304.mjs | 6 +++--- 8 files changed, 48 insertions(+), 48 deletions(-) diff --git a/tests/age-parse.mjs b/tests/age-parse.mjs index b3e89c2..f304b32 100644 --- a/tests/age-parse.mjs +++ b/tests/age-parse.mjs @@ -7,7 +7,7 @@ export default spec_anchors: ['field.age', 'expiration.model'], tests: [ { - name: 'HTTP cache should ignore an `Age` header with a non-numeric value.', + name: 'HTTP cache should ignore an `Age` header with a non-numeric value', id: 'age-parse-nonnumeric', depends_on: ['freshness-max-age-age'], requests: [ @@ -26,7 +26,7 @@ export default ] }, { - name: 'HTTP cache should ignore an `Age` header with a negative value.', + name: 'HTTP cache should ignore an `Age` header with a negative value', id: 'age-parse-negative', depends_on: ['freshness-max-age-age'], requests: [ @@ -45,7 +45,7 @@ export default ] }, { - name: 'HTTP cache should ignore an `Age` header with a float value.', + name: 'HTTP cache should ignore an `Age` header with a float value', id: 'age-parse-float', depends_on: ['freshness-max-age-age'], requests: [ @@ -121,7 +121,7 @@ export default ] }, { - name: 'HTTP cache should consider a response with a single `Age` header line `old, 0` to be stale.', + name: 'HTTP cache should consider a response with a single `Age` header line `old, 0` to be stale', id: 'age-parse-suffix', depends_on: ['freshness-max-age-age'], requests: [ @@ -140,7 +140,7 @@ export default ] }, { - name: 'HTTP cache should consider a response with a single `Age` header line `0, old` to be fresh.', + name: 'HTTP cache should consider a response with a single `Age` header line `0, old` to be fresh', id: 'age-parse-prefix', depends_on: ['freshness-max-age-age'], requests: [ @@ -179,7 +179,7 @@ export default ] }, { - name: 'HTTP cache should use the first line in a response with multiple `Age` header lines: `0`, `old`.', + name: 'HTTP cache should use the first line in a response with multiple `Age` header lines: `0`, `old`', id: 'age-parse-prefix-twoline', depends_on: ['freshness-max-age-age'], requests: [ diff --git a/tests/cc-response.mjs b/tests/cc-response.mjs index ee3c9c4..12704eb 100644 --- a/tests/cc-response.mjs +++ b/tests/cc-response.mjs @@ -350,7 +350,7 @@ export default ] }, { - name: 'A HTTP cache MUST revalidate a stale response with `Cache-Control: immutable`.', + name: 'A HTTP cache MUST revalidate a stale response with `Cache-Control: immutable`', id: 'cc-resp-immutable-stale', browser_only: true, requests: [ diff --git a/tests/conditional-etag.mjs b/tests/conditional-etag.mjs index 962ead6..ec61f6c 100644 --- a/tests/conditional-etag.mjs +++ b/tests/conditional-etag.mjs @@ -5,7 +5,7 @@ export default { spec_anchors: ['validation.model'], tests: [ { - name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag`.', + name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag`', id: 'conditional-etag-strong-respond', kind: 'optimal', browser_skip: true, @@ -28,7 +28,7 @@ export default { ] }, { - name: 'HTTP cache must include `ETag` in a `304 Not Modified`.', + name: 'HTTP cache must include `ETag` in a `304 Not Modified`', id: 'conditional-304-etag', depends_on: ['conditional-etag-strong-respond'], browser_skip: true, @@ -107,7 +107,7 @@ export default { ] }, { - name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is quoted.', + name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is quoted', id: 'conditional-etag-quoted-respond-unquoted', kind: 'check', depends_on: ['conditional-etag-strong-respond'], @@ -131,7 +131,7 @@ export default { ] }, { - name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted.', + name: 'HTTP cache responds to unquoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted', id: 'conditional-etag-unquoted-respond-unquoted', kind: 'check', depends_on: ['conditional-etag-strong-respond'], @@ -155,7 +155,7 @@ export default { ] }, { - name: 'HTTP cache responds to quoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted.', + name: 'HTTP cache responds to quoted `If-None-Match` with a `304` when holding a fresh response with a matching strong `ETag` that is unquoted', id: 'conditional-etag-unquoted-respond-quoted', kind: 'check', depends_on: ['conditional-etag-strong-respond'], @@ -179,7 +179,7 @@ export default { ] }, { - name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`.', + name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`', id: 'conditional-etag-weak-respond', kind: 'optimal', browser_skip: true, @@ -202,7 +202,7 @@ export default { ] }, { - name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag is lowercase.', + name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag is lowercase', id: 'conditional-etag-weak-respond-lowercase', kind: 'check', depends_on: ['conditional-etag-weak-respond'], @@ -226,7 +226,7 @@ export default { ] }, { - name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag uses `\\` instead of `/`.', + name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag uses `\\` instead of `/`', id: 'conditional-etag-weak-respond-backslash', kind: 'check', depends_on: ['conditional-etag-weak-respond'], @@ -250,7 +250,7 @@ export default { ] }, { - name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag omits `/`.', + name: 'HTTP cache responds to `If-None-Match` with a `304` when holding a fresh response with a matching weak `ETag`, and the entity-tag weakness flag omits `/`', id: 'conditional-etag-weak-respond-omit-slash', depends_on: ['conditional-etag-weak-respond'], kind: 'check', @@ -274,7 +274,7 @@ export default { ] }, { - name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (first one).', + name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (first one)', id: 'conditional-etag-strong-respond-multiple-first', kind: 'optimal', depends_on: ['conditional-etag-strong-respond'], @@ -298,7 +298,7 @@ export default { ] }, { - name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (middle one).', + name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (middle one)', id: 'conditional-etag-strong-respond-multiple-second', kind: 'optimal', depends_on: ['conditional-etag-strong-respond'], @@ -322,7 +322,7 @@ export default { ] }, { - name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (last one).', + name: 'An optimal HTTP cache responds to `If-None-Match` with a `304` when it contains multiple entity-tags (last one)', id: 'conditional-etag-strong-respond-multiple-last', kind: 'optimal', depends_on: ['conditional-etag-strong-respond'], @@ -403,7 +403,7 @@ export default { ] }, { - name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching strong `ETag`.', + name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching strong `ETag`', id: 'conditional-etag-strong-generate', kind: 'optimal', requests: [ @@ -425,7 +425,7 @@ export default { ] }, { - name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching weak `ETag`.', + name: 'An optimal HTTP cache generates a `If-None-Match` request when holding a stale response with a matching weak `ETag`', id: 'conditional-etag-weak-generate-weak', kind: 'optimal', requests: [ diff --git a/tests/conditional-lm.mjs b/tests/conditional-lm.mjs index a17d277..ad9a0a7 100644 --- a/tests/conditional-lm.mjs +++ b/tests/conditional-lm.mjs @@ -5,7 +5,7 @@ export default { spec_anchors: ['validation.model'], tests: [ { - name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with a matching `Last-Modified`.', + name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with a matching `Last-Modified`', id: 'conditional-lm-fresh', kind: 'optimal', browser_skip: true, @@ -30,7 +30,7 @@ export default { ] }, { - name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with an earlier `Last-Modified`.', + name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a fresh response with an earlier `Last-Modified`', id: 'conditional-lm-fresh-earlier', kind: 'optimal', browser_skip: true, @@ -55,7 +55,7 @@ export default { ] }, { - name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a stale response with a matching `Last-Modified`, after validation.', + name: 'An optimal HTTP cache responds to `If-Modified-Since` with a `304` when holding a stale response with a matching `Last-Modified`, after validation', id: 'conditional-lm-stale', kind: 'optimal', browser_skip: true, diff --git a/tests/expires-parse.mjs b/tests/expires-parse.mjs index 7ea021e..74c93b5 100644 --- a/tests/expires-parse.mjs +++ b/tests/expires-parse.mjs @@ -7,7 +7,7 @@ export default spec_anchors: ['field.expires'], tests: [ { - name: 'An optimal HTTP cache reuses a response with an `Expires` that is exactly 32 bits.', + name: 'An optimal HTTP cache reuses a response with an `Expires` that is exactly 32 bits', id: 'freshness-expires-32bit', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -26,7 +26,7 @@ export default ] }, { - name: 'An optimal HTTP cache reuses a response with an `Expires` that is far in the future.', + name: 'An optimal HTTP cache reuses a response with an `Expires` that is far in the future', id: 'freshness-expires-far-future', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -45,7 +45,7 @@ export default ] }, { - name: 'An optimal HTTP cache reuses a response with a future `Expires` in obsolete RFC 850 format.', + name: 'An optimal HTTP cache reuses a response with a future `Expires` in obsolete RFC 850 format', id: 'freshness-expires-rfc850', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -64,7 +64,7 @@ export default ] }, { - name: 'An optimal HTTP cache reuses a response with a future `Expires` in ANSI C\'s asctime() format.', + name: 'An optimal HTTP cache reuses a response with a future `Expires` in ANSI C\'s asctime() format', id: 'freshness-expires-ansi-c', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -83,7 +83,7 @@ export default ] }, { - name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (weekday).', + name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (weekday)', id: 'freshness-expires-wrong-case-weekday', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -102,7 +102,7 @@ export default ] }, { - name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (month).', + name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (month)', id: 'freshness-expires-wrong-case-month', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -121,7 +121,7 @@ export default ] }, { - name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (tz).', + name: 'An optimal HTTP cache reuses a response with a future `Expires` using wrong case (tz)', id: 'freshness-expires-wrong-case-tz', kind: 'optimal', depends_on: ['freshness-expires-future'], @@ -140,7 +140,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (UTC).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (UTC)', id: 'freshness-expires-invalid-utc', depends_on: ['freshness-expires-future'], requests: [ @@ -158,7 +158,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (other tz).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (other tz)', id: 'freshness-expires-invalid-aest', depends_on: ['freshness-expires-future'], requests: [ @@ -176,7 +176,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (two-digit year).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (two-digit year)', id: 'freshness-expires-invalid-2-digit-year', depends_on: ['freshness-expires-future'], requests: [ @@ -194,7 +194,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (missing comma).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (missing comma)', id: 'freshness-expires-invalid-no-comma', depends_on: ['freshness-expires-future'], requests: [ @@ -212,7 +212,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple spaces).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple spaces)', id: 'freshness-expires-invalid-multiple-spaces', depends_on: ['freshness-expires-future'], requests: [ @@ -229,7 +229,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (date dashes).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (date dashes)', id: 'freshness-expires-invalid-date-dashes', depends_on: ['freshness-expires-future'], requests: [ @@ -246,7 +246,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (time periods).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (time periods)', id: 'freshness-expires-invalid-time-periods', depends_on: ['freshness-expires-future'], requests: [ @@ -263,7 +263,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (1-digit hour).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (1-digit hour)', id: 'freshness-expires-invalid-1-digit-hour', depends_on: ['freshness-expires-future'], requests: [ @@ -280,7 +280,7 @@ export default ] }, { - name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple lines).', + name: 'HTTP cache must not reuse a response with an invalid `Expires` (multiple lines)', id: 'freshness-expires-invalid-multiple-lines', depends_on: ['freshness-expires-future'], requests: [ diff --git a/tests/stale.mjs b/tests/stale.mjs index 7069278..8b519f9 100644 --- a/tests/stale.mjs +++ b/tests/stale.mjs @@ -3,7 +3,7 @@ import * as templates from './lib/templates.mjs' function makeStaleCheckCC (cc, sharedOnly, value) { const shared = sharedOnly === true ? 'Shared ' : '' return { - name: `${shared}HTTP cache must not serve stale stored response when prohibited by \`Cache-Control: ${cc}\`.`, + name: `${shared}HTTP cache must not serve stale stored response when prohibited by \`Cache-Control: ${cc}\``, id: `stale-close-${cc}${value || ''}`, browser_skip: sharedOnly, depends_on: ['stale-close'], @@ -56,7 +56,7 @@ export default { ] }, { - name: 'An optimal cache serves stale stored response with [`Cache-Control: stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html).', + name: 'An optimal cache serves stale stored response with [`Cache-Control: stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html)', id: 'stale-while-revalidate', kind: 'optimal', requests: [ @@ -74,7 +74,7 @@ export default { ] }, { - name: 'HTTP cache must not serve stale stored response after the [`stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html) window.', + name: 'HTTP cache must not serve stale stored response after the [`stale-while-revalidate`](https://httpwg.org/specs/rfc5861.html) window', id: 'stale-while-revalidate-window', depends_on: ['stale-while-revalidate'], requests: [ diff --git a/tests/status.mjs b/tests/status.mjs index b1d0073..b03b8eb 100644 --- a/tests/status.mjs +++ b/tests/status.mjs @@ -71,7 +71,7 @@ function checkStatus (status) { ].forEach(checkStatus) tests.push({ - name: 'HTTP cache must not reuse a fresh response with an unrecognised status code and `Cache-Control: no-store, must-understand`.', + name: 'HTTP cache must not reuse a fresh response with an unrecognised status code and `Cache-Control: no-store, must-understand`', id: 'status-599-must-understand', depends_on: ['status-599-fresh'], spec_anchors: ['cache-response-directive.must-understand'], @@ -90,7 +90,7 @@ tests.push({ }) tests.push({ - name: 'An optimal HTTP cache reuses a fresh response with a recognised status code and `Cache-Control: no-store, must-understand`.', + name: 'An optimal HTTP cache reuses a fresh response with a recognised status code and `Cache-Control: no-store, must-understand`', id: 'status-200-must-understand', kind: 'optimal', depends_on: ['status-200-fresh', 'cc-resp-no-store-fresh'], diff --git a/tests/update304.mjs b/tests/update304.mjs index 4ed4348..b83f6d8 100644 --- a/tests/update304.mjs +++ b/tests/update304.mjs @@ -8,7 +8,7 @@ const storedHeader = 'Test-Header' const valueA = utils.httpContent(`${storedHeader}-value-A`) const lm1 = 'Wed, 01 Jan 2020 00:00:00 GMT' tests.push({ - name: `HTTP cache must return stored \`${storedHeader}\` from a \`304\` that omits it.`, + name: `HTTP cache must return stored \`${storedHeader}\` from a \`304\` that omits it`, id: `304-lm-use-stored-${storedHeader}`, requests: [ { @@ -43,12 +43,12 @@ function check304 (config) { if (config.noUpdate === true) { config.expectedValue = config.valueA config.requirement = 'HTTP cache must not' - config.punctuation = '.' + config.punctuation = '' config.kind = 'required' } else if (config.reqUpdate === true) { config.expectedValue = config.valueB config.requirement = 'HTTP cache must' - config.punctuation = '.' + config.punctuation = '' config.kind = 'required' } else { config.expectedValue = config.valueB