Harden external shortener and add component releases
This commit is contained in:
7 files changed
+188
-29
No files matched your search
@@ -92,7 +92,9 @@ int main()
|
||||
|
||||
Void::Net::Response jsonResponse{
|
||||
.status = 200,
|
||||
.headers = {},
|
||||
.body = R"({"data":{"short":"https://sho.rt/Ab1"}})",
|
||||
.elapsed = {},
|
||||
};
|
||||
auto extracted = (*shortener)->previewExtract(jsonResponse);
|
||||
check(extracted && *extracted == "https://sho.rt/Ab1",
|
||||
@@ -147,6 +149,8 @@ int main()
|
||||
Void::Net::Response headerResponse{
|
||||
.status = 201,
|
||||
.headers = {{.name = "Location", .value = "https://sho.rt/Q1"}},
|
||||
.body = {},
|
||||
.elapsed = {},
|
||||
};
|
||||
auto header = (*queryShortener)->previewExtract(headerResponse);
|
||||
check(header && *header == "https://sho.rt/Q1",
|
||||
|
||||
Reference in new issue
Block a user