Skip to content

Commit ce494ec

Browse files
DavidBoikekentdr
andauthored
Autoupdate & minutae (#8)
* Fix incorrect editorconfig * Update check to use NuGet and correct package name * Minor readme/CI script text changes * Update .github/workflows/ci.yml Co-authored-by: Dan Kent <[email protected]> Co-authored-by: Dan Kent <[email protected]>
1 parent b86ab62 commit ce494ec

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
111111
$dbDetails = az cosmosdb sql database create --name CosmosDBPersistence --account-name $cosmosname --resource-group $gaResourceGroup | ConvertFrom-Json
112112
113-
echo "Creating storage account for NServiceBus.Persistence.CosmosDB.AzureStorageSagaExporter.AcceptanceTests (This can take awhile.)"
113+
echo "Creating storage account (This can take a while.)"
114114
115115
$storageDetails = az storage account create --name $storagename --location $region --resource-group $gaResourceGroup --sku Standard_LRS | ConvertFrom-Json
116116

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Particular.AzureTable.Export
2-
A tool to extract saga data from NServiceBus.Persistence.AzureStorage for import into NServiceBus.Persistence.CosmosDB
2+
A tool to extract saga data from Azure Table storage (used by [NServiceBus.Persistence.AzureStorage](https://www.nuget.org/packages/NServiceBus.Persistence.AzureStorage) or [NServiceBus.Persistence.AzureTable](https://www.nuget.org/packages/NServiceBus.Persistence.AzureTable)) for import into [Cosmos DB](https://azure.microsoft.com/en-us/services/cosmos-db/) to use with [NServiceBus.Persistence.CosmosDB](https://www.nuget.org/packages/NServiceBus.Persistence.CosmosDB).
33

44
## Running tests locally
55

66
All test projects use NUnit. The test projects can be executed using the test runner included with Visual Studio or by using the [`dotnet test` command](https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test) from the command line.
77

8-
The `AzureStorageSagaExporter.AcceptanceTests` projects require access to Azure Table Storage and Cosmos DB for tests to pass.
8+
The test projects require access to Azure Table Storage and Cosmos DB for tests to pass.
99

1010
### Azure Storage emulator set up
1111

src/AzureStorageSagaExporter/.editorconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
# Justification: Test project
44
dotnet_diagnostic.CA2007.severity = none
5-
dotnet_diagnostic.CA2016.severity=silent
6-
dotnet_diagnostic.PS0019.severity=silent
7-
dotnet_diagnostic.PS0018.severity=silent
5+
dotnet_diagnostic.CA2016.severity = silent
6+
dotnet_diagnostic.PS0019.severity = silent
7+
dotnet_diagnostic.PS0018.severity = silent

src/AzureStorageSagaExporter/ToolVersion.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414

1515
public class ToolVersion
1616
{
17-
const string PackageID = "Particular.Asp.Export";
18-
const string FeedUri = "https://www.myget.org/F/particular/api/v3/index.json";
17+
const string PackageID = "Particular.AzureTable.Export";
18+
const string FeedUri = "https://api.nuget.org/v3/index.json";
1919

2020
public static string GetVersionInfo()
2121
{
22-
return $"export-aspsagas {GitVersionInformation.NuGetVersionV2} (Sha:{GitVersionInformation.ShortSha})";
22+
return $"Particular.AzureTable.Export {GitVersionInformation.NuGetVersionV2} (Sha:{GitVersionInformation.ShortSha})";
2323
}
2424

2525
public static async Task<bool> CheckIsLatestVersion(ILogger logger, bool ignoreUpdates, CancellationToken cancellationToken = default)
@@ -44,7 +44,7 @@ public static async Task<bool> CheckIsLatestVersion(ILogger logger, bool ignoreU
4444

4545
log($"*** New version detected: {packageVersion}");
4646
log("*** Update to the latest version using the following command:");
47-
log($"*** dotnet tool update --tool-path <installation-path> {PackageID} --add-source {FeedUri} --version {packageVersion}");
47+
log($"*** dotnet tool update --tool-path <installation-path> {PackageID} --version {packageVersion}");
4848

4949
return ignoreUpdates;
5050

@@ -63,7 +63,7 @@ void log(string message)
6363
}
6464
catch (Exception e)
6565
{
66-
logger.LogWarning("*** Unable to connect to MyGet to check for latest version.");
66+
logger.LogWarning("*** Unable to connect to NuGet to check for latest version.");
6767
logger.LogWarning($"*** Message: {e.Message}");
6868
}
6969

0 commit comments

Comments
 (0)