Skip to content
Snippets Groups Projects
Commit 48e3c6cc authored by Bhushan Rade's avatar Bhushan Rade
Browse files

Merge branch 'servicemesh-fix' into 'master'

ITs updated for service mesh changes

See merge request !139
parents facfb3b2 bc62be8a
No related branches found
No related tags found
1 merge request!139ITs updated for service mesh changes
Pipeline #80834 failed
Showing
with 14 additions and 14 deletions
......@@ -41,7 +41,7 @@ public class TestCreateActionApi extends CreateActionApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -43,7 +43,7 @@ public class TestDeleteActionApi extends DeleteActionApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
@Override
......
......@@ -41,6 +41,6 @@ public class TestGetActionByIdApi extends GetActionByIdApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -43,7 +43,7 @@ public class TestRetrieveActionApi extends RetrieveActionApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
@Override
......
......@@ -41,6 +41,6 @@ public class TestCreateRegistrationApi extends CreateRegistrationApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -41,7 +41,7 @@ public class TestDeleteRegistrationApi extends DeleteRegistrationApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
......
......@@ -41,7 +41,7 @@ public class TestGetConsumptionByIdApi extends GetConsumptionByIdApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
......
......@@ -42,7 +42,7 @@ public class TestGetRegistrationByIdApi extends GetRegistrationByIdApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -41,6 +41,6 @@ public class TestQueryDdmsByType extends QueryDdmsByTypeTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -61,6 +61,6 @@ public class TestCreateSubscriberApi extends CreateSubscriberApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -41,6 +41,6 @@ public class TestDeleteSubscriberApi extends DeleteSubscriberApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -56,6 +56,6 @@ public class TestGetSubscriberByIdApi extends GetSubscriberByIdApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
......@@ -43,7 +43,7 @@ public class TestListTopicsApi extends ListTopicsApiTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
@Override
......
......@@ -42,6 +42,6 @@ public class TestQuerySubscriber extends QuerySubscriberTest {
@Override
public void should_return400_when_makingHttpRequestWithoutToken() throws Exception {
ClientResponse response = descriptor.run(getId(), "");
assertEquals(error(response.getEntity(String.class)), 401, response.getStatus());
assertEquals(error(response.getEntity(String.class)), 403, response.getStatus());
}
}
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