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

agama-project / agama / 12686008794
73%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2025 08:25AM UTC
Jobs 1
Files 129
Run time 227min
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

09 Jan 2025 08:14AM UTC coverage: 24.755% (-46.2%) from 70.933%
12686008794

push

github

web-flow
feat: implement product registration support (#1809)

## Solution

This pull request implements support for product registration. It
includes changes at several levels:

- Adapt the Ruby part to handle the registration using `/run/agama/zypp`
as target directory.
- Add the information about whether a product should be registered or
not in the product (and not through a separate D-Bus attribute).
Propagate those changes to the HTTP API too.
- Implement a registration page to the web user-interface.

## Testing

You can use the web UI which sends the proper request to the backend or,
if you prefer, you can play around with cURL:

```
TOKEN=$(curl -k --silent $AGAMA_URL/api/auth -d '{"password": "linux"}' \
	-H "Content-Type: application/json" | jq .token | tr -d '"')

echo "Content-Type: application/json" >headers.txt
echo -n "Authorization: Bearer " >>headers.txt
echo $TOKEN >>headers.txt

curl -k -H @headers.txt -X PUT \
	$AGAMA_URL/api/software/config \
	-d "{\"product\": \"SLES\"}"

curl -k -H @headers.txt -X POST \
	$AGAMA_URL/api/software/registration \
	-d "{\"key\": \"YOUR-REGISTRATION-CODE\", \"email\": \"user@example.net\"}"
```

Set `$AGAMA_URL` to the Agama HTTP API (e.g., `https://192.168.122.10`).

## Screenshots


![reg2](https://github.com/user-attachments/assets/c311a69a-38af-49fd-a0eb-4734bba3bb91)

![reg1](https://github.com/user-attachments/assets/41ee1f07-70b8-4a9d-bdb8-ce78b5119bc6)

0 of 20 new or added lines in 4 files covered. (0.0%)

3 existing lines in 2 files now uncovered.

1694 of 6843 relevant lines covered (24.76%)

0.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
72.41
6.79% rust/agama-lib/src/product/store.rs
2
0.0
0.0% rust/agama-server/src/software/web.rs
4
0.0
0.0% rust/agama-lib/src/product/client.rs
12
48.28
-25.41% rust/agama-lib/src/product/http_client.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
72.41
6.79% rust/agama-lib/src/product/store.rs
2
0.0
0.0% rust/agama-server/src/software/web.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 12686008794.1 09 Jan 2025 08:25AM UTC 129
24.76
GitHub Action Run
Source Files on build 12686008794
  • Tree
  • List 129
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #12686008794
  • d4771bd5 on github
  • Prev Build on master (#12686008813)
  • Next Build on master (#12689997346)
  • Delete
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