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

agama-project / agama / 12686008813
75%

Build:
DEFAULT BRANCH: master
Ran 09 Jan 2025 08:16AM UTC
Jobs 2
Files 648
Run time 222min
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: 70.933% (+0.06%) from 70.87%
12686008813

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)

22 of 31 new or added lines in 9 files covered. (70.97%)

169 existing lines in 10 files now uncovered.

17160 of 24192 relevant lines covered (70.93%)

35.56 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
2 service 12686008813.2 09 Jan 2025 08:16AM UTC 0
89.22
GitHub Action Run
2 rust 12431612344.2 20 Dec 2024 12:52PM UTC 0
24.7
GitHub Action Run
Source Files on build 12686008813
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12686008813
  • d4771bd5 on github
  • Prev Build on master (#12668150585)
  • Next Build on master (#12686008794)
  • 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