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

agama-project / agama / 14059324485
73%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2025 12:24PM UTC
Jobs 1
Files 143
Run time 147min
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

25 Mar 2025 12:14PM UTC coverage: 24.403%. First build
14059324485

push

github

web-flow
Deploy files during auto-installation (#2121)

## Problem

In AutoYaST it is possible to deploy [complete configuration
files](https://documentation.suse.com/sles/15-SP5/html/SLES-all/cha-configuration-installation-options.html#createprofile-completeconf)
using the <files />[element](http://element.it/). But agama does not
allow it now.


## Solution

Implement support for it. Also as part of making it consistent with
scripts in scripts body is renamed to content.

Note: Intentionally support for files with ending slash ( to only create
directory ) is not part of this pull request and will be adressed in
further one.


## Testing

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

Profile used for manual testing:
```jsonnet
{
   "product": {
      "id": "Tumbleweed",
   },
   "user": {
      "fullName": "beloved TUX",
      "password": "tux",
      "userName": "tux"
   },
   "root": {
     "password": "linux"
   },
   "files": [
      {
        destination: "/home/tux/scripts/test.sh",
        content: |||
          #!/usr/bin/bash
          systemctl start multipathd.socket multipathd.service
        |||,
        permissions: "755",
        user: "tux",
        group: "users"
      },
      {
        destination: "/root/test2.md",
        url: "https://gist.githubusercontent.com/imobachgs/0fb996ed9f37a18f5d950f721f220731/raw/1438aeb67/http.md"
      }
   ]
}
```

5 of 104 new or added lines in 17 files covered. (4.81%)

1799 of 7372 relevant lines covered (24.4%)

0.67 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
0.0
0.0% rust/agama-cli/src/lib.rs
1
0.0
0.0% rust/agama-lib/src/manager.rs
1
53.42
1.42% rust/agama-lib/src/utils/transfer/file_systems.rs
1
0.0
0.0% rust/agama-lib/src/utils/transfer/handlers/generic.rs
1
0.0
0.0% rust/agama-server/src/error.rs
1
0.0
0.0% rust/agama-server/src/scripts/web.rs
1
0.0
0.0% rust/agama-server/src/web.rs
2
0.0
0.0% rust/agama-lib/src/utils/transfer/file_finder.rs
2
0.0
0.0% rust/agama-lib/src/utils/transfer/handlers/yast.rs
4
0.0
0.0% rust/agama-lib/src/store.rs
6
0.0
rust/agama-lib/src/files/client.rs
8
0.0
rust/agama-lib/src/files/store.rs
24
0.0
rust/agama-server/src/files/web.rs
46
0.0
rust/agama-lib/src/files/model.rs
Subprojects
ID Flag name Job ID Ran Files Coverage
1 rust 14059324485.1 25 Mar 2025 12:24PM UTC 143
24.4
GitHub Action Run
Source Files on build 14059324485
  • Tree
  • List 143
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14059324485
  • e90cc60a on github
  • Prev Build on master (#14059324506)
  • Next Build on master (#14081798292)
  • 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