MCPcopy Create free account
hub / github.com/apache/trafficserver / setUpTS

Method setUpTS

tests/gold_tests/cripts/cripts.test.py:50–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 self.server.addResponse("sessionfile.log", request_header, response_header)
49
50 def setUpTS(self):
51 self.ts = Test.MakeATSProcess("ts_in", enable_tls=True, enable_cache=False)
52
53 self.ts.addDefaultSSLFiles()
54 self.ts.Disk.ssl_multicert_config.AddLine("dest_ip=* ssl_cert_name=server.pem ssl_key_name=server.key")
55
56 self.ts.Setup.Copy('files/basic.cript', self.ts.Variables.CONFIGDIR)
57
58 self.ts.Disk.records_config.update(
59 {
60 'proxy.config.plugin.dynamic_reload_mode': 1,
61 'proxy.config.plugin.compiler_path': self._compiler_location,
62 "proxy.config.ssl.server.cert.path": f"{self.ts.Variables.SSLDir}",
63 "proxy.config.ssl.server.private_key.path": f"{self.ts.Variables.SSLDir}",
64 })
65
66 self.ts.Disk.remap_config.AddLine(
67 f'map http://www.example.com http://127.0.0.1:{self.server.Variables.Port} @plugin=basic.cript')
68 self.ts.Disk.remap_config.AddLine(
69 f'map https://www.example.com:{self.ts.Variables.ssl_port} http://127.0.0.1:{self.server.Variables.Port} @plugin=basic.cript'
70 )
71
72 def updateCompilerForTest(self):
73 '''Update the compiler script for the install location of the ATS process.'''

Callers 1

__init__Method · 0.95

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected