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

agama-project / agama / 16317571768
74%

Build:
DEFAULT BRANCH: master
Ran 16 Jul 2025 11:04AM UTC
Jobs 3
Files 990
Run time 2min
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

16 Jul 2025 10:55AM UTC coverage: 75.988% (+11.8%) from 64.225%
16317571768

push

github

web-flow
feat(cli): Added -i/--insecure optional argument to the "agama download" command (#2568)

## Problem

- The `agama download` command fails when downloading from HTTPS with a
self-signed certificate
- It should be possible to ignore the problem and download the file
anyway (only on explicit user request)
- Useful for testing, might be used by customers in local networks
- https://bugzilla.suse.com/show_bug.cgi?id=1245393

## Solution

- Ignore SSL problems in HTTPS downloads (self-signed certificate,
non-matching host, unknown CA...)

## Testing

- Tested manually

### Fails by default 

Downloading from HTTPS server using a self-signed certificate fails:

```console
> ./agama download https://localhost:9000 index.html
Could not retrieve https://localhost:9000/

Caused by:
    [60] SSL peer certificate or SSH remote key was not OK (SSL certificate problem: self-signed certificate)
```

### Using the `--insecure` option

When using the `--insecure` option the problem is ignored and the
download succeeds:

```console
> ./agama download --insecure https://localhost:9000 index.html
File saved to index.html
```

### Help

The option is described in the help output:

```console
> ./agama download --help
Download file from a given (AutoYaST) URL

The purpose of this command is to download files using AutoYaST supported schemas (e.g. device://).
It can be used to download additional scripts, configuration files and so on. You can use it for
downloading Agama autoinstallation profiles. If you want to convert an AutoYaST profile, use "agama
config generate".

Usage: agama download [OPTIONS] <URL> <DESTINATION>

Arguments:
  <URL>
          URL reference pointing to file for download. If a relative URL is provided, it will be
          resolved against the current working directory

  <DESTINATION>
          File name

Options:
  -i, --insecure
          Disables SSL verification for HTTPS downloads

  -h, --help
          Print help (see a summary with '-h')
```

2000 of 3646 branches covered (54.85%)

Branch coverage included in aggregate %.

5 of 12 new or added lines in 6 files covered. (41.67%)

170 existing lines in 9 files now uncovered.

22228 of 28238 relevant lines covered (78.72%)

64.44 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-cli/src/cli_input.rs
1
0.0
0.0% rust/agama-server/src/profile/web.rs
2
76.92
-13.08% rust/agama-lib/src/utils/transfer/handlers/generic.rs
3
0.0
0.0% rust/agama-cli/src/lib.rs

Uncovered Existing Lines

Lines Coverage ∆ File
2
0.0
0.0% rust/agama-lib/src/storage/settings.rs
2
71.43
0.0% rust/agama-lib/src/storage/store.rs
2
55.56
0.0% rust/agama-lib/src/storage/http_client.rs
8
0.0
0.0% rust/agama-server/src/web/docs/storage.rs
8
0.0
0.0% rust/agama-lib/src/storage/http_client/dasd.rs
10
0.0
0.0% rust/agama-lib/src/install_settings.rs
41
0.0
0.0% rust/agama-lib/src/store.rs
47
0.0
0.0% rust/agama-server/src/storage/web/zfcp.rs
50
0.0
0.0% rust/agama-lib/src/storage/client/zfcp.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 16317571768.1 16 Jul 2025 11:04AM UTC 179
21.63
GitHub Action Run
3 service 16313617719.3 16 Jul 2025 07:52AM UTC 389
88.49
GitHub Action Run
3 web 16312703666.3 16 Jul 2025 07:04AM UTC 544
67.74
GitHub Action Run
Source Files on build 16317571768
  • Tree
  • List 1112
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16317571768
  • 4e440e15 on github
  • Prev Build on master (#16313617719)
  • Next Build on master (#16318526757)
  • 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