-
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 #62 from petabridge/dev
v0.5.0 Release
- Loading branch information
Showing
47 changed files
with
2,829 additions
and
260 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,2 +1,6 @@ | ||
#### 0.1.0 July 12 2019 #### | ||
**Beta Release of Akka.Persistence.Azure** | ||
#### 0.5.0 October 08 2019 #### | ||
**Beta Release of Akka.Persistence.Azure** | ||
|
||
Akka.Persistence.Azure v0.5.0 is a major leap forward ahead of v0.1.0. It fully implements Akka.Persistence.Query and fully implements Akka.NET v1.4.0-compatible serialization techniques. | ||
|
||
There are still some issues with respect to ordering and result sets from Akka.Persistence.Query and those will be addressed in a future release of Akka.Persistence.Azure. |
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
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
15 changes: 9 additions & 6 deletions
15
src/Akka.Persistence.Azure.Tests/Akka.Persistence.Azure.Tests.csproj
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
34 changes: 34 additions & 0 deletions
34
src/Akka.Persistence.Azure.Tests/AzureBlobSnapshotStoreSerializationSpec.cs
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,34 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="AzureBlobSnapshotStoreSerializationSpec.cs" company="Petabridge, LLC"> | ||
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com> | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
using System; | ||
using Akka.Configuration; | ||
using Akka.Persistence.Azure.TestHelpers; | ||
using Akka.Persistence.Azure.Tests.Helper; | ||
using Akka.Persistence.TCK.Serialization; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Akka.Persistence.Azure.Tests | ||
{ | ||
[Collection("AzureSnapshot")] | ||
public class AzureBlobSnapshotStoreSerializationSpec : SnapshotStoreSerializationSpec | ||
{ | ||
public AzureBlobSnapshotStoreSerializationSpec(ITestOutputHelper output) : base(Config(), | ||
nameof(AzureTableJournalSpec), output) | ||
{ | ||
AzurePersistence.Get(Sys); | ||
} | ||
|
||
public static Config Config() | ||
{ | ||
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR"))) | ||
return AzureStorageConfigHelper.AzureConfig(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR")); | ||
|
||
return AzureStorageConfigHelper.AzureConfig(WindowsAzureStorageEmulatorFixture.GenerateConnStr()); | ||
} | ||
} | ||
} |
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
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
29 changes: 0 additions & 29 deletions
29
src/Akka.Persistence.Azure.Tests/AzureStorageConfigHelper.cs
This file was deleted.
Oops, something went wrong.
60 changes: 60 additions & 0 deletions
60
src/Akka.Persistence.Azure.Tests/AzureTableJournalSerializationSpec.cs
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,60 @@ | ||
// ----------------------------------------------------------------------- | ||
// <copyright file="AzureTableJournalSerializationSpec.cs" company="Petabridge, LLC"> | ||
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com> | ||
// </copyright> | ||
// ----------------------------------------------------------------------- | ||
|
||
using System; | ||
using Akka.Configuration; | ||
using Akka.Persistence.Azure.TestHelpers; | ||
using Akka.Persistence.Azure.Tests.Helper; | ||
using Akka.Persistence.TCK.Serialization; | ||
using Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Akka.Persistence.Azure.Tests | ||
{ | ||
[Collection("AzureJournal")] | ||
public class AzureTableJournalSerializationSpec : JournalSerializationSpec | ||
{ | ||
public AzureTableJournalSerializationSpec(ITestOutputHelper output) | ||
: base(Config(), nameof(AzureTableJournalSerializationSpec), output) | ||
{ | ||
AzurePersistence.Get(Sys); | ||
output.WriteLine("Current table: {0}", TableName); | ||
} | ||
|
||
[Fact(Skip= "https://github.com/akkadotnet/akka.net/issues/3965")] | ||
public override void Journal_should_serialize_Persistent_with_EventAdapter_manifest() | ||
{ | ||
|
||
} | ||
|
||
public static string TableName { get; private set; } | ||
|
||
public static Config Config() | ||
{ | ||
var azureConfig = | ||
!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR")) | ||
? AzureStorageConfigHelper.AzureConfig(Environment.GetEnvironmentVariable("AZURE_CONNECTION_STR")) | ||
: AzureStorageConfigHelper.AzureConfig(WindowsAzureStorageEmulatorFixture.GenerateConnStr()); | ||
|
||
TableName = azureConfig.GetString("akka.persistence.journal.azure-table.table-name"); | ||
|
||
return azureConfig; | ||
} | ||
|
||
protected override void Dispose(bool disposing) | ||
{ | ||
base.Dispose(disposing); | ||
if (DbUtils.CleanupCloudTable(AzurePersistence.Get(Sys).TableSettings.ConnectionString, TableName).Wait(TimeSpan.FromSeconds(3))) | ||
{ | ||
Log.Info("Successfully deleted table [{0}] after test run.", TableName); | ||
} | ||
else | ||
{ | ||
Log.Error("Unable to delete table [{0}] after test run.", TableName); | ||
} | ||
} | ||
} | ||
} |
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
66 changes: 66 additions & 0 deletions
66
src/Akka.Persistence.Azure.Tests/Helper/AzureStorageConfigHelper.cs
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,66 @@ | ||
using System; | ||
using Akka.Configuration; | ||
|
||
namespace Akka.Persistence.Azure.Tests.Helper | ||
{ | ||
public static class AzureStorageConfigHelper | ||
{ | ||
public static Config AzureConfig(string connectionString) | ||
{ | ||
var tableName = "t" + Guid.NewGuid().ToString().Replace("-", ""); | ||
var containerName = "testcontainer" + Guid.NewGuid(); | ||
|
||
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 | ||
event-adapters { | ||
color-tagger = ""Akka.Persistence.TCK.Query.ColorFruitTagger, Akka.Persistence.TCK"" | ||
} | ||
event-adapter-bindings = { | ||
""System.String"" = color-tagger | ||
} | ||
} | ||
} | ||
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"" | ||
azure-blob-store { | ||
connection-string=""" + connectionString + @""" | ||
request-timeout = 3s | ||
} | ||
} | ||
} | ||
}") | ||
.WithFallback("akka.persistence.journal.azure-table.table-name=" + tableName) | ||
.WithFallback("akka.persistence.snapshot-store.azure-blob-store.container-name=" + containerName); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.