diff options
author | 2017-11-19 11:42:55 +0200 | |
---|---|---|
committer | 2017-11-19 11:43:15 +0200 | |
commit | a9ef6f094a2bcf1fd7a0b7c2aaf814841db558ec (patch) | |
tree | 81a3f8436f9e6af07c3070c74f3a0543c2ca5eff /django/engagementmanager/utils/constants.py | |
parent | c169d08d437ccb62fd79ade759077b874f00b1c3 (diff) |
Pep8 more fixes
Update base files to pass pep8 strict standarts.
Issue-ID: VVP-25
Change-Id: If9ef80abf7fbc33ea181dfc2eb73c27ddd6ddc3e
Signed-off-by: Edan Binshtok <eb578m@intl.att.com>
Diffstat (limited to 'django/engagementmanager/utils/constants.py')
-rw-r--r-- | django/engagementmanager/utils/constants.py | 36 |
1 files changed, 22 insertions, 14 deletions
diff --git a/django/engagementmanager/utils/constants.py b/django/engagementmanager/utils/constants.py index 70fab7b..0e1c5b9 100644 --- a/django/engagementmanager/utils/constants.py +++ b/django/engagementmanager/utils/constants.py @@ -54,27 +54,31 @@ class Constants(object): role_standard_user = None role_admin = None role_admin_ro = None - service_provider_company_name = "ServiceProvider" - service_provider_mail_domain = ["example-domain.com"] - service_provider_admin_mail = "admin@example-domain.com" - service_provider_admin_ro_mail = "admin_ro@example-domain.com" - ice_base_ctx = "/vvp/v1/engmgr/" - rgwa_base_url ='http://localhost:8123/admin' + service_provider_company_name = settings.SERVICE_PROVIDER + service_provider_mail_domain = [settings.SERVICE_PROVIDER_DOMAIN] + service_provider_admin_mail = "admin@" + settings.SERVICE_PROVIDER_DOMAIN + service_provider_admin_ro_mail = "admin_ro@" + \ + settings.SERVICE_PROVIDER_DOMAIN + ice_base_ctx = "/{prefix}/v1/engmgr/"\ + .format(prefix=settings.PROGRAM_NAME_URL_PREFIX) + rgwa_base_url = 'http://localhost:8123/admin' default_vfc_version = "1.0.0" - dbConnectionStr = "dbname='icedb' user='iceuser' host='localhost' password='Aa123456' port='5433'" + dbConnectionStr = "dbname='icedb' user='iceuser' host='localhost' " +\ + "password='Aa123456' port='5433'" dashboard_href = "<A href=" + \ str(settings.DOMAIN) + "/#/dashboard/" + ">Dashboard</A>" - prodDomain = 'https://www.vvp.example-domain.com' + prodDomain = 'https://' + settings.SERVICE_PROVIDER_DOMAIN invite_template_dir = "emails/invite/" activate_template_dir = "emails/activate/" notification_template_dir = "emails/notification/" reset_pwd_template_dir = "emails/reset_pwd/" activation_prefix = "/#/activate/" - program_name = "VVP" + program_name = settings.PROGRAM_NAME class TemplatesConstants(object): - logo_url = "https://www.d2ice.att.io/styles/images/d2sandbox_logos-150x30.png" + logo_url = \ + "https://www.d2ice.att.io/styles/images/d2sandbox_logos-150x30.png" contact_mail = "d2ice@att.com" context = {"service_provider": Constants.service_provider_company_name, "program_name": Constants.program_name, @@ -86,6 +90,8 @@ class TemplatesConstants(object): ''' In order to get Enum Value as String use: EngagementType.Validation.name ''' + + class EngagementModelValidationDate: HEAT_VALIDATED = "heat_validated_time" IMAGE_SCAN = "image_scan_time" @@ -99,10 +105,12 @@ class JenkinsBuildParametersNames: class MockJenkinsBuildLog: - TEXT = "from server: Started by user admin \n \ - Building in workspace /var/jenkins_home/workspace/{vf_name}_{eng_man_id} \n \ - [{vf_name}_{eng_man_id}] $ /bin/sh /tmp/jenkins{random_id}.sh \n \ - Cloning into '/var/jenkins_home/workspace/{vf_name}_{eng_man_id}/VF'" + TEXT = \ + "from server: Started by user admin \n \ + Building in workspace \ + /var/jenkins_home/workspace/{vf_name}_{eng_man_id} \n \ + [{vf_name}_{eng_man_id}] $ /bin/sh /tmp/jenkins{random_id}.sh \n \ + Cloning into '/var/jenkins_home/workspace/{vf_name}_{eng_man_id}/VF'" class ChecklistDefaultNames: |