Commit 2bb268f5 authored by Matt Wise's avatar Matt Wise
Browse files

fix azure test

parent 0127d32d
Pipeline #29199 passed with stages
in 25 minutes
......@@ -97,17 +97,17 @@ public class TestPubsubEndpointHMAC extends PubsubEndpointHMACTests {
try {
ClientResponse response = descriptor.run(this.getArg(), this.testUtils.getOpsToken());
Assert.assertEquals(this.error(response.getStatus() == 204 ? "" : (String)response.getEntity(String.class)), (long)this.expectedOkResponseCode(), (long)response.getStatus());
Assert.assertEquals("[GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH]", response.getHeaders().getFirst("Access-Control-Allow-Methods"));
Assert.assertEquals("[origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey]", response.getHeaders().getFirst("Access-Control-Allow-Headers"));
Assert.assertEquals("[*]", response.getHeaders().getFirst("Access-Control-Allow-Origin"));
Assert.assertEquals("[true]", response.getHeaders().getFirst("Access-Control-Allow-Credentials"));
Assert.assertEquals("GET, POST, PUT, DELETE, OPTIONS, HEAD, PATCH", response.getHeaders().getFirst("Access-Control-Allow-Methods"));
Assert.assertEquals("origin, content-type, accept, authorization, data-partition-id, correlation-id, appkey", response.getHeaders().getFirst("Access-Control-Allow-Headers"));
Assert.assertEquals("*", response.getHeaders().getFirst("Access-Control-Allow-Origin"));
Assert.assertEquals("true", response.getHeaders().getFirst("Access-Control-Allow-Credentials"));
Assert.assertEquals("DENY", response.getHeaders().getFirst("X-Frame-Options"));
Assert.assertEquals("1; mode=block", response.getHeaders().getFirst("X-XSS-Protection"));
Assert.assertEquals("nosniff", response.getHeaders().getFirst("X-Content-Type-Options"));
Assert.assertEquals("[no-cache, no-store, must-revalidate]", response.getHeaders().getFirst("Cache-Control"));
Assert.assertEquals("[default-src 'self']", response.getHeaders().getFirst("Content-Security-Policy"));
Assert.assertEquals("[max-age=31536000; includeSubDomains]", response.getHeaders().getFirst("Strict-Transport-Security"));
Assert.assertEquals("[0]", response.getHeaders().getFirst("Expires"));
Assert.assertEquals("no-cache, no-store, must-revalidate", response.getHeaders().getFirst("Cache-Control"));
Assert.assertEquals("default-src 'self'", response.getHeaders().getFirst("Content-Security-Policy"));
Assert.assertEquals("max-age=31536000; includeSubDomains", response.getHeaders().getFirst("Strict-Transport-Security"));
Assert.assertEquals("0", response.getHeaders().getFirst("Expires"));
} finally {
this.deleteResource();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment