Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: servicedata #71

Merged
merged 25 commits into from
Jul 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
4c3e2ad
feat: user service data to serve metadata
ishanarya0 Jun 11, 2024
12cde75
fix: should not return error if user email is missing
ishanarya0 Jun 11, 2024
0b50f68
Merge branch 'main' into servicedata-for-metadata
ishanarya0 Jun 11, 2024
01b2c34
chore: remove unwanted imports
ishanarya0 Jun 11, 2024
8c67023
feat: get group metadata from servicedata
ishanarya0 Jun 11, 2024
9c0db8b
feat: update APIs to use servicedata (#74)
ishanarya0 Jun 18, 2024
354e510
Merge branch 'main' into servicedata-for-metadata
ishanarya0 Jun 18, 2024
3e8af74
fix: field name
ishanarya0 Jun 18, 2024
455e4c7
lint: format
ishanarya0 Jun 18, 2024
6e0bdb8
fix: check permission on keys before create/update
ishanarya0 Jun 19, 2024
b9bc243
lint: formatting
ishanarya0 Jun 19, 2024
3215c13
fix: check permission on keys before create/update
ishanarya0 Jun 19, 2024
ce3fca3
refactor: change field name
ishanarya0 Jun 21, 2024
c09e507
fix: add consistency to lookup resource
ishanarya0 Jun 24, 2024
78426bf
feat: make servicedata key public (#86)
ishanarya0 Jul 10, 2024
03c372b
Merge branch 'main' into servicedata-for-metadata
ishanarya0 Jul 10, 2024
ed2baea
test: fix
ishanarya0 Jul 10, 2024
4d9f17e
test: fix
ishanarya0 Jul 10, 2024
1c30d4b
test: fix
ishanarya0 Jul 10, 2024
8d51441
test: fix wrong response
ishanarya0 Jul 10, 2024
7f4f8b2
fix: self API
ishanarya0 Jul 11, 2024
6cddb8d
test
ishanarya0 Jul 18, 2024
7316920
test
ishanarya0 Jul 18, 2024
45b9046
test: update create group test
ishanarya0 Jul 18, 2024
9b70dd8
test: update update group test
ishanarya0 Jul 18, 2024
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
Prev Previous commit
Next Next commit
test: fix
ishanarya0 committed Jul 10, 2024
commit ed2baeac61606d95d01526a2b372ba0643009c14
12 changes: 10 additions & 2 deletions test/e2e_test/smoke/proxy_test.go
Original file line number Diff line number Diff line change
@@ -442,7 +442,11 @@ func (s *EndToEndProxySmokeTestSuite) TestProxyToEchoServer() {
s.Assert().Equal(s.userID, subjectID)
})
s.Run("resource created on echo server should persist in shieldDB when using composite variable", func() {
userDetail, err := s.client.GetUser(context.Background(), &shieldv1beta1.GetUserRequest{Id: s.userID})
ctx := context.Background()
ctx = metadata.NewOutgoingContext(ctx, metadata.New(map[string]string{
testbench.IdentityHeader: testbench.OrgAdminEmail,
}))
userDetail, err := s.client.GetUser(ctx, &shieldv1beta1.GetUserRequest{Id: s.userID})
s.Require().NoError(err)

url := fmt.Sprintf("http://localhost:%d/api/resource_composite/test-name", s.appConfig.Proxy.Services[0].Port)
@@ -493,7 +497,11 @@ func (s *EndToEndProxySmokeTestSuite) TestProxyToEchoServer() {
s.Assert().Equal(s.userID, subjectID)
})
s.Run("permission expression: permission resource can be composed using multiple variable", func() {
userDetail, err := s.client.GetUser(context.Background(), &shieldv1beta1.GetUserRequest{Id: s.userID})
ctx := context.Background()
ctx = metadata.NewOutgoingContext(ctx, metadata.New(map[string]string{
testbench.IdentityHeader: testbench.OrgAdminEmail,
}))
userDetail, err := s.client.GetUser(ctx, &shieldv1beta1.GetUserRequest{Id: s.userID})
s.Require().NoError(err)

url := fmt.Sprintf("http://localhost:%d/api/update_firehose_based_on_sink/test-name", s.appConfig.Proxy.Services[0].Port)