MCPcopy
hub / github.com/caddyserver/caddy / TestLoadUnorderedJSON

Function TestLoadUnorderedJSON

caddytest/caddytest_test.go:37–129  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

35}
36
37func TestLoadUnorderedJSON(t *testing.T) {
38 tester := NewTester(t)
39 tester.InitServer(`
40 {
41 "logging": {
42 "logs": {
43 "default": {
44 "level": "DEBUG",
45 "writer": {
46 "output": "stdout"
47 }
48 },
49 "sStdOutLogs": {
50 "level": "DEBUG",
51 "writer": {
52 "output": "stdout"
53 },
54 "include": [
55 "http.*",
56 "admin.*"
57 ]
58 },
59 "sFileLogs": {
60 "level": "DEBUG",
61 "writer": {
62 "output": "stdout"
63 },
64 "include": [
65 "http.*",
66 "admin.*"
67 ]
68 }
69 }
70 },
71 "admin": {
72 "listen": "localhost:2999"
73 },
74 "apps": {
75 "pki": {
76 "certificate_authorities" : {
77 "local" : {
78 "install_trust": false
79 }
80 }
81 },
82 "http": {
83 "http_port": 9080,
84 "https_port": 9443,
85 "servers": {
86 "s_server": {
87 "listen": [
88 ":9080"
89 ],
90 "routes": [
91 {
92 "handle": [
93 {
94 "handler": "static_response",

Callers

nothing calls this directly

Calls 3

InitServerMethod · 0.95
AssertResponseCodeMethod · 0.95
NewTesterFunction · 0.85

Tested by

no test coverage detected