MCPcopy Create free account
hub / github.com/apache/cloudberry / TEST

Function TEST

gpcontrib/gpcloud/test/s3restful_service_test.cpp:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "gtest/gtest.h"
3
4TEST(S3RESTfulService, GetWithWrongHeader) {
5 HTTPHeaders headers;
6 S3RESTfulService service;
7
8 string url = "https://www.bing.com/";
9 headers.Add(HOST, url);
10 headers.Add(CONTENTTYPE, "plain/text");
11
12 Response resp = service.get(url, headers);
13
14 EXPECT_EQ(RESPONSE_ERROR, resp.getStatus());
15}
16
17TEST(S3RESTfulService, GetWithEmptyHeader) {
18 HTTPHeaders headers;

Callers

nothing calls this directly

Calls 13

compareVectorFunction · 0.85
getStatusMethod · 0.80
headMethod · 0.80
postMethod · 0.80
deleteRequestMethod · 0.80
AddMethod · 0.45
getMethod · 0.45
getMessageMethod · 0.45
sizeMethod · 0.45
getRawDataMethod · 0.45
putMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected