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

agama-project / agama / 15579666570
74%

Build:
DEFAULT BRANCH: master
Ran 11 Jun 2025 08:18AM UTC
Jobs 3
Files 536
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

11 Jun 2025 08:15AM UTC coverage: 62.58% (-0.07%) from 62.649%
15579666570

push

github

web-flow
feat(rust): improve user/root exported information (#2461)

## Problem

There are a few problems with the user and root settings that "agama
config show" generates.

1. It is not possible to get the root password (it is not exposed). See
[bsc#1235602](https://bugzilla.suse.com/show_bug.cgi?id=1235602).
2. The `user` section is exported even if a first user does not exist.
3. The `root` section is exported even if no authentication mechanism
has been defined.
4. The `hashed_password` key is exported even if the `root` only has an
SSH public key.

For instance, here's the output for a just started Agama instance:

```json
{
  "root": {},
  "user": {
    "fullName": "",
    "userName": "",
    "password": "",
    "hashedPassword": false
  }
}
```

## Solution

* Move the password settings to a single struct (`UserPassword`). The
`password` and the `hashedPassword` keys are always exported together.
* Do not export the `user` or `root` sections unless it is needed.

I decided to not make the changes at HTTP level because it would imply
adapting the web client too and we have more urgent things to work on.

## Testing

- *Updated the unit test*
- *Tested manually*

92 of 132 branches covered (69.7%)

Branch coverage included in aggregate %.

0 of 39 new or added lines in 3 files covered. (0.0%)

1 existing line in 1 file now uncovered.

11235 of 17968 relevant lines covered (62.53%)

41.76 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
0.0
0.0% rust/agama-lib/src/users/client.rs
11
0.0
0.0% rust/agama-lib/src/users/store.rs
23
0.0
rust/agama-lib/src/users/settings.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-lib/src/users/store.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 15579666570.1 11 Jun 2025 08:18AM UTC 119
1.31
GitHub Action Run
3 web 15541487658.3 09 Jun 2025 06:17PM UTC 36
82.3
GitHub Action Run
3 service 15562487643.3 10 Jun 2025 02:40PM UTC 381
89.13
GitHub Action Run
Source Files on build 15579666570
  • Tree
  • List 536
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #15579666570
  • d02c3bbf on github
  • Prev Build on master (#15577201308)
  • Next Build on master (#15580274209)
  • 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