Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Now make various updates to make sure to limit access to the FlexDeploy Test environment and limit what FlexDeploy Test can do against various endpoints. You can customize any of these steps as per your needs. Make sure to run this on Test environment only.
    • Disable external realm and users, so access to FlexDeploy is very limited. Update SQL as appropriate for your setup. For example,

      Code Block
      languagesql
      themeRDark
      titleInactivate Security Setup to restrict access
      update fdFD.fdFD_realmREALM set is_active='N';
      update fdFD.fdFD_userUSER set is_active='N' where local_user='N'; -- update as appropriate
      commit;


    • Disable all endpoints, so Test FlexDeploy can not run any executions until Administrator explicitly enables some endpoints. Update base directory to not conflict in case when one of these Endpoints is enabled in Test FlexDeploy. For example,

      Code Block
      languagesql
      themeRDark
      titleUpdate Endpoints for Test environment
      update FD.ENDPOINT set is_active='N' where connection_type='SSH';
      update FD.ENDPOINT set base_directory = base_directory || 'fdtest';
      commit;


    • If you have workflows that perform tags on Source Control Systems, make sure to update the workflows before running builds, so you do not conflict with tags created by Production FlexDeploy. You can do this by simply running this SQL also. Adjust according to your requirements.

      Code Block
      languagesql
      themeRDark
      titleUpdate version syntax
      update FD.PROJECT_STREAM set version_syntax = version_syntax || ' + ".fdtest"';
      commit;


    • Delete all Continuous Integration triggers.

      Code Block
      languagesql
      themeRDark
      titleDelete CI Triggers
      delete from FD.PROJECT_TRIGGER_CONFIG;
      delete from FD.PROJECT_TRIGGER;
      commit;


    • Disable production environment. so Test FlexDeploy can not run any executions even for testing against Production environment. For example,

      Code Block
      languagesql
      themeRDark
      titleDisable Production environment
      update fdFD.environmentENVIRONMENT set is_active='N' where environment_code='PROD'; -- update as appropriate
      commit;


  • Now start Test FlexDeploy and validate it.
    • You can make necessary adjustments to Realm, User, Groups to validate setup and perform tests as necessary. This is necessary as we disabled user and realms in previous steps.
    • You can activate specific Endpoints that you want to be included in Test environment validations.
    • Update System Settings as appropriate.
      • Change FD_SERVER_BASE_URL.
      • Change SMTP_FROM_ADDRESS. This will make sure that emails are coming from different address for Test FlexDeploy.