• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sapcc / limes / 10923353774
80%

Build:
DEFAULT BRANCH: master
Ran 18 Sep 2024 01:39PM UTC
Jobs 1
Files 62
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

18 Sep 2024 01:38PM UTC coverage: 78.606% (+0.008%) from 78.598%
10923353774

push

github

web-flow
Add POST API to convert a commitment to a target Resource (#554)

* Add first logic pieces to convert a commitment

* Rebase with master
get source and target behaviors with the newly integrated methods from limes

* Add azResourceID resolution

* Add check where amount does not match conversion rate

* Utilize location query

* Add first unit tests

* Add remaining cases to consider during conversion
Implement remaining unit tests

* Add documentation

* Adjust API URL path to match the internal system
integrate commitment by id select into an inline version

* Update internal/api/commitment.go

Co-authored-by: Stefan Majewsky <stefan.majewsky@sap.com>

* Update internal/api/commitment.go

Co-authored-by: Stefan Majewsky <stefan.majewsky@sap.com>

* Update internal/api/commitment.go

Co-authored-by: Stefan Majewsky <stefan.majewsky@sap.com>

* Add unit test for invalid conversion to a different identifier

* Remove superfuous error message return on findDomain and findProject queries

* Supersede old commitment
create a remainder commitment and a conversion commitment instead of changing the amount of the original one

* Fix documentation

* fix documentation

* Update internal/api/commitment.go

Co-authored-by: Stefan Majewsky <stefan.majewsky@sap.com>

* Allow unconfirmed commitments to be converted

* Fix unit tests

* Only allow commitment conversion for the project the user has rightfully access to
utilize findProjectCommitmentByIDQuery: it matches the origin of the commitment with the project ID
attempted transfers to a different project will be rejected

* Adjust name mapping to master implementation

* Adjust error message on conflicting conversion config

* Reject conversion attempts early
check against serviceType and resourceName before having a check in depth via the azResourceID

* Uncommittable resources should still allow conversions
Remove the corresponding guard clauses.... (continued)

151 of 199 new or added lines in 3 files covered. (75.88%)

5166 of 6572 relevant lines covered (78.61%)

64.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 10923353774.1 18 Sep 2024 01:39PM UTC 0
78.61
GitHub Action Run
Source Files on build 10923353774
Detailed source file information is not available for this build.
  • Back to Repo
  • 28c45994 on github
  • Prev Build on master (#10903454756)
  • Next Build on master (#10923379045)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc