From 69fe2f821990e143ccad07ee4b039fb3b2123835 Mon Sep 17 00:00:00 2001 From: bdebek-splunk Date: Wed, 9 Apr 2025 11:31:04 +0200 Subject: [PATCH] refactor: rename environment from UAT to test and from SES to STG --- .github/workflows/deploy.yml | 12 ++++++------ .github/workflows/manual_deploy.yml | 12 ++++++------ README.md | 8 ++++---- deploy.py | 2 +- environments/prod/{ses => stg}/deployment.yml | 0 .../es/Splunk_TA_app1}/local.meta | 0 .../es/Splunk_TA_app1}/logging.conf | 0 .../es/buttercup_app_for_splunk/local.meta | 0 .../es/buttercup_app_for_splunk/logging.conf | 0 environments/{uat => test}/es/deployment.yml | 0 .../stg/Splunk_TA_app1}/logging.conf | 0 environments/{uat/ses => test/stg}/deployment.yml | 0 modules/{splunkcloud.py => splunk_cloud.py} | 0 13 files changed, 17 insertions(+), 17 deletions(-) rename environments/prod/{ses => stg}/deployment.yml (100%) rename environments/{uat/es/Splunk_TA_App1 => test/es/Splunk_TA_app1}/local.meta (100%) rename environments/{uat/es/Splunk_TA_App1 => test/es/Splunk_TA_app1}/logging.conf (100%) rename environments/{uat => test}/es/buttercup_app_for_splunk/local.meta (100%) rename environments/{uat => test}/es/buttercup_app_for_splunk/logging.conf (100%) rename environments/{uat => test}/es/deployment.yml (100%) rename environments/{uat/ses/Splunk_TA_App1 => test/stg/Splunk_TA_app1}/logging.conf (100%) rename environments/{uat/ses => test/stg}/deployment.yml (100%) rename modules/{splunkcloud.py => splunk_cloud.py} (100%) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5ae4e82..8f15722 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,14 +15,14 @@ jobs: strategy: matrix: environment: - - name: "uat/ses" - token_key: "SPLUNK_TOKEN_UAT_SES" - - name: "uat/es" - token_key: "SPLUNK_TOKEN_UAT_ES" + - name: "test/stg" + token_key: "SPLUNK_TOKEN_TEST_STG" + - name: "test/es" + token_key: "SPLUNK_TOKEN_TEST_ES" - name: "prod/es" token_key: "SPLUNK_TOKEN_PROD_ES" - - name: "prod/ses" - token_key: "SPLUNK_TOKEN_PROD_SES" + - name: "prod/stg" + token_key: "SPLUNK_TOKEN_PROD_STG" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/.github/workflows/manual_deploy.yml b/.github/workflows/manual_deploy.yml index c31b766..d586091 100644 --- a/.github/workflows/manual_deploy.yml +++ b/.github/workflows/manual_deploy.yml @@ -8,14 +8,14 @@ jobs: strategy: matrix: environment: - - name: "uat/ses" - token_key: "SPLUNK_TOKEN_UAT_SES" - - name: "uat/es" - token_key: "SPLUNK_TOKEN_UAT_ES" + - name: "test/stg" + token_key: "SPLUNK_TOKEN_TEST_STG" + - name: "test/es" + token_key: "SPLUNK_TOKEN_TEST_ES" - name: "prod/es" token_key: "SPLUNK_TOKEN_PROD_ES" - - name: "prod/ses" - token_key: "SPLUNK_TOKEN_PROD_SES" + - name: "prod/stg" + token_key: "SPLUNK_TOKEN_PROD_STG" steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 diff --git a/README.md b/README.md index 9249faf..6629d51 100644 --- a/README.md +++ b/README.md @@ -20,20 +20,20 @@ Assumptions: ├── modules │ ├── apps_processing.py │ ├── report_generator.py -│ └── splunkcloud.py +│ └── splunk_cloud.py └── environments ├── prod │ ├── es │ │ └── deployment.yml - │ └── ses + │ └── stg │ └── deployment.yml - └── uat + └── test ├── es │ ├── app1 │ │ └── logging.conf | | └── local.meta │ └── deployment.yml - └── ses + └── stg └── deployment.yml ``` diff --git a/deploy.py b/deploy.py index c886b38..446b7cf 100644 --- a/deploy.py +++ b/deploy.py @@ -1,7 +1,7 @@ import os import boto3 -from modules.splunkcloud import SplunkCloudConnector +from modules.splunk_cloud import SplunkCloudConnector from modules.apps_processing import AppFilesProcessor, DeploymentParser from modules.report_generator import DeploymentReportGenerator diff --git a/environments/prod/ses/deployment.yml b/environments/prod/stg/deployment.yml similarity index 100% rename from environments/prod/ses/deployment.yml rename to environments/prod/stg/deployment.yml diff --git a/environments/uat/es/Splunk_TA_App1/local.meta b/environments/test/es/Splunk_TA_app1/local.meta similarity index 100% rename from environments/uat/es/Splunk_TA_App1/local.meta rename to environments/test/es/Splunk_TA_app1/local.meta diff --git a/environments/uat/es/Splunk_TA_App1/logging.conf b/environments/test/es/Splunk_TA_app1/logging.conf similarity index 100% rename from environments/uat/es/Splunk_TA_App1/logging.conf rename to environments/test/es/Splunk_TA_app1/logging.conf diff --git a/environments/uat/es/buttercup_app_for_splunk/local.meta b/environments/test/es/buttercup_app_for_splunk/local.meta similarity index 100% rename from environments/uat/es/buttercup_app_for_splunk/local.meta rename to environments/test/es/buttercup_app_for_splunk/local.meta diff --git a/environments/uat/es/buttercup_app_for_splunk/logging.conf b/environments/test/es/buttercup_app_for_splunk/logging.conf similarity index 100% rename from environments/uat/es/buttercup_app_for_splunk/logging.conf rename to environments/test/es/buttercup_app_for_splunk/logging.conf diff --git a/environments/uat/es/deployment.yml b/environments/test/es/deployment.yml similarity index 100% rename from environments/uat/es/deployment.yml rename to environments/test/es/deployment.yml diff --git a/environments/uat/ses/Splunk_TA_App1/logging.conf b/environments/test/stg/Splunk_TA_app1/logging.conf similarity index 100% rename from environments/uat/ses/Splunk_TA_App1/logging.conf rename to environments/test/stg/Splunk_TA_app1/logging.conf diff --git a/environments/uat/ses/deployment.yml b/environments/test/stg/deployment.yml similarity index 100% rename from environments/uat/ses/deployment.yml rename to environments/test/stg/deployment.yml diff --git a/modules/splunkcloud.py b/modules/splunk_cloud.py similarity index 100% rename from modules/splunkcloud.py rename to modules/splunk_cloud.py