akamai-edgegrid 3.4.2 → 3.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # RELEASE NOTES
2
2
 
3
+ ## 3.4.4 (Nov 15, 2023)
4
+
5
+ #### IMPROVEMENTS:
6
+ * Update various dependencies
7
+
8
+ ## 3.4.3 (Oct 23, 2023)
9
+
10
+ #### IMPROVEMENTS:
11
+ * Update various dependencies
12
+
3
13
  ## 3.4.2 (Sep 12, 2023)
4
14
 
5
15
  #### BUG FIXES
@@ -74,4 +84,4 @@
74
84
  * Replace 'request' package with axios ([#64](https://github.com/akamai/AkamaiOPEN-edgegrid-node/issues/64))
75
85
  * Fix code quality issues
76
86
  * Update version of mocha
77
- * Add resolving ~ sign in edgerc path
87
+ * Add resolving ~ sign in edgerc path
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akamai-edgegrid",
3
- "version": "3.4.2",
3
+ "version": "3.4.4",
4
4
  "description": "Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme in Node.js",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test/test.xml DELETED
@@ -1,287 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <testsuites name="Mocha Tests" time="0.2490" tests="85" failures="0">
3
- <testsuite name="" timestamp="2022-08-02T09:17:39" tests="0" time="0.0000" failures="0">
4
- </testsuite>
5
- <testsuite name="Root Suite.Signature Generation" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0000" failures="0">
6
- </testsuite>
7
- <testsuite name="Root Suite.Signature Generation.simple GET" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0030" failures="0">
8
- <testcase name="should return the expected string when the signing request is run." time="0.0010" classname="Signature Generation.simple GET">
9
- </testcase>
10
- </testsuite>
11
- <testsuite name="Root Suite.Signature Generation.get with querystring" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0010" failures="0">
12
- <testcase name="should return the expected string when the signing request is run." time="0.0000" classname="Signature Generation.get with querystring">
13
- </testcase>
14
- </testsuite>
15
- <testsuite name="Root Suite.Signature Generation.get with querystring Object" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0010" failures="0">
16
- <testcase name="should return the expected string when the signing request is run." time="0.0010" classname="Signature Generation.get with querystring Object">
17
- </testcase>
18
- </testsuite>
19
- <testsuite name="Root Suite.Signature Generation.POST inside limit" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0010" failures="0">
20
- <testcase name="should return the expected string when the signing request is run." time="0.0000" classname="Signature Generation.POST inside limit">
21
- </testcase>
22
- </testsuite>
23
- <testsuite name="Root Suite.Signature Generation.POST too large" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.1270" failures="0">
24
- <testcase name="should return the expected string when the signing request is run." time="0.1260" classname="Signature Generation.POST too large">
25
- </testcase>
26
- </testsuite>
27
- <testsuite name="Root Suite.Signature Generation.POST length equals max_body" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0000" failures="0">
28
- <testcase name="should return the expected string when the signing request is run." time="0.0000" classname="Signature Generation.POST length equals max_body">
29
- </testcase>
30
- </testsuite>
31
- <testsuite name="Root Suite.Signature Generation.POST empty body" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0010" failures="0">
32
- <testcase name="should return the expected string when the signing request is run." time="0.0010" classname="Signature Generation.POST empty body">
33
- </testcase>
34
- </testsuite>
35
- <testsuite name="Root Suite.Signature Generation.simple header signing with GET" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0020" failures="0">
36
- <testcase name="should return the expected string when the signing request is run." time="0.0010" classname="Signature Generation.simple header signing with GET">
37
- </testcase>
38
- </testsuite>
39
- <testsuite name="Root Suite.Signature Generation.headers containing spaces" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0000" failures="0">
40
- <testcase name="should return the expected string when the signing request is run." time="0.0000" classname="Signature Generation.headers containing spaces">
41
- </testcase>
42
- </testsuite>
43
- <testsuite name="Root Suite.Signature Generation.headers with leading and interior spaces" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0010" failures="0">
44
- <testcase name="should return the expected string when the signing request is run." time="0.0000" classname="Signature Generation.headers with leading and interior spaces">
45
- </testcase>
46
- </testsuite>
47
- <testsuite name="Root Suite.Signature Generation.PUT test" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/test.js" time="0.0010" failures="0">
48
- <testcase name="should return the expected string when the signing request is run." time="0.0000" classname="Signature Generation.PUT test">
49
- </testcase>
50
- </testsuite>
51
- <testsuite name="Root Suite.edgerc" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0000" failures="0">
52
- </testsuite>
53
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0000" failures="0">
54
- </testsuite>
55
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when it is not passed a second argument indicating config section" timestamp="2022-08-02T09:17:39" tests="4" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0030" failures="0">
56
- <testcase name="reports the default host" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is not passed a second argument indicating config section">
57
- </testcase>
58
- <testcase name="reports the default client_token" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is not passed a second argument indicating config section">
59
- </testcase>
60
- <testcase name="reports the default client_secret" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is not passed a second argument indicating config section">
61
- </testcase>
62
- <testcase name="reports the default access_token" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is not passed a second argument indicating config section">
63
- </testcase>
64
- </testsuite>
65
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when it is passed a second argument indicating config section" timestamp="2022-08-02T09:17:39" tests="4" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0030" failures="0">
66
- <testcase name="reports the host associated with the section" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is passed a second argument indicating config section">
67
- </testcase>
68
- <testcase name="reports the client_token associated with the section" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is passed a second argument indicating config section">
69
- </testcase>
70
- <testcase name="reports the client_secret associated with the section" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is passed a second argument indicating config section">
71
- </testcase>
72
- <testcase name="reports the access_token associated with the section" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when it is passed a second argument indicating config section">
73
- </testcase>
74
- </testsuite>
75
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when the section contains a host with the &quot;https://&quot; protocal specified" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0010" failures="0">
76
- <testcase name="reports a host with a valid URI string" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when the section contains a host with the &quot;https://&quot; protocal specified">
77
- </testcase>
78
- </testsuite>
79
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when the section passed does not exist" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0010" failures="0">
80
- <testcase name="throws the proper error" time="0.0010" classname="edgerc.the parsed edgrc file it returns.when the section passed does not exist">
81
- </testcase>
82
- </testsuite>
83
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when the section has comments" timestamp="2022-08-02T09:17:39" tests="3" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0020" failures="0">
84
- <testcase name="has six configuration items" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when the section has comments">
85
- </testcase>
86
- <testcase name="parses a value with a semicolon properly" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when the section has comments">
87
- </testcase>
88
- <testcase name="parses a complex value properly" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when the section has comments">
89
- </testcase>
90
- </testsuite>
91
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when the envs are used with default section" timestamp="2022-08-02T09:17:39" tests="2" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0010" failures="0">
92
- <testcase name="has four configuration items" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when the envs are used with default section">
93
- </testcase>
94
- <testcase name="has valid config values" time="0.0000" classname="edgerc.the parsed edgrc file it returns.when the envs are used with default section">
95
- </testcase>
96
- </testsuite>
97
- <testsuite name="Root Suite.edgerc.the parsed edgrc file it returns.when the envs are used with custom section" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/edgerc_test.js" time="0.0010" failures="0">
98
- <testcase name="has valid config values" time="0.0010" classname="edgerc.the parsed edgrc file it returns.when the envs are used with custom section">
99
- </testcase>
100
- </testsuite>
101
- <testsuite name="Root Suite.Api" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
102
- </testsuite>
103
- <testsuite name="Root Suite.Api..config" timestamp="2022-08-02T09:17:39" tests="4" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
104
- <testcase name="reports the client token" time="0.0000" classname="Api..config">
105
- </testcase>
106
- <testcase name="reports the client secret" time="0.0000" classname="Api..config">
107
- </testcase>
108
- <testcase name="reports the access token" time="0.0000" classname="Api..config">
109
- </testcase>
110
- <testcase name="reports the API host" time="0.0000" classname="Api..config">
111
- </testcase>
112
- </testsuite>
113
- <testsuite name="Root Suite.Api..config.when it is instantiated with an API host that already contains the protocol" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0010" failures="0">
114
- <testcase name="it does not double declare the protocol" time="0.0010" classname="Api..config.when it is instantiated with an API host that already contains the protocol">
115
- </testcase>
116
- </testsuite>
117
- <testsuite name="Root Suite.Api..config.when it is instantiated with an object" timestamp="2022-08-02T09:17:39" tests="4" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
118
- <testcase name="reports the client token from the edgerc associated with the specified section" time="0.0000" classname="Api..config.when it is instantiated with an object">
119
- </testcase>
120
- <testcase name="reports the client secret from the edgerc associated with the specified section" time="0.0000" classname="Api..config.when it is instantiated with an object">
121
- </testcase>
122
- <testcase name="reports the access token from the edgerc associated with the specified section" time="0.0000" classname="Api..config.when it is instantiated with an object">
123
- </testcase>
124
- <testcase name="reports the API host from the edgerc associated with the specified section" time="0.0000" classname="Api..config.when it is instantiated with an object">
125
- </testcase>
126
- </testsuite>
127
- <testsuite name="Root Suite.Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specfy a section" timestamp="2022-08-02T09:17:39" tests="4" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0030" failures="0">
128
- <testcase name="reports the client token from the edgerc associated with the default section" time="0.0000" classname="Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specfy a section">
129
- </testcase>
130
- <testcase name="reports the client secret from the edgerc associated with the default section" time="0.0000" classname="Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specfy a section">
131
- </testcase>
132
- <testcase name="reports the access token from the edgerc associated with the default section" time="0.0000" classname="Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specfy a section">
133
- </testcase>
134
- <testcase name="reports the API host from the edgerc associated with the default section" time="0.0000" classname="Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specfy a section">
135
- </testcase>
136
- </testsuite>
137
- <testsuite name="Root Suite.Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specify a path nor a section" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0010" failures="0">
138
- <testcase name="uses config from env variables with default section" time="0.0000" classname="Api..config.when it is instantiated with an object.when it is instantiated with an object that does not specify a path nor a section">
139
- </testcase>
140
- </testsuite>
141
- <testsuite name="Root Suite.Api..config.when it is instantiated with an object.when it is instantiated with an object that specifies an inadequate path" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0020" failures="0">
142
- <testcase name="throws the appropriate error" time="0.0010" classname="Api..config.when it is instantiated with an object.when it is instantiated with an object that specifies an inadequate path">
143
- </testcase>
144
- </testsuite>
145
- <testsuite name="Root Suite.Api.when it is not instantiated with valid credentials" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
146
- <testcase name="throws the appropriate error" time="0.0000" classname="Api.when it is not instantiated with valid credentials">
147
- </testcase>
148
- </testsuite>
149
- <testsuite name="Root Suite.Api.#auth" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
150
- <testcase name="should be chainable" time="0.0010" classname="Api.#auth">
151
- </testcase>
152
- </testsuite>
153
- <testsuite name="Root Suite.Api.#auth.when minimal request options are passed" timestamp="2022-08-02T09:17:39" tests="6" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0040" failures="0">
154
- <testcase name="adds an Authorization header to the request it is passed" time="0.0000" classname="Api.#auth.when minimal request options are passed">
155
- </testcase>
156
- <testcase name="ensures a default Content-Type of application/json" time="0.0000" classname="Api.#auth.when minimal request options are passed">
157
- </testcase>
158
- <testcase name="ensures a default GET method" time="0.0000" classname="Api.#auth.when minimal request options are passed">
159
- </testcase>
160
- <testcase name="ensures a default empty body" time="0.0000" classname="Api.#auth.when minimal request options are passed">
161
- </testcase>
162
- <testcase name="ensures a url is properly declared" time="0.0000" classname="Api.#auth.when minimal request options are passed">
163
- </testcase>
164
- <testcase name="ensures no User-Agent is added when AkamaiCLI env variables not set" time="0.0000" classname="Api.#auth.when minimal request options are passed">
165
- </testcase>
166
- </testsuite>
167
- <testsuite name="Root Suite.Api.#auth.when more specific request options are passed" timestamp="2022-08-02T09:17:39" tests="6" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0050" failures="0">
168
- <testcase name="adds an Authorization header to the request it is passed" time="0.0000" classname="Api.#auth.when more specific request options are passed">
169
- </testcase>
170
- <testcase name="ensures a default Content-Type of application/json" time="0.0010" classname="Api.#auth.when more specific request options are passed">
171
- </testcase>
172
- <testcase name="uses the specified POST method" time="0.0000" classname="Api.#auth.when more specific request options are passed">
173
- </testcase>
174
- <testcase name="uses the specified body parsed as a JSON string" time="0.0000" classname="Api.#auth.when more specific request options are passed">
175
- </testcase>
176
- <testcase name="extends the default request options with any others specified" time="0.0000" classname="Api.#auth.when more specific request options are passed">
177
- </testcase>
178
- <testcase name="ensures provided User-Agent header is preserved" time="0.0000" classname="Api.#auth.when more specific request options are passed">
179
- </testcase>
180
- </testsuite>
181
- <testsuite name="Root Suite.Api.#auth.when gzip response format is expected" timestamp="2022-08-02T09:17:39" tests="4" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0020" failures="0">
182
- <testcase name="adds an Authorization header to the request it is passed" time="0.0000" classname="Api.#auth.when gzip response format is expected">
183
- </testcase>
184
- <testcase name="ensures a default GET method" time="0.0000" classname="Api.#auth.when gzip response format is expected">
185
- </testcase>
186
- <testcase name="ensures a default empty body" time="0.0000" classname="Api.#auth.when gzip response format is expected">
187
- </testcase>
188
- <testcase name="should return response as buffer" time="0.0000" classname="Api.#auth.when gzip response format is expected">
189
- </testcase>
190
- </testsuite>
191
- <testsuite name="Root Suite.Api.#auth.when akamai cli user agent is expected" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
192
- </testsuite>
193
- <testsuite name="Root Suite.Api.#auth.when akamai cli user agent is expected.when no User-Agent set in the request" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0010" failures="0">
194
- <testcase name="should set User-Agent" time="0.0000" classname="Api.#auth.when akamai cli user agent is expected.when no User-Agent set in the request">
195
- </testcase>
196
- </testsuite>
197
- <testsuite name="Root Suite.Api.#auth.when akamai cli user agent is expected.when User-Agent is already in the request" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0010" failures="0">
198
- <testcase name="should append to already present User-Agent header" time="0.0000" classname="Api.#auth.when akamai cli user agent is expected.when User-Agent is already in the request">
199
- </testcase>
200
- </testsuite>
201
- <testsuite name="Root Suite.Api.#auth.when akamai cli user agent is expected.when only AkamaiCLI info is set" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0010" failures="0">
202
- <testcase name="should only set AkamaiCLI/version User-Agent" time="0.0000" classname="Api.#auth.when akamai cli user agent is expected.when only AkamaiCLI info is set">
203
- </testcase>
204
- </testsuite>
205
- <testsuite name="Root Suite.Api.#auth.when akamai cli user agent is expected.when only AkamaiCLI command info is set" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0010" failures="0">
206
- <testcase name="should only set AkamaiCLI/version User-Agent" time="0.0000" classname="Api.#auth.when akamai cli user agent is expected.when only AkamaiCLI command info is set">
207
- </testcase>
208
- </testsuite>
209
- <testsuite name="Root Suite.Api.#send" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0000" failures="0">
210
- <testcase name="should be chainable" time="0.0180" classname="Api.#send">
211
- </testcase>
212
- </testsuite>
213
- <testsuite name="Root Suite.Api.#send.when authentication is done with a simple options object specifying only a path" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0140" failures="0">
214
- <testcase name="sends the HTTP GET request created by #auth" time="0.0070" classname="Api.#send.when authentication is done with a simple options object specifying only a path">
215
- </testcase>
216
- </testsuite>
217
- <testsuite name="Root Suite.Api.#send.when authentication is done with a more complex options object specifying only a path" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0090" failures="0">
218
- <testcase name="sends the HTTP created by #auth" time="0.0060" classname="Api.#send.when authentication is done with a more complex options object specifying only a path">
219
- </testcase>
220
- </testsuite>
221
- <testsuite name="Root Suite.Api.#send.when the initial request redirects" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0130" failures="0">
222
- <testcase name="correctly follows the redirect and re-signs the request" time="0.0100" classname="Api.#send.when the initial request redirects">
223
- </testcase>
224
- </testsuite>
225
- <testsuite name="Root Suite.Api.#send.when the initial request fails" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/api_test.js" time="0.0030" failures="0">
226
- <testcase name="correctly handles the error in the callback" time="0.0030" classname="Api.#send.when the initial request fails">
227
- </testcase>
228
- </testsuite>
229
- <testsuite name="Root Suite.helpers" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
230
- </testsuite>
231
- <testsuite name="Root Suite.helpers.#base64Sha256" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0010" failures="0">
232
- <testcase name="returns a base 64 encoded Sha256 of the string it is passed" time="0.0010" classname="helpers.#base64Sha256">
233
- </testcase>
234
- </testsuite>
235
- <testsuite name="Root Suite.helpers.#base64HmacSha256" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
236
- <testcase name="returns a base 64 encoded Hmac Sha256 of the message and key it is passed" time="0.0000" classname="helpers.#base64HmacSha256">
237
- </testcase>
238
- </testsuite>
239
- <testsuite name="Root Suite.helpers.#canonicalizeHeaders" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0010" failures="0">
240
- <testcase name="turns the headers into a tab separate string of key/value pairs" time="0.0010" classname="helpers.#canonicalizeHeaders">
241
- </testcase>
242
- </testsuite>
243
- <testsuite name="Root Suite.helpers.#contentHash" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
244
- </testsuite>
245
- <testsuite name="Root Suite.helpers.#contentHash.when the request is not a POST" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
246
- <testcase name="returns an empty string" time="0.0000" classname="helpers.#contentHash.when the request is not a POST">
247
- </testcase>
248
- </testsuite>
249
- <testsuite name="Root Suite.helpers.#contentHash.when the request is a POST" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
250
- <testcase name="returns a base64 encoded sha256 of the body" time="0.0000" classname="helpers.#contentHash.when the request is a POST">
251
- </testcase>
252
- </testsuite>
253
- <testsuite name="Root Suite.helpers.#dataToSign" timestamp="2022-08-02T09:17:39" tests="2" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0020" failures="0">
254
- <testcase name="properly formats the request data to sign" time="0.0000" classname="helpers.#dataToSign">
255
- </testcase>
256
- <testcase name="properly formats the request data when passing headersToSign" time="0.0000" classname="helpers.#dataToSign">
257
- </testcase>
258
- </testsuite>
259
- <testsuite name="Root Suite.helpers.#signingKey" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0010" failures="0">
260
- <testcase name="returns the proper signing key" time="0.0000" classname="helpers.#signingKey">
261
- </testcase>
262
- </testsuite>
263
- <testsuite name="Root Suite.helpers.#isRedirect" timestamp="2022-08-02T09:17:39" tests="0" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
264
- </testsuite>
265
- <testsuite name="Root Suite.helpers.#isRedirect.when it is passed a status code indicating a redirect" timestamp="2022-08-02T09:17:39" tests="5" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0020" failures="0">
266
- <testcase name="returns true when it is passed a 300" time="0.0000" classname="helpers.#isRedirect.when it is passed a status code indicating a redirect">
267
- </testcase>
268
- <testcase name="returns true when it is passed a 301" time="0.0000" classname="helpers.#isRedirect.when it is passed a status code indicating a redirect">
269
- </testcase>
270
- <testcase name="returns true when it is passed a 302" time="0.0000" classname="helpers.#isRedirect.when it is passed a status code indicating a redirect">
271
- </testcase>
272
- <testcase name="returns true when it is passed a 303" time="0.0000" classname="helpers.#isRedirect.when it is passed a status code indicating a redirect">
273
- </testcase>
274
- <testcase name="returns true when it is passed a 307" time="0.0000" classname="helpers.#isRedirect.when it is passed a status code indicating a redirect">
275
- </testcase>
276
- </testsuite>
277
- <testsuite name="Root Suite.helpers.#isRedirect.when it is passed a status code that does not indicate a redirect" timestamp="2022-08-02T09:17:39" tests="1" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0000" failures="0">
278
- <testcase name="returns false when it is passed a 200" time="0.0000" classname="helpers.#isRedirect.when it is passed a status code that does not indicate a redirect">
279
- </testcase>
280
- </testsuite>
281
- <testsuite name="Root Suite.helpers.#resolveHome" timestamp="2022-08-02T09:17:39" tests="2" file="/Users/dstopka/repo/akamaiopen-edgegrid-node/test/src/helpers_test.js" time="0.0010" failures="0">
282
- <testcase name="resolves ~" time="0.0000" classname="helpers.#resolveHome">
283
- </testcase>
284
- <testcase name="resolves path without ~" time="0.0000" classname="helpers.#resolveHome">
285
- </testcase>
286
- </testsuite>
287
- </testsuites>