Skip to content

Commit

Permalink
feat: in-process provider (#149)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <florian.bacher@dynatrace.com>
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
Co-authored-by: Todd Baert <todd.baert@dynatrace.com>
  • Loading branch information
bacherfl and toddbaert authored Feb 13, 2024
1 parent e112f6c commit f7371dc
Show file tree
Hide file tree
Showing 31 changed files with 3,876 additions and 647 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,44 @@ jobs:
- name: Test
run: dotnet test --no-build --logger GitHubActions

e2e:
runs-on: ubuntu-latest
services:
# flagd-testbed for flagd RPC provider e2e tests
flagd:
image: ghcr.io/open-feature/flagd-testbed:v0.5.0
ports:
- 8013:8013
# sync-testbed for flagd in-process provider e2e tests
sync:
image: ghcr.io/open-feature/sync-testbed:v0.5.0
ports:
- 9090:9090
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
dotnet-version: |
6.0.x
7.0.x
source-url: https://nuget.pkg.github.com/open-feature/index.json

- name: Copy Gherkin
run: |
cp spec/specification/assets/gherkin/evaluation.feature test/OpenFeature.Contrib.Providers.Flagd.E2e.RpcTest/Features
cp spec/specification/assets/gherkin/evaluation.feature test/OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest/Features
- name: Test
run: E2E=true dotnet test --logger GitHubActions

packaging:
needs: build

Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "src/OpenFeature.Contrib.Providers.Flagd/schemas"]
path = src/OpenFeature.Contrib.Providers.Flagd/schemas
url = git@github.com:open-feature/schemas.git
[submodule "spec"]
path = spec
url = https://github.com/open-feature/spec.git
21 changes: 21 additions & 0 deletions DotnetSdkContrib.sln
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenFeature.Contrib.Provide
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenFeature.Contrib.Providers.FeatureManagement.Test", "test\OpenFeature.Contrib.Providers.FeatureManagement.Test\OpenFeature.Contrib.Providers.FeatureManagement.Test.csproj", "{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenFeature.Contrib.Providers.Flagd.E2e.Test", "test\OpenFeature.Contrib.Providers.Flagd.E2e.Test\OpenFeature.Contrib.Providers.Flagd.E2e.Test.csproj", "{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenFeature.Contrib.Providers.Flagd.E2e.RpcTest", "test\OpenFeature.Contrib.Providers.Flagd.E2e.RpcTest\OpenFeature.Contrib.Providers.Flagd.E2e.RpcTest.csproj", "{2ACD9150-A8F4-450E-B49A-C628895992BF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest", "test\OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest\OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest.csproj", "{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -85,6 +91,18 @@ Global
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}.Release|Any CPU.Build.0 = Release|Any CPU
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Release|Any CPU.Build.0 = Release|Any CPU
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Release|Any CPU.Build.0 = Release|Any CPU
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -102,5 +120,8 @@ Global
{8A8EC7E5-4844-4F32-AE19-5591FAB9B75C} = {0E563821-BD08-4B7F-BF9D-395CAD80F026}
{2F988A3F-727F-4326-995D-9C123A5E44AA} = {0E563821-BD08-4B7F-BF9D-395CAD80F026}
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
{2ACD9150-A8F4-450E-B49A-C628895992BF} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
EndGlobalSection
EndGlobal
1 change: 1 addition & 0 deletions spec
Submodule spec added at b58c3b
Loading

0 comments on commit f7371dc

Please sign in to comment.