Skip to content

Commit

Permalink
add first test
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelgavache committed Dec 5, 2024
1 parent bb8fa26 commit c92d2c2
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitlab/JOBOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ publish_winget* @DataDog/windows-agent
powershell_script_deploy @DataDog/windows-agent
windows_bootstrapper_deploy @DataDog/windows-agent
qa_*_oci @DataDog/agent-delivery
qa_installer_script @DataDog/agent-delivery

# Deploy containers
deploy_containers* @Datadog/agent-delivery
Expand Down
15 changes: 15 additions & 0 deletions .gitlab/deploy_packages/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,18 @@ qa_installer_oci:
IMG_REGISTRIES: agent-qa
IMG_SOURCES: registry.ddbuild.io/ci/remote-updates/datadog-installer:pipeline-${CI_PIPELINE_ID}
IMG_DESTINATIONS: installer-package:pipeline-${CI_PIPELINE_ID}

qa_installer_script:
image: registry.ddbuild.io/ci/datadog-agent-buildimages/gitlab_agent_deploy$DATADOG_AGENT_BUILDIMAGES_SUFFIX:$DATADOG_AGENT_BUILDIMAGES
stage: deploy_packages
tags: ["arch:amd64"]
rules:
- !reference [.on_installer_or_e2e_changes]
- !reference [.manual]
needs:
- installer-install-scripts
- deploy_installer_oci
before_script:
- ls $OMNIBUS_PACKAGE_DIR
script:
- $S3_CP_CMD --recursive --exclude "*" --include "install-*.sh" --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers "$OMNIBUS_PACKAGE_DIR" "s3://${DEB_TESTING_S3_BUCKET}/installer/pipeline-${CI_PIPELINE_ID}/scripts/"
14 changes: 14 additions & 0 deletions .gitlab/e2e/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,20 @@ new-e2e-apm:
- EXTRA_PARAMS: --run TestVMFakeintakeSuiteUDS
- EXTRA_PARAMS: --run TestVMFakeintakeSuiteTCP

new-e2e-installer-script:
extends: .new_e2e_template
rules:
- !reference [.on_installer_or_e2e_changes]
- !reference [.manual]
needs:
- !reference [.needs_new_e2e_template]
- qa_installer_oci
- qa_installer_script
variables:
TARGETS: ./tests/installer/script
TEAM: fleet
FLEET_INSTALL_METHOD: "install_script"

new-e2e-installer:
extends: .new_e2e_template
rules:
Expand Down
12 changes: 12 additions & 0 deletions test/new-e2e/tests/installer/script/djm_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// 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 installscript

import "testing"

func TestDJMTest(t *testing.T) {
t.Fatal("not implemented")
}

0 comments on commit c92d2c2

Please sign in to comment.