Skip to content
Snippets Groups Projects
Commit 969e7ad3 authored by Spencer Sutton's avatar Spencer Sutton
Browse files

Fixed CORS failing test

commit 32dca163 
Author: Sutton <suttonsp@147dda3a90de.ant.amazon.com> 
Date: Thu Feb 18 2021 10:13:25 GMT-0600 (Central Standard Time) 

    Reverting hard-coded test string


commit bcaf29b1 
Author: Sutton <suttonsp@147dda3a90de.ant.amazon.com> 
Date: Thu Feb 18 2021 10:03:44 GMT-0600 (Central Standard Time) 

    Updating cors tests


commit fe6ae07c 
Author: Sutton <suttonsp@147dda3a90de.ant.amazon.com> 
Date: Wed Feb 17 2021 18:11:45 GMT-0600 (Central Standard Time) 

    Updated to check header by contains


commit 0fc29b53 
Author: Sutton <suttonsp@147dda3a90de.ant.amazon.com> 
Date: Wed Feb 17 2021 16:24:51 GMT-0600 (Central Standard Time) 

    Fixing cors test


commit e8a71907 
Author: Sutton <suttonsp@147dda3a90de.ant.amazon.com> 
Date: Wed Feb 17 2021 16:22:54 GMT-0600 (Central Standard Time) 

    Fixing failing cors test
parent 4c378bf6
No related branches found
No related tags found
1 merge request!60CORS Fix, AWS Updates
Pipeline #27285 failed
......@@ -26,6 +26,7 @@ import java.util.List;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
public abstract class BaseTestTemplate extends TestBase {
......@@ -96,7 +97,8 @@ public abstract class BaseTestTemplate extends TestBase {
assertEquals("nosniff", response.getHeaders().getFirst("X-Content-Type-Options"));
assertEquals("no-cache, no-store, must-revalidate", response.getHeaders().getFirst("Cache-Control"));
assertEquals("default-src 'self'", response.getHeaders().getFirst("Content-Security-Policy"));
assertEquals("max-age=31536000; includeSubDomains", response.getHeaders().getFirst("Strict-Transport-Security"));
assertTrue(response.getHeaders().get("Strict-Transport-Security").get(0).contains("max-age=31536000"));
assertTrue(response.getHeaders().get("Strict-Transport-Security").get(0).contains("includeSubDomains"));
assertEquals("0", response.getHeaders().getFirst("Expires"));
} finally {
deleteResource();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment