Commit 1de41dda authored by Bill Wang's avatar Bill Wang
Browse files

istio related fix

commit 96138ef1 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Wed Oct 06 2021 11:51:55 GMT-0700 (Pacific Daylight Time) 

    rever temp change


commit 1600d7d2 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Wed Oct 06 2021 11:00:02 GMT-0700 (Pacific Daylight Time) 

    test validation


commit fcc220d4 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Wed Oct 06 2021 10:42:03 GMT-0700 (Pacific Daylight Time) 

    test validation


commit 16209e7f 
Author: Rucha Deshpande <deshruch@amazon.com> 
Date: Tue Oct 05 2021 13:31:31 GMT-0700 (Pacific Daylight Time) 

    temp. override of response code for AWS Istio response code when  no token
parent b815e80f
Pipeline #74000 failed with stages
in 67 minutes and 28 seconds
......@@ -36,5 +36,11 @@ public class TestCreateActionApi extends CreateActionApiTest {
this.testUtils = null;
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -38,4 +38,11 @@ public class TestDeleteActionApi extends DeleteActionApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -36,4 +36,12 @@ public class TestGetActionByIdApi extends GetActionByIdApiTest {
this.testUtils = null;
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -38,4 +38,11 @@ public class TestRetrieveActionApi extends RetrieveActionApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -38,4 +38,11 @@ public class TestCreateRegistrationApi extends CreateRegistrationApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -37,4 +37,11 @@ public class TestDeleteRegistrationApi extends DeleteRegistrationApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -38,4 +38,11 @@ public class TestGetConsumptionByIdApi extends GetConsumptionByIdApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -38,4 +38,11 @@ public class TestGetRegistrationByIdApi extends GetRegistrationByIdApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -38,4 +38,11 @@ public class TestQueryDdmsByType extends QueryDdmsByTypeTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -77,4 +77,12 @@ public class TestCreateSubscriberApi extends CreateSubscriberApiTest {
assertEquals(url, subscriber.pushEndpoint);
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -39,4 +39,11 @@ public class TestDeleteSubscriberApi extends DeleteSubscriberApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -53,4 +53,13 @@ public class TestGetSubscriberByIdApi extends GetSubscriberByIdApiTest {
assertEquals("My listener", subscriber.name);
assertEquals("records-changed", subscriber.topic);
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -39,4 +39,11 @@ public class TestListTopicsApi extends ListTopicsApiTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
......@@ -40,4 +40,11 @@ public class TestQuerySubscriber extends QuerySubscriberTest {
}
//overriding test to return 401 for AWS Istio config
@Test
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
}
}
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