Change tests and log to expect "Browse SDC" (was "ASDC") 64/91264/1
authorIttay Stern <ittay.stern@att.com>
Thu, 11 Jul 2019 12:54:36 +0000 (15:54 +0300)
committerIttay Stern <ittay.stern@att.com>
Thu, 11 Jul 2019 13:53:33 +0000 (16:53 +0300)
Issue-ID: VID-516

Change-Id: I481880df1796721128b07e3dc3ae83085fc097e8
Signed-off-by: Ittay Stern <ittay.stern@att.com>
vid-app-common/src/main/java/org/onap/vid/controller/VidController.java
vid-automation/src/main/java/vid/automation/test/Constants.java
vid-automation/src/main/java/vid/automation/test/sections/SideMenu.java
vid-webpack-master/cypress/integration/iFrames/ala-carte.e2e.ts
vid-webpack-master/cypress/integration/iFrames/browse-sdc.e2e.ts

index 9d557a0..15bc5ed 100644 (file)
@@ -66,7 +66,7 @@ public class VidController extends RestrictedBaseController {
      */
     @RequestMapping(value = {"/rest/models/services"}, method = RequestMethod.GET)
     public SecureServices getServices(HttpServletRequest request) {
-        LOG.info("Start API for browse ASDC was called");
+        LOG.info("Start API for browse SDC was called");
         SecureServices secureServices = new SecureServices();
         List<Role> roles = roleProvider.getUserRoles(request);
         secureServices.setServices(aaiService.getServicesByDistributionStatus());
index e3eeaca..6605fe2 100644 (file)
@@ -73,7 +73,7 @@ public class Constants {
         public static final int numOfButtons = 7;
         public static final String buttonClass = "att-accordion__group";
         public static final String SEARCH_EXISTING_SERVICE = "Search for Existing Service Instances";
-        public static final String BROWSE_ASDC_SERVICE_MODELS = "Browse ASDC Service Models";
+        public static final String BROWSE_SDC_SERVICE_MODELS = "Browse SDC Service Models";
         public static final String CREATE_NEW_SERVICE = "Create New Service Instance";
         public static final String VNF_CHANGES = "VNF Changes";
         public static final String TEST_ENVIRONMENTS = "Test Environments";
index dc3de78..96c8239 100644 (file)
@@ -12,7 +12,7 @@ public class SideMenu {
     static final Logger logger = LoggerFactory.getLogger(SideMenu.class);
 
     public static void navigateToBrowseASDCPage() {
-        navigateToPage(Constants.SideMenu.BROWSE_ASDC_SERVICE_MODELS);
+        navigateToPage(Constants.SideMenu.BROWSE_SDC_SERVICE_MODELS);
     }
 
     public static void navigateToSearchExistingPage() {
index ecd9102..13c4464 100644 (file)
@@ -251,7 +251,7 @@ describe('A la carte', function () {
     }
 
     function checkServiceNameInputIdMandatory() {
-      cy.get('span').contains('Browse ASDC Service Models').click({force: true})
+      cy.get('span').contains('Browse SDC Service Models').click({force: true})
         .getElementByDataTestsId('deploy-' + SERVICE_ID).click({force: true})
         .wait(1000).getElementByDataTestsId(CONFIRM_BUTTON).click({force: true})
         .get('.error').contains(INSTANCE_NAME_MANDATORY_MESSAGE)
index 1e80ee7..e787aa7 100644 (file)
@@ -53,7 +53,7 @@ describe('Browse SDC', function () {
           'MACRO_FOR_NEW_FLOW');
       });
 
-      cy.get('span').contains('Browse ASDC Service Models').click({force: true});
+      cy.get('span').contains('Browse SDC Service Models').click({force: true});
       cy.wait("@list_services").then(() => {
         cy.getElementByDataTestsId('deploy-' + MACRO_WITH_NETWORK_ID).click({force: true})
           .getElementByDataTestsId(CANCEL_BUTTON).click({force: true});
@@ -87,7 +87,7 @@ describe('Browse SDC', function () {
         'MACRO_WITH_CONFIGURATION');
     });
 
-    cy.get('span').contains('Browse ASDC Service Models').click({force: true});
+    cy.get('span').contains('Browse SDC Service Models').click({force: true});
     cy.wait("@list_services").then(() => {
       cy.getElementByDataTestsId('deploy-' + VERY_OLD_SERVICE_UUID).click({force: true})
         .getElementByDataTestsId('create-modal-title').contains("Create Service Instance -- a la carte");