Skip to content

Commit

Permalink
Reorganise obsolete tests to prevent cluttering and make future refac…
Browse files Browse the repository at this point in the history
…tor easier
  • Loading branch information
josephcummings committed Apr 30, 2024
1 parent 5090aa5 commit 01f3b09
Show file tree
Hide file tree
Showing 71 changed files with 908 additions and 162 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_max_one_client_obsolete : IClassFixture<connect_to_existing_with_max_one_client_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_beginning_obsolete : IClassFixture<connect_to_existing_with_start_from_beginning_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_obsolete : IClassFixture<connect_to_existing_with_start_from_not_set_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_then_event_written_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_end_position_obsolete: IClassFixture<connect_to_existing_with_start_from_set_to_end_position_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_invalid_middle_position_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_valid_middle_position_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_without_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_without_read_all_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_non_existing_with_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_with_retries_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class deleting_existing_with_subscriber_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class get_info_obsolete : IClassFixture<get_info_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text;

namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_catching_up_to_link_to_events_manual_ack_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_catching_up_to_normal_events_manual_ack_obsolete : IClassFixture<happy_case_catching_up_to_normal_events_manual_ack_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_filtered_obsolete : IClassFixture<happy_case_filtered_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_filtered_with_start_from_set_obsolete : IClassFixture<happy_case_filtered_with_start_from_set_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_writing_and_subscribing_to_normal_events_manual_ack_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

public class update_existing_filtered_obsolete
: IClassFixture<update_existing_filtered_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class update_existing_with_check_point_filtered_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class update_existing_with_subscribers_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class when_writing_and_filtering_out_events_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToAll.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class when_writing_and_subscribing_to_normal_events_manual_nack_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_max_one_client_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_beginning_and_events_in_it_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_beginning_and_no_stream_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_and_events_in_it_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_not_set_and_events_in_it_then_event_written_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_set_to_end_position_and_events_in_it_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_two_and_no_stream_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_x_set_and_events_in_it_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_with_start_from_x_set_and_events_in_it_then_event_written_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_existing_without_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_to_non_existing_with_permissions_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class connect_with_retries_obsolete : IClassFixture<connect_with_retries_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class deleting_existing_with_subscriber_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class get_info_obsolete : IClassFixture<get_info_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Text;

namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_catching_up_to_link_to_events_manual_ack_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_catching_up_to_normal_events_manual_ack_obsolete : IClassFixture<happy_case_catching_up_to_normal_events_manual_ack_obsolete.Fixture> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class happy_case_writing_and_subscribing_to_normal_events_manual_ack_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class update_existing_with_check_point_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class update_existing_with_subscribers_obsolete
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream;
namespace EventStore.Client.PersistentSubscriptions.Tests.SubscriptionToStream.Obsolete;

[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class when_writing_and_subscribing_to_normal_events_manual_nack_obsolete
Expand Down
2 changes: 1 addition & 1 deletion test/EventStore.Client.Streams.Tests/Bugs/Issue_104.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace EventStore.Client.Streams.Tests.Bugs;

[Trait("Category", "Bug")]
[Obsolete]
[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class Issue_104(ITestOutputHelper output, EventStoreFixture fixture) : EventStoreTests<EventStoreFixture>(output, fixture) {
[Fact]
public async Task subscription_does_not_send_checkpoint_reached_after_disposal() {
Expand Down
2 changes: 1 addition & 1 deletion test/EventStore.Client.Streams.Tests/Bugs/Issue_2544.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace EventStore.Client.Streams.Tests.Bugs;

[Trait("Category", "Bug")]
[Obsolete]
[Obsolete("Tests will be removed in future release when older subscriptions APIs are removed from the client")]
public class Issue_2544 : IClassFixture<EventStoreFixture> {
public Issue_2544(ITestOutputHelper output, EventStoreFixture fixture) {
Fixture = fixture.With(x => x.CaptureTestRun(output));
Expand Down
Loading

0 comments on commit 01f3b09

Please sign in to comment.