Skip to content

Commit

Permalink
fix e2e tests (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
burov authored Jan 20, 2025
1 parent 61118e2 commit 8baee92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func buildPkgInstallTestSetup(name, image, pkgManager, key string) *guestPolicyT
packageName := "ed"
machineType := "e2-medium"
if pkgManager == "googet" {
packageName = "cowsay"
packageName = "google-compute-engine-ssh"
machineType = "e2-standard-4"
}
if strings.Contains(image, "rhel-6") || strings.Contains(image, "centos-6") {
Expand Down Expand Up @@ -89,7 +89,7 @@ func buildPkgUpdateTestSetup(name, image, pkgManager, key string) *guestPolicyTe
packageName := "gcsfuse"
machineType := "e2-medium"
if pkgManager == "googet" {
packageName = "cowsay"
packageName = "google-compute-engine-ssh"
machineType = "e2-standard-4"
}

Expand Down Expand Up @@ -125,7 +125,7 @@ func buildPkgDoesNotUpdateTestSetup(name, image, pkgManager, key string) *guestP
packageName := "gcsfuse"
machineType := "e2-medium"
if pkgManager == "googet" {
packageName = "cowsay"
packageName = "google-compute-engine-ssh"
machineType = "e2-standard-4"
}

Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/test_suites/ospolicies/ospolicies_test_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func buildGooGetTestSetup(name, image, key string) *osPolicyTestSetup {
Pkg: &osconfigpb.OSPolicy_Resource_PackageResource{
DesiredState: osconfigpb.OSPolicy_Resource_PackageResource_INSTALLED,
SystemPackage: &osconfigpb.OSPolicy_Resource_PackageResource_Googet{
Googet: &osconfigpb.OSPolicy_Resource_PackageResource_GooGet{Name: "cowsay"},
Googet: &osconfigpb.OSPolicy_Resource_PackageResource_GooGet{Name: "google-compute-engine-ssh"},
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/test_suites/ospolicies/ospolicies_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ done`
key = "startup-script"

case "googet":
wantInstall := "cowsay"
wantInstall := "google-compute-engine-ssh"
wantRemove := "certgen"
ss = `
googet addrepo test https://packages.cloud.google.com/yuck/repos/osconfig-agent-test-repository
Expand Down

0 comments on commit 8baee92

Please sign in to comment.