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

openSUSE / agama / 9003028631
25%
master: 72%

Build:
Build:
LAST BUILD BRANCH: storage-volume-keywords
DEFAULT BRANCH: master
Ran 08 May 2024 02:00PM UTC
Jobs 2
Files 406
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

08 May 2024 01:52PM UTC coverage: 65.81% (-2.3%) from 68.078%
9003028631

push

github

web-flow
Adapted the CLI consuming the HTTP/JSON network API (#1178)

## Problem

Ideally, the CLI and the web UI should use the same interface to
interact with Agama. As it is a time that may take some time lets start
updating the network configuration as it stopped to work once we moved
to the HTTP/JSON API.

-
[*Trello*](https://trello.com/c/R0kSx0OP/3649-8-adapt-the-auto-installation-process-to-use-the-http-api-networking)

## Solution

Adapted the CLI using the HTTP/JSON API. For authentication the stored
JWT token or the agama-live token will be used when exist. Cookires are
enabled just in case in the future we wanted to save them to a file and
restoring when the client is obtained.

Last but not least, rpassword was added for hidding the password when it
is entered for authentication.

## Testing

- *Added a new unit test*
- *Tested manually*

2 of 95 new or added lines in 10 files covered. (2.11%)

345 existing lines in 13 files now uncovered.

10600 of 16107 relevant lines covered (65.81%)

11.58 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
69.46
-0.08% rust/agama-server/src/network/nm/dbus.rs
2
0.0
0.0% rust/agama-lib/src/store.rs
2
0.0
0.0% rust/agama-server/src/agama-web-server.rs
2
58.06
2.35% rust/agama-server/src/network/model.rs
5
47.22
-2.78% rust/agama-lib/src/network/store.rs
7
14.0
-1.91% rust/agama-cli/src/config.rs
9
31.25
-40.18% rust/agama-lib/src/lib.rs
9
44.34
2.07% rust/agama-server/src/network/web.rs
11
0.0
0.0% rust/agama-cli/src/auth.rs
45
0.0
-78.92% rust/agama-lib/src/network/client.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
0.0
-78.92% rust/agama-lib/src/network/client.rs
2
0.0
-100.0% rust/agama-server/src/network/error.rs
3
82.35
-11.65% rust/agama-server/tests/common/mod.rs
4
0.0
-100.0% rust/agama-server/src/network/dbus/service.rs
5
75.0
-20.83% rust/agama-lib/src/network/settings.rs
5
19.15
-5.32% rust/agama-lib/src/network/types.rs
12
61.0
-12.0% rust/agama-server/src/network/dbus/tree.rs
26
58.06
2.35% rust/agama-server/src/network/model.rs
29
0.0
-100.0% rust/agama-server/src/network/dbus/interfaces/common.rs
47
43.19
-14.08% rust/agama-server/src/network/system.rs
61
2.82
-85.92% rust/agama-server/src/network/dbus/interfaces/ip_config.rs
72
4.8
-57.6% rust/agama-server/src/network/dbus/interfaces/connections.rs
77
0.0
-93.9% rust/agama-server/src/network/dbus/interfaces/connection_configs.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
2 rust 9003028631.2 08 May 2024 02:00PM UTC 90
24.65
GitHub Action Run
1 service 8169459432.1 06 Mar 2024 09:05AM UTC 316
85.22
GitHub Action Run
Source Files on build 9003028631
  • Tree
  • List 406
  • Changed 42
  • Source Changed 12
  • Coverage Changed 22
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #9003028631
  • 4641c2e1 on github
  • Prev Build on architecture_2024 (#8892589978)
  • 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