Skip to content

Commit

Permalink
Merge pull request #74 from anclrii/dev
Browse files Browse the repository at this point in the history
Update tests
  • Loading branch information
anclrii authored Feb 9, 2023
2 parents 5c825e5 + f67f855 commit 8f4b96a
Show file tree
Hide file tree
Showing 8 changed files with 539 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up Python environment
Expand Down
2 changes: 1 addition & 1 deletion storj_exporter/collectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _get_metric_template_map(self):
documentation='Storj node info',
data_dict=self._node,
data_keys=['nodeID', 'wallet', 'upToDate', 'version',
'allowedVersion','quicStatus']
'allowedVersion', 'quicStatus']
),
GaugeMetricTemplate(
metric_name='storj_total_diskspace',
Expand Down
25 changes: 25 additions & 0 deletions tests/api_mock/v1.71.2/payout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"currentMonth": {
"egressBandwidth": 2918793472,
"egressBandwidthPayout": 5.83,
"egressRepairAudit": 18326741248,
"egressRepairAuditPayout": 18.31,
"diskSpace": 935646190261.8284,
"diskSpacePayout": 140.35,
"heldRate": 0,
"payout": 164.49,
"held": 0
},
"previousMonth": {
"egressBandwidth": 7739741440,
"egressBandwidthPayout": 15.479999999999999,
"egressRepairAudit": 98628742144,
"egressRepairAuditPayout": 98.64,
"diskSpace": 3602473330909.5415,
"diskSpacePayout": 540.37,
"heldRate": 0,
"payout": 654.49,
"held": 0
},
"currentMonthExpectations": 541
}
Loading

0 comments on commit 8f4b96a

Please sign in to comment.