Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pvanbuijtene committed Jul 25, 2023
1 parent 3374630 commit 7f4522f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,9 @@ public async Task returns_result_with_normal_user_credentials() {
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(noDefaultCredentials: true){
}

protected override async Task Given() {
if (SupportsPSToAll.No) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public async Task returns_result_with_normal_user_credentials() {
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(skipPSWarmUp: true) {
public Fixture () : base(skipPSWarmUp: true, noDefaultCredentials: true) {
}

protected override async Task Given() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ await Assert.ThrowsAsync<AccessDeniedException>(() =>
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(noDefaultCredentials: true) {
}

protected override async Task Given() {
if (SupportsPSToAll.No) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ public async Task returns_result_for_normal_user() {
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(noDefaultCredentials: true) {
}

protected override Task Given() =>
Client.CreateToStreamAsync(
groupName: GroupName,
Expand Down Expand Up @@ -174,7 +177,7 @@ await Client.SubscribeToStreamAsync(
for (int i = 0; i < 15; i++) {
await StreamsClient.AppendToStreamAsync(StreamName, StreamState.Any, new [] {
new EventData(Uuid.NewUuid(), "test-event", ReadOnlyMemory<byte>.Empty)
});
}, userCredentials: TestCredentials.Root);
}

await tcs.Task;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public async Task returns_result_with_normal_user_credentials() {
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(skipPSWarmUp: true) {
public Fixture () : base(skipPSWarmUp: true, noDefaultCredentials: true) {
}

protected override async Task Given() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ await Assert.ThrowsAsync<AccessDeniedException>(() =>
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(noDefaultCredentials: true) {
}

protected override Task Given() =>
Client.CreateToStreamAsync(
StreamName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ await Assert.ThrowsAsync<AccessDeniedException>(async () =>
}

public class Fixture : EventStoreClientFixture {
public Fixture () : base(noDefaultCredentials: true) {
}

protected override Task Given() => Task.CompletedTask;
protected override Task When() => Task.CompletedTask;
}
Expand Down

0 comments on commit 7f4522f

Please sign in to comment.