-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test for packager source (#2525)
## Description This change adds tests for packager source which tests all implementations. ## Related Issue Relates to #2512 ## Checklist before merging - [x] Test, docs, adr added or updated as needed - [x] [Contributor Guide Steps](https://github.com/defenseunicorns/zarf/blob/main/.github/CONTRIBUTING.md#developer-workflow) followed --------- Co-authored-by: Lucas Rodriguez <lucas.rodriguez@defenseunicorns.com>
- Loading branch information
1 parent
f003c94
commit a69c44f
Showing
6 changed files
with
224 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,4 +25,5 @@ zarf-sbom/ | |
test-*.txt | ||
__debug_bin | ||
.netlify | ||
!**/testdata/** | ||
coverage.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"kind": "ZarfPackageConfig", | ||
"metadata": { | ||
"name": "wordpress", | ||
"description": "\"A Zarf Package that deploys the WordPress blogging and content management platform\"\n", | ||
"version": "16.0.4", | ||
"architecture": "amd64", | ||
"aggregateChecksum": "cd6cc0c238c45982d80b55d3dd3d27497d4f3b264e0f037a37c464be34a3640e" | ||
}, | ||
"build": { | ||
"terminal": "control-center", | ||
"user": "philip", | ||
"architecture": "amd64", | ||
"timestamp": "Wed, 22 May 2024 10:16:55 +0200", | ||
"version": "v0.33.1", | ||
"migrations": [ | ||
"scripts-to-actions", | ||
"pluralize-set-variable" | ||
], | ||
"lastNonBreakingVersion": "v0.27.0" | ||
}, | ||
"components": [] | ||
} |
Binary file added
BIN
+645 Bytes
src/pkg/packager/sources/testdata/zarf-package-wordpress-amd64-16.0.4.tar.zst
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: ZarfPackageConfig | ||
metadata: | ||
name: wordpress | ||
version: 16.0.4 | ||
description: | | ||
"A Zarf Package that deploys the WordPress blogging and content management platform" |