Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for ansible #9

Merged
merged 24 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge with the main branch
petrpinkas committed Oct 2, 2024
commit bca18c8cb75d6217023febf779681870aec7b06c
35 changes: 35 additions & 0 deletions test/support/test_constants.go
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ package support

const (
EnvReleasesSnapshotFile = "SNAPSHOT"
EnvAnsibleImagesFile = "ANSIBLE"
EnvRepositoriesFile = "REPOSITORIES"
EnvTestGithubToken = "TEST_GITHUB_TOKEN" // #nosec G101

@@ -48,3 +49,37 @@ func OtherOperatorImageKeys() []string {
"http-server-image",
}
}

func AnsibleImageKeys() []string {
return []string{
"tas_single_node_fulcio_server_image",
"tas_single_node_trillian_log_server_image",
"tas_single_node_trillian_log_signer_image",
"tas_single_node_rekor_server_image",
"tas_single_node_ctlog_image",
"tas_single_node_rekor_redis_image",
"tas_single_node_trillian_db_image",
"tas_single_node_tuf_image",
"tas_single_node_timestamp_authority_image",
"tas_single_node_rekor_search_ui_image",
"tas_single_node_createtree_image",
"tas_single_node_client_server_image",
}
}

func OtherAnsibleImageKeys() []string {
return []string{
"tas_single_node_trillian_netcat_image",
"tas_single_node_nginx_image",
}
}

type OSArchMatrix map[string][]string

func GetOSArchMatrix() OSArchMatrix {
return map[string][]string{
"linux": {"amd64", "arm64", "ppc64le", "s390x"},
"darwin": {"amd64", "arm64"},
"windows": {"amd64"},
}
}