-
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.
APL-2320 Move Suse install script tests to new e2e (#21205)
APL-2320 Move Suse install script tests to new e2e
- Loading branch information
1 parent
8256c73
commit c58efae
Showing
7 changed files
with
153 additions
and
1 deletion.
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 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,96 @@ | ||
|
||
.new-e2e_os_suse: | ||
variables: | ||
E2E_PLATFORM: suse | ||
|
||
.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_suse_a6_x86_64: | ||
variables: | ||
E2E_ARCH: x86_64 | ||
E2E_OSVERS: "sles-12,sles-15" | ||
E2E_CWS_SUPPORTED_OSVERS: "sles-12,sles-15" | ||
E2E_BRANCH_OSVERS: "sles-15" | ||
needs: ["deploy_deb_testing-a6_x64"] | ||
|
||
.new-e2e_suse_a7_x86_64: | ||
variables: | ||
E2E_ARCH: x86_64 | ||
E2E_OSVERS: "sles-12,sles-15" | ||
E2E_CWS_SUPPORTED_OSVERS: "sles-12,sles-15" | ||
E2E_BRANCH_OSVERS: "sles-15" | ||
needs: ["deploy_deb_testing-a7_x64"] | ||
|
||
.new-e2e_suse_a7_arm64: | ||
variables: | ||
E2E_ARCH: arm64 | ||
E2E_OSVERS: "sles-15" | ||
E2E_CWS_SUPPORTED_OSVERS: "sles-15" | ||
E2E_BRANCH_OSVERS: "sles-15" | ||
needs: ["deploy_deb_testing-a7_arm64"] | ||
|
||
new-e2e-agent-platform-install-script-suse-a6-x86_64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_suse | ||
- .new-e2e_suse_a6_x86_64 | ||
- .new-e2e_agent_a6 | ||
variables: | ||
FLAVOR: datadog-agent | ||
|
||
new-e2e-agent-platform-install-script-suse-a7-x86_64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_suse | ||
- .new-e2e_suse_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-suse-a7-arm64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_suse | ||
- .new-e2e_suse_a7_arm64 | ||
- .new-e2e_agent_a7 | ||
rules: | ||
!reference [.on_all_new-e2e_tests_a7] | ||
variables: | ||
FLAVOR: datadog-agent | ||
|
||
new-e2e-agent-platform-install-script-suse-iot-agent-a7-x86_64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_suse | ||
- .new-e2e_suse_a7_x86_64 | ||
- .new-e2e_agent_a7 | ||
rules: | ||
!reference [.on_default_new-e2e_tests_a7] | ||
variables: | ||
FLAVOR: datadog-iot-agent | ||
|
||
new-e2e-agent-platform-install-script-suse-dogstatsd-a7-x86_64: | ||
stage: kitchen_testing | ||
extends: | ||
- .new_e2e_template | ||
- .new-e2e_install_script | ||
- .new-e2e_os_suse | ||
- .new-e2e_suse_a7_x86_64 | ||
- .new-e2e_agent_a7 | ||
variables: | ||
FLAVOR: datadog-dogstatsd | ||
|
23 changes: 23 additions & 0 deletions
23
test/new-e2e/tests/agent-platform/common/pkg-manager/zypper.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,23 @@ | ||
// 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 "github.com/DataDog/datadog-agent/test/new-e2e/pkg/utils/e2e/client" | ||
|
||
// ZypperPackageManager is a package manager for zypper | ||
type ZypperPackageManager struct { | ||
vmClient client.VM | ||
} | ||
|
||
// NewZypperPackageManager return zypper package manager | ||
func NewZypperPackageManager(vmClient client.VM) *ZypperPackageManager { | ||
return &ZypperPackageManager{vmClient: vmClient} | ||
} | ||
|
||
// Remove executes remove command from zypper | ||
func (s *ZypperPackageManager) Remove(pkg string) (string, error) { | ||
return s.vmClient.ExecuteWithError("sudo zypper 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
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