diff --git a/tests/framework/nexus/assets/assets.go b/tests/framework/nexus/assets/assets.go index 5dab7b35..1b7f2c55 100644 --- a/tests/framework/nexus/assets/assets.go +++ b/tests/framework/nexus/assets/assets.go @@ -15,7 +15,8 @@ type AssetWithScore struct { Labels map[string]string Grade string Platform struct { - Name string + Name string + Runtime string } PolicyScores []PolicyScore AssetType string @@ -45,7 +46,8 @@ func ListAssetsWithScores( Grade string } Platform struct { - Name string + Name string + Runtime string } AssetType string `graphql:"asset_type"` } diff --git a/tests/integration/audit_config_base_suite.go b/tests/integration/audit_config_base_suite.go index 7911ba91..8348dd0e 100644 --- a/tests/integration/audit_config_base_suite.go +++ b/tests/integration/audit_config_base_suite.go @@ -1256,7 +1256,7 @@ func (s *AuditConfigBaseSuite) AssetsNotUnscored(assets []assets.AssetWithScore) expectedPolicies := defaultK8sNodePolicyMrns if strings.Contains(asset.Platform.Name, "k8s") { expectedPolicies = defaultK8sPolicyMrns - } else if strings.Contains(asset.Name, "nginx") || strings.Contains(asset.Name, "redis") || strings.Contains(asset.Name, "k3d") { + } else if strings.Contains(asset.Name, "nginx") || strings.Contains(asset.Name, "redis") || strings.Contains(asset.Name, "k3d") || asset.Platform.Runtime == "docker-image" { expectedPolicies = defaultOsPolicyMrns } s.ElementsMatchf(expectedPolicies, scoredPolicies, "Scored policies for asset %s should be the default k8s policies", asset.Name)