Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*.user
bin/
obj/
pkg/
packages/
TestResults/

Expand Down
115 changes: 115 additions & 0 deletions DurableTask.sln
Original file line number Diff line number Diff line change
Expand Up @@ -45,54 +45,112 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DurableTask.Redis", "src\Du
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DurableTask.Redis.Tests", "Test\DurableTask.Redis.Tests\DurableTask.Redis.Tests.csproj", "{B1C3B554-A098-47F8-8FA9-C28B5BBF35B1}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DurableTask.AzureServiceFabric", "src\DurableTask.AzureServiceFabric\DurableTask.AzureServiceFabric.csproj", "{3C10169F-4ACB-4FF6-A12B-B74569613E81}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DurableTask.AzureServiceFabric.Tests", "Test\DurableTask.AzureServiceFabric.Tests\DurableTask.AzureServiceFabric.Tests.csproj", "{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DurableTask.AzureServiceFabric.Integration.Tests", "Test\DurableTask.AzureServiceFabric.Integration.Tests\DurableTask.AzureServiceFabric.Integration.Tests.csproj", "{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestFabricApplication", "TestFabricApplication", "{C53918E6-667A-4930-837C-0018C5D6E374}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.Common", "Test\TestFabricApplication\TestApplication.Common\TestApplication.Common.csproj", "{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestApplication.StatefulService", "Test\TestFabricApplication\TestApplication.StatefulService\TestApplication.StatefulService.csproj", "{88A231A9-940D-43E4-B7CD-B46BA9375367}"
EndProject
Project("{A07B5EB6-E848-4116-A8D0-A826331D98C6}") = "TestApplication", "Test\TestFabricApplication\TestApplication\TestApplication.sfproj", "{1D52F94E-933C-411F-96C4-4960B423586F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Debug|x64.ActiveCfg = Debug|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Debug|x64.Build.0 = Debug|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Release|Any CPU.Build.0 = Release|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Release|x64.ActiveCfg = Release|Any CPU
{6F5D2EAD-726D-4FE5-A575-AEB96D1CCE37}.Release|x64.Build.0 = Release|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Debug|x64.ActiveCfg = Debug|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Debug|x64.Build.0 = Debug|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Release|Any CPU.Build.0 = Release|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Release|x64.ActiveCfg = Release|Any CPU
{6639DA74-9063-4A7C-9484-0A71C4FB5C18}.Release|x64.Build.0 = Release|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Debug|Any CPU.Build.0 = Debug|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Debug|x64.ActiveCfg = Debug|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Debug|x64.Build.0 = Debug|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Release|Any CPU.ActiveCfg = Release|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Release|Any CPU.Build.0 = Release|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Release|x64.ActiveCfg = Release|Any CPU
{879670A7-919B-4AF9-8AFB-7C4EDAA0CC04}.Release|x64.Build.0 = Release|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Debug|x64.ActiveCfg = Debug|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Debug|x64.Build.0 = Debug|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Release|Any CPU.Build.0 = Release|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Release|x64.ActiveCfg = Release|Any CPU
{BC204374-927C-4A48-8473-F5BF8C97EAEA}.Release|x64.Build.0 = Release|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Debug|Any CPU.Build.0 = Debug|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Debug|x64.ActiveCfg = Debug|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Debug|x64.Build.0 = Debug|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Release|Any CPU.ActiveCfg = Release|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Release|Any CPU.Build.0 = Release|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Release|x64.ActiveCfg = Release|Any CPU
{96980359-8003-4500-B97B-949A7FE01F31}.Release|x64.Build.0 = Release|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Debug|x64.ActiveCfg = Debug|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Debug|x64.Build.0 = Debug|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Release|Any CPU.Build.0 = Release|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Release|x64.ActiveCfg = Release|Any CPU
{2BC2A5AD-4200-41B9-A034-332BB1D7187B}.Release|x64.Build.0 = Release|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Debug|x64.ActiveCfg = Debug|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Debug|x64.Build.0 = Debug|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Release|Any CPU.Build.0 = Release|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Release|x64.ActiveCfg = Release|Any CPU
{C8634F14-BE3B-4685-B0E1-C5726F8F3758}.Release|x64.Build.0 = Release|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Debug|x64.ActiveCfg = Debug|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Debug|x64.Build.0 = Debug|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Release|Any CPU.Build.0 = Release|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Release|x64.ActiveCfg = Release|Any CPU
{ACC997BF-D541-4BAF-A91C-7EC0B65426A9}.Release|x64.Build.0 = Release|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Debug|Any CPU.Build.0 = Debug|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Debug|x64.ActiveCfg = Debug|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Debug|x64.Build.0 = Debug|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Release|Any CPU.ActiveCfg = Release|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Release|Any CPU.Build.0 = Release|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Release|x64.ActiveCfg = Release|Any CPU
{295A38D6-F8BF-446A-A274-E78BD1C56514}.Release|x64.Build.0 = Release|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Debug|x64.ActiveCfg = Debug|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Debug|x64.Build.0 = Debug|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Release|Any CPU.Build.0 = Release|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Release|x64.ActiveCfg = Release|Any CPU
{F1B270EA-9DC2-4753-B3DE-B45D3C128FDB}.Release|x64.Build.0 = Release|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Debug|x64.ActiveCfg = Debug|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Debug|x64.Build.0 = Debug|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Release|Any CPU.Build.0 = Release|Any CPU
{BDA5B320-5282-49FE-B0A7-1F8A0F06862C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
Expand All @@ -103,6 +161,56 @@ Global
{B1C3B554-A098-47F8-8FA9-C28B5BBF35B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B1C3B554-A098-47F8-8FA9-C28B5BBF35B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B1C3B554-A098-47F8-8FA9-C28B5BBF35B1}.Release|Any CPU.Build.0 = Release|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Release|x64.ActiveCfg = Release|Any CPU
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9}.Release|x64.Build.0 = Release|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Debug|x64.ActiveCfg = Debug|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Debug|x64.Build.0 = Debug|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Release|Any CPU.Build.0 = Release|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Release|x64.ActiveCfg = Release|Any CPU
{3C10169F-4ACB-4FF6-A12B-B74569613E81}.Release|x64.Build.0 = Release|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Debug|x64.ActiveCfg = Debug|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Debug|x64.Build.0 = Debug|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Release|Any CPU.Build.0 = Release|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Release|x64.ActiveCfg = Release|Any CPU
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A}.Release|x64.Build.0 = Release|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Debug|x64.ActiveCfg = Debug|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Debug|x64.Build.0 = Debug|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Release|Any CPU.Build.0 = Release|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Release|x64.ActiveCfg = Release|Any CPU
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF}.Release|x64.Build.0 = Release|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Debug|Any CPU.Build.0 = Debug|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Debug|x64.ActiveCfg = Debug|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Debug|x64.Build.0 = Debug|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Release|Any CPU.ActiveCfg = Release|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Release|Any CPU.Build.0 = Release|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Release|x64.ActiveCfg = Release|Any CPU
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35}.Release|x64.Build.0 = Release|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Debug|Any CPU.Build.0 = Debug|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Debug|x64.ActiveCfg = Debug|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Debug|x64.Build.0 = Debug|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Release|Any CPU.ActiveCfg = Release|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Release|Any CPU.Build.0 = Release|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Release|x64.ActiveCfg = Release|Any CPU
{88A231A9-940D-43E4-B7CD-B46BA9375367}.Release|x64.Build.0 = Release|Any CPU
{1D52F94E-933C-411F-96C4-4960B423586F}.Debug|Any CPU.ActiveCfg = Debug|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Debug|x64.ActiveCfg = Debug|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Debug|x64.Build.0 = Debug|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Debug|x64.Deploy.0 = Debug|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Release|Any CPU.ActiveCfg = Release|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Release|x64.ActiveCfg = Release|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Release|x64.Build.0 = Release|x64
{1D52F94E-933C-411F-96C4-4960B423586F}.Release|x64.Deploy.0 = Release|x64
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -121,6 +229,13 @@ Global
{7CD147F9-1BB9-41FD-A310-BCA07447A6B9} = {95C69A06-7F62-4652-A480-207B614C2869}
{BDA5B320-5282-49FE-B0A7-1F8A0F06862C} = {DBCD161C-D409-48E5-924E-9B7FA1C36B84}
{B1C3B554-A098-47F8-8FA9-C28B5BBF35B1} = {95C69A06-7F62-4652-A480-207B614C2869}
{3C10169F-4ACB-4FF6-A12B-B74569613E81} = {DBCD161C-D409-48E5-924E-9B7FA1C36B84}
{AA0BCA9D-03F7-4F33-BBD5-2D99181E1C2A} = {95C69A06-7F62-4652-A480-207B614C2869}
{8C3D4CA2-4158-4631-BD5E-F5D066962FAF} = {95C69A06-7F62-4652-A480-207B614C2869}
{C53918E6-667A-4930-837C-0018C5D6E374} = {95C69A06-7F62-4652-A480-207B614C2869}
{99EB4BD2-72E4-4471-8E8D-9454BEACFA35} = {C53918E6-667A-4930-837C-0018C5D6E374}
{88A231A9-940D-43E4-B7CD-B46BA9375367} = {C53918E6-667A-4930-837C-0018C5D6E374}
{1D52F94E-933C-411F-96C4-4960B423586F} = {C53918E6-667A-4930-837C-0018C5D6E374}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {2D63A120-9394-48D9-8CA9-1184364FB854}
Expand Down
11 changes: 11 additions & 0 deletions Test/DurableTask.AzureServiceFabric.Integration.Tests/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
// ----------------------------------------------------------------------------------
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace DurableTask.AzureServiceFabric.Integration.Tests
{
using System;
using System.IO;

using DurableTask.AzureServiceFabric.Integration.Tests.DeploymentUtil;

using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
public class AssemblySetup
{
[AssemblyInitialize]
public static void AssemblyInitialize(TestContext testContext)
{
//Todo: This will fail if local cluster is not setup, currently the test code does not automatically
//start a local cluster and that's a manual pre-req step.
//Todo: Also this will assume that latest SF test application and service code is packaged, if that's not true
//the issue might be hard to detect :-(
DeploymentHelper.CleanAsync().Wait();
DeploymentHelper.DeployAsync(TestApplicationRootPath).Wait();
}

[AssemblyCleanup]
public static void AssemblyCleanup()
{
DeploymentHelper.CleanAsync().Wait();
}

static string TestApplicationRootPath
{
get
{
var sourceRoot = Environment.GetEnvironmentVariable("SourceRoot") ?? string.Empty;
var applicationPath = Path.Combine(sourceRoot.Trim(), "Test", "TestFabricApplication", "TestFabricApplication");

if (!Directory.Exists(applicationPath))
{
throw new Exception("Could not find test application path, define SourceRoot environment variable to the source path");
}

if (!Directory.Exists(Path.Combine(applicationPath, "pkg", "Debug")))
{
throw new Exception("Could not find test application package, make sure the test application is built and package generated before running the tests");
}

return applicationPath;
}
}
}
}
20 changes: 20 additions & 0 deletions Test/DurableTask.AzureServiceFabric.Integration.Tests/Constants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ----------------------------------------------------------------------------------
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

namespace DurableTask.AzureServiceFabric.Integration.Tests
{
static class Constants
{
public const string TestFabricApplicationAddress = "fabric:/TestFabricApplicationType/TestStatefulService";
}
}
Loading