Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Fix PQ-209] gpd fdr workaround automation #2

Merged
merged 9 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/gpd_get_fdr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ jobs:
if: ${{ (success() || failure())}}
uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 #v1.24.0
with:
payload-file-path: "./report/src/report.json"
payload: |
{
"text": "Esito del job: ${{ job.status }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
Expand Down
6 changes: 4 additions & 2 deletions python/gpd-get-fdr/get-flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,12 @@ def get_report(domain_id, flow_id, broker_id, broker_station_id, password):
response: Response = requests.post(url, headers=h, data=body)
return response.text

# reads domain to load from csv file

def get_flows_form_list(csv_name, date):
# load the dictionary with the EC configurations
file_path = os.getcwd() + "/python/gpd-get-fdr/config/" + csv_name
#file_path = "/python/gpd-get-fdr/config/" + csv_name
#file_path = os.path.join(os.getenv("GITHUB_WORKSPACE", ""), "/python/gpd-get-fdr/config/" + csv_name)
file_path = "/home/runner/work/pagopa-qa/pagopa-qa/python/gpd-get-fdr/config/" + csv_name
print(f"loading csv file [{file_path}]")
data_dict = {}
with open(file_path, newline='') as csvfile:
Expand Down
3 changes: 3 additions & 0 deletions python/gpd-get-fdr/payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"text": "Action eseguita con esito: ${{ job.status }}"
}
Loading