cloudapi: enable masked services

Extend the cloudapi to accept masked systemd services as a
customization.
This commit is contained in:
Gianluca Zuccarelli 2024-02-22 16:15:49 +00:00 committed by Tomáš Hozza
parent f6b76cce31
commit c480d79e95
4 changed files with 192 additions and 171 deletions

View file

@ -78,6 +78,7 @@ func GetTestBlueprint() blueprint.Blueprint {
Services: &blueprint.ServicesCustomization{
Enabled: []string{"sshd"},
Disabled: []string{"cleanup"},
Masked: []string{"firewalld"},
},
OpenSCAP: &blueprint.OpenSCAPCustomization{
ProfileID: "B 263-59",
@ -198,6 +199,7 @@ func TestGetBlueprintFromCustomizations(t *testing.T) {
Services: &Services{
Disabled: &[]string{"cleanup"},
Enabled: &[]string{"sshd"},
Masked: &[]string{"firewalld"},
},
Openscap: &OpenSCAP{ProfileId: "B 263-59"},
CustomRepositories: &[]CustomRepository{
@ -320,6 +322,7 @@ func TestGetBlueprintFromCompose(t *testing.T) {
Services: &Services{
Disabled: &[]string{"cleanup"},
Enabled: &[]string{"sshd"},
Masked: &[]string{"firewalld"},
},
Openscap: &BlueprintOpenSCAP{ProfileId: "B 263-59"},
Repositories: &[]BlueprintRepository{