-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP-2322 Move Amazon linux install script test to new-e2e (#21149)
AP-2322 Move Amazon linux install script test to new-e2e
- Loading branch information
1 parent
e94970c
commit 0fa6ade
Showing
9 changed files
with
138 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
|
||
include: | ||
- /.gitlab/new-e2e_testing/debian.yml | ||
- /.gitlab/new-e2e_testing/amazonlinux.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
|
||
.new-e2e_os_amazonlinux: | ||
variables: | ||
E2E_PLATFORM: amazonlinux | ||
|
||
.new-e2e_install_script: | ||
variables: | ||
TARGETS: ./tests/agent-platform/install-script | ||
TEAM: agent-platform | ||
EXTRA_PARAMS: --osversion $E2E_OSVERS --platform $E2E_PLATFORM --cws-supported-osversion $E2E_CWS_SUPPORTED_OSVERS --major-version $AGENT_MAJOR_VERSION --arch $E2E_ARCH --flavor $FLAVOR | ||
|
||
.new-e2e_amazonlinux_a6_x86_64: | ||
variables: | ||
E2E_ARCH: x86_64 | ||
E2E_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_CWS_SUPPORTED_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_BRANCH_OSVERS: "amazonlinux2023" | ||
needs: ["deploy_rpm_testing-a6_x64"] | ||
|
||
.new-e2e_amazonlinux_a6_arm64: | ||
variables: | ||
E2E_ARCH: arm64 | ||
E2E_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_CWS_SUPPORTED_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_BRANCH_OSVERS: "amazonlinux2023" | ||
needs: ["deploy_rpm_testing-a6_arm64"] | ||
|
||
.new-e2e_amazonlinux_a7_x86_64: | ||
variables: | ||
E2E_ARCH: x86_64 | ||
E2E_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_CWS_SUPPORTED_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_BRANCH_OSVERS: "amazonlinux2023" | ||
needs: ["deploy_rpm_testing-a7_x64"] | ||
|
||
.new-e2e_amazonlinux_a7_arm64: | ||
variables: | ||
E2E_ARCH: arm64 | ||
E2E_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_CWS_SUPPORTED_OSVERS: "amazonlinux2-5-10,amazonlinux2022-5-15,amazonlinux2023" | ||
E2E_BRANCH_OSVERS: "amazonlinux2023" | ||
needs: ["deploy_rpm_testing-a7_arm64"] | ||
|
||
new-e2e-agent-platform-install-script-amazonlinux-a6-x86_64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_amazonlinux | ||
- .new-e2e_amazonlinux_a6_x86_64 | ||
- .new-e2e_agent_a6 | ||
variables: | ||
FLAVOR: datadog-agent | ||
|
||
new-e2e-agent-platform-install-script-amazonlinux-a6-arm64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_amazonlinux | ||
- .new-e2e_amazonlinux_a6_arm64 | ||
- .new-e2e_agent_a6 | ||
variables: | ||
FLAVOR: datadog-agent | ||
|
||
new-e2e-agent-platform-install-script-amazonlinux-a7-x64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_amazonlinux | ||
- .new-e2e_amazonlinux_a7_x86_64 | ||
- .new-e2e_agent_a7 | ||
rules: | ||
!reference [.on_default_new-e2e_tests_a7] | ||
variables: | ||
FLAVOR: datadog-agent | ||
|
||
new-e2e-agent-platform-install-script-amazonlinux-a7-arm64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_amazonlinux | ||
- .new-e2e_amazonlinux_a7_arm64 | ||
- .new-e2e_agent_a7 | ||
rules: | ||
!reference [.on_all_new-e2e_tests_a7] | ||
variables: | ||
FLAVOR: datadog-agent |
25 changes: 25 additions & 0 deletions
25
test/new-e2e/tests/agent-platform/common/pkg-manager/yum.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Unless explicitly stated otherwise all files in this repository are licensed | ||
// under the Apache License Version 2.0. | ||
// This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
// Copyright 2016-present Datadog, Inc. | ||
|
||
package pkgmanager | ||
|
||
import ( | ||
e2eClient "github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client" | ||
) | ||
|
||
// YumPackageManager struct for the Yum package manager | ||
type YumPackageManager struct { | ||
vmClient e2eClient.VM | ||
} | ||
|
||
// NewYumPackageManager return yum package manager | ||
func NewYumPackageManager(vmClient e2eClient.VM) *YumPackageManager { | ||
return &YumPackageManager{vmClient: vmClient} | ||
} | ||
|
||
// Remove executes remove command from yum | ||
func (s *YumPackageManager) Remove(pkg string) (string, error) { | ||
return s.vmClient.ExecuteWithError("sudo yum remove -y " + pkg) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters