-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #162 from petabridge/dev
v0.8.1 Release
- Loading branch information
Showing
3 changed files
with
105 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,4 @@ | ||
#### 0.8.0 April 16 2021 #### | ||
#### 0.8.1 April 20 2021 #### | ||
**Release of Akka.Persistence.Azure** | ||
|
||
- [Problem with implimentation of akka persistence contract](https://github.com/petabridge/Akka.Persistence.Azure/pull/143) | ||
- [Limiting batch size for table storage](https://github.com/petabridge/Akka.Persistence.Azure/pull/145) | ||
- [Bump AkkaVersion from 1.4.14 to 1.4.18](https://github.com/petabridge/Akka.Persistence.Azure/pull/148) | ||
- [Added settings for auto-initialize](https://github.com/petabridge/Akka.Persistence.Azure/pull/150) | ||
- [Upgrade WindowsAzure.Storage to Microsoft.Azure.Cosmos.Table and Azure.Storage.Blobs](https://github.com/petabridge/Akka.Persistence.Azure/pull/151) | ||
- [Added support to configure blob container public access level](https://github.com/petabridge/Akka.Persistence.Azure/pull/152) | ||
- [Change the default public access type of auto-init containers to None](https://github.com/petabridge/Akka.Persistence.Azure/pull/154) | ||
- [Add DefaultAzureIdentity support for snapshot Azure Blob Storage](https://github.com/petabridge/Akka.Persistence.Azure/pull/155) | ||
|
||
See the README for documentation on how to use the latest features in Akka.Persistence.Azure: https://github.com/petabridge/Akka.Persistence.Azure#akkapersistenceazure | ||
- [Fix BlobContainerClient.CreateIfNotExists() returns null if container already exists](https://github.com/petabridge/Akka.Persistence.Azure/pull/160) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
using System; | ||
using Akka.Configuration; | ||
using Akka.Persistence.Azure.TestHelpers; | ||
using Akka.Persistence.TCK.Snapshot; | ||
using Azure.Storage.Blobs; | ||
using Xunit.Abstractions; | ||
|
||
namespace Akka.Persistence.Azure.Tests | ||
{ | ||
public class Issue159Spec: SnapshotStoreSpec | ||
{ | ||
private static Config Config() | ||
{ | ||
var connectionString = Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR"); | ||
if(string.IsNullOrEmpty(connectionString)) | ||
connectionString = WindowsAzureStorageEmulatorFixture.GenerateConnStr(); | ||
|
||
return ConfigurationFactory.ParseString(@" | ||
akka { | ||
loglevel = DEBUG | ||
log-config-on-start = off | ||
test.single-expect-default = 30s | ||
persistence { | ||
publish-plugin-commands = on | ||
journal { | ||
plugin = ""akka.persistence.journal.azure-table"" | ||
azure-table { | ||
connection-string = """ + connectionString + @""" | ||
connect-timeout = 3s | ||
request-timeout = 3s | ||
verbose-logging = on | ||
} | ||
} | ||
query { | ||
journal { | ||
azure-table { | ||
write-plugin = ""akka.persistence.journal.azure-table"" | ||
refresh-interval = 1s | ||
max-buffer-size = 150 | ||
} | ||
} | ||
} | ||
snapshot-store { | ||
plugin = ""akka.persistence.snapshot-store.azure-blob-store"" | ||
} | ||
} | ||
} | ||
akka.persistence.snapshot-store.azure-blob-store { | ||
class = ""Akka.Persistence.Azure.Snapshot.AzureBlobSnapshotStore, Akka.Persistence.Azure"" | ||
connection-string = """ + connectionString + @""" | ||
container-name = ""default"" | ||
connect-timeout = 3s | ||
request-timeout = 3s | ||
verbose-logging = on | ||
plugin-dispatcher = ""akka.actor.default-dispatcher"" | ||
}"); | ||
} | ||
|
||
public Issue159Spec(ITestOutputHelper output) | ||
: base(Config(), nameof(Issue159Spec), output) | ||
{ | ||
var extension = AzurePersistence.Get(Sys); | ||
|
||
var service = new BlobServiceClient(extension.BlobSettings.ConnectionString); | ||
var containerClient = service.GetBlobContainerClient(extension.BlobSettings.ContainerName); | ||
|
||
// The thing we're testing, the container already exist on the account | ||
if (!containerClient.Exists()) | ||
containerClient.Create(extension.BlobSettings.ContainerPublicAccessType); | ||
|
||
// empty the container, possible junk from previous tests | ||
foreach (var blob in containerClient.GetBlobs()) | ||
{ | ||
containerClient.GetBlobClient(blob.Name).Delete(); | ||
} | ||
|
||
Initialize(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters