Skip to content

Commit

Permalink
Performance test/send output to grafana cloud (#98)
Browse files Browse the repository at this point in the history
* send output to grafana cloud

* removed install of azcopy, only needed when running act locally

* changed tag from group to name
  • Loading branch information
dagfinno authored Oct 8, 2024
1 parent b225804 commit 8bc3fc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/taxreport-loadtest-ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ jobs:
env:
K6_WEB_DASHBOARD: true
K6_WEB_DASHBOARD_EXPORT: html-report.html
K6_CLOUD_TOKEN: ${{ secrets.K6_CLOUD_TOKEN }}
K6_CLOUD_PROJECT_ID: ${{ secrets.K6_CLOUD_PROJECT_ID }}
serviceowner: ${{ secrets.OWNER }}

- name: Upload summary html report
Expand Down
8 changes: 4 additions & 4 deletions performance-tests/tax-report/src/tax-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export function create_instance(data, id) {
Authorization: 'Bearer ' + id.token,
'Content-Type': 'application/json'
},
tags: { group: 'create_instance' }
tags: { name: 'create_instance' }
};

var request_body = JSON.stringify(instance)
Expand All @@ -120,7 +120,7 @@ export function upload_data(data, instance, id) {
'Content-Type': 'text/xml',
'Content-Disposition': 'attachment; filename=\"skattemelding.xml\"'
},
tags: { group: 'upload_data' }
tags: { name: 'upload_data' }
};
return http.post(endPoint, taxXml, params);
}
Expand All @@ -131,7 +131,7 @@ export function trigger_callback_and_confirm(data, instance, id) {
headers: {
Authorization: 'Bearer ' + id.token
},
tags: { group: 'trigger_callback_and_confirm' }
tags: { name: 'trigger_callback_and_confirm' }
}
return http.put(endPoint, null, params);
}
Expand All @@ -151,7 +151,7 @@ export function http_get_with_token(endPoint, token, tag) {
headers: {
Authorization: 'Bearer ' + token
},
tags: { group: tag }
tags: { name: tag }
}
return http.get(endPoint, params);
}
Expand Down

0 comments on commit 8bc3fc6

Please sign in to comment.