Exemple #1
0
        public void TestExtractSignedHeaders()
        {
            HttpRequestMessage request = new HttpRequestMessage();

            request.Headers.Add("X-Amz-Date", "20150830T123600Z");
            request.Headers.Add("Host", "iam.amazonaws.com");

            string result = awsSignerHelperUnderTest.ExtractSignedHeaders(request);

            Assert.Equal("host;x-amz-date", result);
        }
        public void TestExtractSignedHeaders()
        {
            IRestRequest request = new RestRequest();

            request.AddHeader("X-Amz-Date", "20150830T123600Z");
            request.AddHeader("Host", "iam.amazonaws.com");
            request.AddHeader("Content-Type", JsonMediaType);

            string result = awsSignerHelperUnderTest.ExtractSignedHeaders(request);

            Assert.Equal("content-type;host;x-amz-date", result);
        }