Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ func (s *testAgentUpgradeSuite) TestUpgradeWithLocalSystemUser() {

// TestDowngradeWithMissingInstallSource tests that a downgrade will succeed even if the original install source is missing
func (s *testAgentUpgradeSuite) TestDowngradeWithMissingInstallSource() {
s.T().Skip("Skipping test due to removal of update install source custom action")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ question: ‏ Do we want to keep the test?

// Arrange
s.setAgentConfig()
s.installCurrentAgentVersion()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,6 @@ public static ActionResult SetupInstaller(Session session)
return Datadog.CustomActions.SetupInstallerCustomAction.SetupInstaller(session);
}

[CustomAction]
public static ActionResult UpdateInstallSource(Session session)
{
return Datadog.CustomActions.UpdateInstallSourceCustomAction.UpdateInstallSource(session);
}

[CustomAction]
public static ActionResult ReportFailure(Session session)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
</ItemGroup>
<ItemGroup>
<Compile Include="APM\ApmConfigTests.cs" />
<Compile Include="InstallSource\InstallSourceTests.cs" />
<Compile Include="InstallState\InstallStateTests.cs" />
<Compile Include="InstallState\InstallStateTestSetup.cs" />
<Compile Include="ProcessUserCustomActions\BaseProcessUserCustomActionsDomainTests.cs" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
<Compile Include="ServiceCustomAction.cs" />
<Compile Include="PatchInstallerCustomAction.cs" />
<Compile Include="SetupInstallerCustomAction.cs" />
<Compile Include="UpdateInstallSourceCustomAction.cs" />
<Compile Include="PythonDistributionCustomAction.cs" />
<Compile Include="Extensions\SessionExtensions.cs" />
<Compile Include="Interfaces\ISession.cs" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ public class AgentCustomActions

public ManagedAction SetupInstaller { get; set; }

public ManagedAction UpdateInstallSource { get; set; }

public ManagedAction EnsureGeneratedFilesRemoved { get; }

public ManagedAction WriteConfig { get; }
Expand Down Expand Up @@ -322,23 +320,6 @@ public AgentCustomActions()
.SetProperties(
"PROJECTLOCATION=[PROJECTLOCATION], FLEET_INSTALL=[FLEET_INSTALL], DATABASE=[DATABASE]");

UpdateInstallSource = new CustomAction<CustomActions>(
new Id(nameof(UpdateInstallSource)),
CustomActions.UpdateInstallSource,
Return.check,
// The built-in RegisterProduct action normally sets the install source,
// so our action must come after it to take effect.
When.Before,
Step.InstallFinalize,
Conditions.FirstInstall | Conditions.Upgrading
)
{
Execute = Execute.deferred,
Impersonate = false
}
.SetProperties(
"PROJECTLOCATION=[PROJECTLOCATION], FLEET_INSTALL=[FLEET_INSTALL], DATABASE=[DATABASE], AgentFlavor=[AgentFlavor]");

// Cleanup leftover files on uninstall
CleanupOnUninstall = new CustomAction<CustomActions>(
new Id(nameof(CleanupOnUninstall)),
Expand Down
Loading