X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=otf-service-api%2Fsrc%2Fmain%2Fjava%2Forg%2Foran%2Fotf%2Fapi%2Fservice%2Fimpl%2FTestStrategyServiceImpl.java;h=afc0f24dcea67de43796c55427e71c7b050a5f55;hb=cf067bb8bd9b45e79a85e9612a0f4c5abeb727b8;hp=13d125ab9c0048dfce864a0c82bd61804f9e9915;hpb=596b1d89c5f63170ed40abb6f7b9395178c5e44e;p=it%2Fotf.git diff --git a/otf-service-api/src/main/java/org/oran/otf/api/service/impl/TestStrategyServiceImpl.java b/otf-service-api/src/main/java/org/oran/otf/api/service/impl/TestStrategyServiceImpl.java index 13d125a..afc0f24 100644 --- a/otf-service-api/src/main/java/org/oran/otf/api/service/impl/TestStrategyServiceImpl.java +++ b/otf-service-api/src/main/java/org/oran/otf/api/service/impl/TestStrategyServiceImpl.java @@ -108,7 +108,7 @@ public class TestStrategyServiceImpl implements TestStrategyService { // logger.error(Utilities.getStackTrace(e)); // } - // If a test definition id is supplied, the request intends to update an existing test + // If a test definition id is supplied, the request intends to updatean existing test // definition. if (request.getTestDefinitionId() != null) { // Check if the test definition exists in the database. @@ -212,8 +212,7 @@ public class TestStrategyServiceImpl implements TestStrategyService { private boolean isAuthorized(String authorization) { User user = Utilities.findUserByAuthHeader(authorization, userRepository); - return (user.getEmail().equalsIgnoreCase("email@localhost") - || user.getEmail().equalsIgnoreCase("email@localhost")); + return (user.getEmail().equalsIgnoreCase(System.getenv("AAF_ID"))); } private DeployTestStrategyRequest mapToDeployTestStrategyRequest(String body) {