Skip to content

Commit

Permalink
Remove surrogate-control
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Jul 12, 2023
1 parent 765e835 commit 2edbdff
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 430 deletions.
2 changes: 0 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import * as summary from './test-engine/lib/summary.mjs'
import * as display from './test-engine/lib/display.mjs'
import baseTests from './tests/index.mjs'
import surrogate from './tests/surrogate-control.mjs'

const loc = new URL(window.location)
const suiteIds = loc.searchParams.getAll('suite')
Expand All @@ -31,7 +30,6 @@
document.querySelectorAll('.noFrame').forEach(e => {e.style.display = 'block'})
}

baseTests.push(surrogate)
const ToC = document.getElementById('ToC')
const target = document.getElementById('target')
const key = document.getElementById('key')
Expand Down
3 changes: 0 additions & 3 deletions test-engine/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import * as display from './lib/display.mjs'
import { GREEN, NC } from './lib/defines.mjs'
import fetch from 'node-fetch-with-proxy'
import tests from '../tests/index.mjs'
import surrogate from '../tests/surrogate-control.mjs'

tests.push(surrogate)

const baseUrl = process.env.npm_config_base || process.env.npm_package_config_base
const testId = process.env.npm_config_id || process.env.npm_package_config_id
Expand Down
3 changes: 0 additions & 3 deletions test-engine/export.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import fs from 'fs'
import Ajv from 'ajv'

import tests from '../tests/index.mjs'
import surrogate from '../tests/surrogate-control.mjs'

tests.push(surrogate)

if (process.argv[2] === 'validate') {
const ajv = new Ajv()
Expand Down
11 changes: 0 additions & 11 deletions test-engine/lib/header-fixup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,5 @@ export function fixupHeader (header, respHeaders, reqConfig) {
}
}

// Surrogate-Control
const capabilitySeen = respHeaders['capability-seen']
if (headerName === 'surrogate-control' && capabilitySeen) {
// right now we assume just one
const capabilityTarget = capabilitySeen.split('=')[0]
if (!capabilityTarget) {
console.error('WARN: Capability target is empty')
}
header[1] = header[1].replace('CAPABILITY_TARGET', capabilityTarget)
}

return header
}
Loading

0 comments on commit 2edbdff

Please sign in to comment.