Skip to content

Commit

Permalink
test(profiler): use debian 11 images for integration tests (#4965)
Browse files Browse the repository at this point in the history
The default image used for go agent integration tests is debian 9.
Update them to use a newer image which includes, among other things,
newer CA certificates needed to download the dependent packages
successfully.
  • Loading branch information
amchiclet committed Oct 8, 2021
1 parent b824c89 commit 5608b12
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions profiler/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,11 @@ func TestAgentIntegration(t *testing.T) {
testcases := []goGCETestCase{
{
InstanceConfig: proftest.InstanceConfig{
ProjectID: projectID,
Name: fmt.Sprintf("profiler-test-gomaster-%s", runID),
MachineType: "n1-standard-1",
ProjectID: projectID,
Name: fmt.Sprintf("profiler-test-gomaster-%s", runID),
MachineType: "n1-standard-1",
ImageProject: "debian-cloud",
ImageFamily: "debian-11",
},
name: "profiler-test-gomaster",
wantProfileTypes: []string{"CPU", "HEAP", "THREADS", "CONTENTION", "HEAP_ALLOC"},
Expand All @@ -286,9 +288,11 @@ func TestAgentIntegration(t *testing.T) {
},
{
InstanceConfig: proftest.InstanceConfig{
ProjectID: projectID,
Name: fmt.Sprintf("profiler-test-go%s-%s", goVersionName, runID),
MachineType: "n1-standard-1",
ProjectID: projectID,
Name: fmt.Sprintf("profiler-test-go%s-%s", goVersionName, runID),
MachineType: "n1-standard-1",
ImageProject: "debian-cloud",
ImageFamily: "debian-11",
},
name: fmt.Sprintf("profiler-test-go%s", goVersionName),
wantProfileTypes: []string{"CPU", "HEAP", "THREADS", "CONTENTION", "HEAP_ALLOC"},
Expand All @@ -310,6 +314,9 @@ func TestAgentIntegration(t *testing.T) {
// memory than is available on an n1-standard-1. Use a
// machine type with more memory for backoff test.
MachineType: "n1-highmem-2",

ImageProject: "debian-cloud",
ImageFamily: "debian-11",
},
name: fmt.Sprintf("profiler-backoff-test-go%s", goVersionName),
goVersion: goVersion,
Expand Down

0 comments on commit 5608b12

Please sign in to comment.