add codegen for nodejs native and instrument snapshot tests

This commit is contained in:
Qing Ye
2020-10-08 00:10:02 +08:00
parent 16f02e2544
commit 30250e1afa
5 changed files with 271 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
export const TEST_URL = "https://httpbin.org"
export const TEST_PATH_NAME = "/path/to"
export const TEST_QUERY_STRING = "?a=b"
export const TEST_HTTP_USER = "mockUser"
export const TEST_HTTP_PASSWORD = "mockPassword"
export const TEST_BEARER_TOKEN = "abcdefghijklmn"
export const TEST_RAW_REQUEST_BODY = "foo=bar&baz=qux"
export const TEST_RAW_PARAMS_JSON = '{"foo": "bar", "baz": "qux"}'
export const TEST_RAW_PARAMS_XML = `<?xml version=\'1.0\' encoding=\'utf-8\'?>
<xml>
<element foo="bar"></element>
</xml>`
export const TEST_HEADERS = [
{ key: "h1", value: "h1v" },
{ key: "h2", value: "h2v" },
]