Skip to content

Commit f7371dc

Browse files
bacherfltoddbaert
andauthored
feat: in-process provider (#149)
Signed-off-by: Florian Bacher <[email protected]> Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Todd Baert <[email protected]>
1 parent e112f6c commit f7371dc

31 files changed

+3876
-647
lines changed

Diff for: .github/workflows/ci.yml

+38
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,44 @@ jobs:
4444
- name: Test
4545
run: dotnet test --no-build --logger GitHubActions
4646

47+
e2e:
48+
runs-on: ubuntu-latest
49+
services:
50+
# flagd-testbed for flagd RPC provider e2e tests
51+
flagd:
52+
image: ghcr.io/open-feature/flagd-testbed:v0.5.0
53+
ports:
54+
- 8013:8013
55+
# sync-testbed for flagd in-process provider e2e tests
56+
sync:
57+
image: ghcr.io/open-feature/sync-testbed:v0.5.0
58+
ports:
59+
- 9090:9090
60+
steps:
61+
- name: Checkout
62+
uses: actions/checkout@v4
63+
with:
64+
fetch-depth: 0
65+
submodules: recursive
66+
67+
- name: Setup .NET SDK
68+
uses: actions/setup-dotnet@v4
69+
env:
70+
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
with:
72+
dotnet-version: |
73+
6.0.x
74+
7.0.x
75+
source-url: https://nuget.pkg.github.com/open-feature/index.json
76+
77+
- name: Copy Gherkin
78+
run: |
79+
cp spec/specification/assets/gherkin/evaluation.feature test/OpenFeature.Contrib.Providers.Flagd.E2e.RpcTest/Features
80+
cp spec/specification/assets/gherkin/evaluation.feature test/OpenFeature.Contrib.Providers.Flagd.E2e.ProcessTest/Features
81+
82+
- name: Test
83+
run: E2E=true dotnet test --logger GitHubActions
84+
4785
packaging:
4886
needs: build
4987

Diff for: .gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[submodule "src/OpenFeature.Contrib.Providers.Flagd/schemas"]
22
path = src/OpenFeature.Contrib.Providers.Flagd/schemas
33
url = [email protected]:open-feature/schemas.git
4+
[submodule "spec"]
5+
path = spec
6+
url = https://github.com/open-feature/spec.git

Diff for: DotnetSdkContrib.sln

+21
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OpenFeature.Contrib.Provide
3131
EndProject
3232
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}"
3333
EndProject
34+
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}"
35+
EndProject
36+
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}"
37+
EndProject
38+
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}"
39+
EndProject
3440
Global
3541
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3642
Debug|Any CPU = Debug|Any CPU
@@ -85,6 +91,18 @@ Global
8591
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
8692
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
8793
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB}.Release|Any CPU.Build.0 = Release|Any CPU
94+
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
95+
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Debug|Any CPU.Build.0 = Debug|Any CPU
96+
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Release|Any CPU.ActiveCfg = Release|Any CPU
97+
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193}.Release|Any CPU.Build.0 = Release|Any CPU
98+
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
99+
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
100+
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
101+
{2ACD9150-A8F4-450E-B49A-C628895992BF}.Release|Any CPU.Build.0 = Release|Any CPU
102+
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
103+
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
104+
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
105+
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2}.Release|Any CPU.Build.0 = Release|Any CPU
88106
EndGlobalSection
89107
GlobalSection(SolutionProperties) = preSolution
90108
HideSolutionNode = FALSE
@@ -102,5 +120,8 @@ Global
102120
{8A8EC7E5-4844-4F32-AE19-5591FAB9B75C} = {0E563821-BD08-4B7F-BF9D-395CAD80F026}
103121
{2F988A3F-727F-4326-995D-9C123A5E44AA} = {0E563821-BD08-4B7F-BF9D-395CAD80F026}
104122
{9EBB5E8F-9F05-4DFF-9E99-2BAA5D5325FB} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
123+
{4A2C6E0F-8A23-454F-8019-AE3DD91AA193} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
124+
{2ACD9150-A8F4-450E-B49A-C628895992BF} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
125+
{B8C5376B-BAFE-48B8-ABC1-111A93C033F2} = {B6D3230B-5E4D-4FF1-868E-2F4E325C84FE}
105126
EndGlobalSection
106127
EndGlobal

Diff for: spec

Submodule spec added at b58c3b4

0 commit comments

Comments
 (0)