|
Ran
|
Jobs
1
|
Files
143
|
Run time
147min
|
Badge
README BADGES
|
push
github
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
| 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 |
| ID | Flag name | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|---|
| 1 | rust | 14059324485.1 | 143 |
24.4 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|