Skip to content

Commit

Permalink
Added missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niemyjski committed Sep 26, 2024
1 parent 77ed88a commit c49dfea
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
9 changes: 6 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
version: '2'

services:
minio:
image: minio/minio:RELEASE.2024-03-10T02-53-48Z
image: minio/minio:RELEASE.2024-09-22T00-33-43Z
command:
- server
- "/data"
Expand All @@ -11,6 +9,11 @@ services:
MINIO_ROOT_PASSWORD: "zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG"
ports:
- "9000:9000"
deploy:
resources:
limits:
memory: 1g

ready:
image: andrewlock/wait-for-dependencies
command: minio:9000
Expand Down
1 change: 0 additions & 1 deletion src/Foundatio.Minio/Storage/MinioFileStorage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.IO;
using System.Linq;
using System.Reactive.Linq;
using System.Runtime.ExceptionServices;
using System.Text.RegularExpressions;
using System.Threading;
using System.Threading.Tasks;
Expand Down
18 changes: 18 additions & 0 deletions tests/Foundatio.Minio.Tests/Storage/MinioFileStorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ public override Task CanGetFileListForSingleFolderAsync()
return base.CanGetFileListForSingleFolderAsync();
}

[Fact]
public override Task CanGetFileListForSingleFileAsync()
{
return base.CanGetFileListForSingleFileAsync();
}

[Fact]
public override Task CanGetPagedFileListForSingleFolderAsync()
{
Expand Down Expand Up @@ -137,4 +143,16 @@ public override Task WillRespectStreamOffsetAsync()
{
return base.WillRespectStreamOffsetAsync();
}

[Fact(Skip = "Write Stream is not yet supported")]
public override Task WillWriteStreamContentAsync()
{
return base.WillWriteStreamContentAsync();
}

[Fact]
public override Task CanSaveOverExistingStoredContent()

Check failure on line 154 in tests/Foundatio.Minio.Tests/Storage/MinioFileStorageTests.cs

View workflow job for this annotation

GitHub Actions / build / build

'MinioFileStorageTests.CanSaveOverExistingStoredContent()': no suitable method found to override

Check failure on line 154 in tests/Foundatio.Minio.Tests/Storage/MinioFileStorageTests.cs

View workflow job for this annotation

GitHub Actions / build / build

'MinioFileStorageTests.CanSaveOverExistingStoredContent()': no suitable method found to override
{
return base.CanSaveOverExistingStoredContent();
}
}

0 comments on commit c49dfea

Please sign in to comment.