diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs deleted file mode 100644 index 8231789209..0000000000 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/AddUrlAcl.cs +++ /dev/null @@ -1,20 +0,0 @@ -namespace ServiceControl.Management.PowerShell -{ - using System; - using System.Management.Automation; - using Particular.Obsoletes; - - [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http add urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http add urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", false)] - [Cmdlet(VerbsCommon.Add, "UrlAcl")] - public class AddUrlAcl : PSCmdlet - { - [ValidateNotNullOrEmpty] - [Parameter(Mandatory = true, Position = 0, HelpMessage = "The URL to add to the URLACL list. This should always in a trailing /")] - public string Url { get; set; } - - [ValidateNotNullOrEmpty] - [Parameter(Mandatory = true, Position = 1, HelpMessage = "The user or group to assign to this URLACL")] - public string[] Users; - } -} \ No newline at end of file diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs deleted file mode 100644 index ca1d6c3c9c..0000000000 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/GetUrlAcls.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ServiceControl.Management.PowerShell -{ - using System; - using System.Management.Automation; - using Particular.Obsoletes; - - [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http show urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http show urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", false)] - [Cmdlet(VerbsCommon.Get, "UrlAcls")] - public class GetUrlAcls : PSCmdlet; -} \ No newline at end of file diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs deleted file mode 100644 index 19855324eb..0000000000 --- a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/RemoveUrlAcl.cs +++ /dev/null @@ -1,11 +0,0 @@ -namespace ServiceControl.Management.PowerShell -{ - using System; - using System.Management.Automation; - using Particular.Obsoletes; - - [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http delete urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] - [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http delete urlacl' instead. Will be treated as an error from version 7.0.0. Will be removed in version 8.0.0.", false)] - [Cmdlet(VerbsCommon.Remove, "UrlAcl")] - public class RemoveUrlAcl : PSCmdlet; -} \ No newline at end of file diff --git a/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs new file mode 100644 index 0000000000..261e0a4fae --- /dev/null +++ b/src/ServiceControl.Management.PowerShell/Cmdlets/UrlAcls/obsoletes-v7.cs @@ -0,0 +1,22 @@ +#pragma warning disable CS1591 +namespace ServiceControl.Management.PowerShell +{ + using System; + using System.Management.Automation; + using Particular.Obsoletes; + + [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http show urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http show urlacl' instead. Will be removed in version 8.0.0.", true)] + [Cmdlet(VerbsCommon.Get, "UrlAcls")] + public class GetUrlAcls : PSCmdlet; + + [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http add urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http add urlacl' instead. Will be removed in version 8.0.0.", true)] + [Cmdlet(VerbsCommon.Add, "UrlAcl")] + public class AddUrlAcl : PSCmdlet; + + [ObsoleteMetadata(Message = "ServiceControl no longer requires URL reservations, so this command no longer functions", ReplacementTypeOrMember = "netsh http delete urlacl", TreatAsErrorFromVersion = "7", RemoveInVersion = "8")] + [Obsolete("ServiceControl no longer requires URL reservations, so this command no longer functions. Use 'netsh http delete urlacl' instead. Will be removed in version 8.0.0.", true)] + [Cmdlet(VerbsCommon.Remove, "UrlAcl")] + public class RemoveUrlAcl : PSCmdlet; +} \ No newline at end of file diff --git a/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt b/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt index c0fafba4a7..6eac0fab2d 100644 --- a/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt +++ b/src/ServiceControl.Persistence.Tests.RavenDB/ApprovalFiles/RavenPersistedTypes.Verify.approved.txt @@ -1,14 +1,14 @@ -ServiceControl.Contracts.CustomChecks.CustomCheck, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.EventLog.EventLogItem, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.MessageFailures.FailedMessage, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.MessageFailures.GroupComment, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.MessageFailures.QueueAddress, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Operations.FailedErrorImport, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.KnownEndpoint, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.MessagesViewIndex+SortAndFilterOptions, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RavenDB.FailedMessageRetry, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RavenDB.RetryBatch, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RavenDB.Throughput.Models.EndpointDocument, ServiceControl.Persistence.RavenDB, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Persistence.RetryBatchGroup, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Recoverability.FailureGroupMessageView, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null -ServiceControl.Recoverability.FailureGroupView, ServiceControl.Persistence, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null \ No newline at end of file +ServiceControl.Contracts.CustomChecks.CustomCheck, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.EventLog.EventLogItem, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.MessageFailures.FailedMessage, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.MessageFailures.GroupComment, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.MessageFailures.QueueAddress, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Operations.FailedErrorImport, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.KnownEndpoint, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.MessagesViewIndex+SortAndFilterOptions, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RavenDB.FailedMessageRetry, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RavenDB.RetryBatch, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RavenDB.Throughput.Models.EndpointDocument, ServiceControl.Persistence.RavenDB, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Persistence.RetryBatchGroup, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Recoverability.FailureGroupMessageView, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null +ServiceControl.Recoverability.FailureGroupView, ServiceControl.Persistence, Version=7.0.0.0, Culture=neutral, PublicKeyToken=null \ No newline at end of file