Skip to content

Commit

Permalink
Merge pull request feast-dev#63 from lokeshrangineni/feature/fix-offl…
Browse files Browse the repository at this point in the history
…inestore-test-perm-issue
  • Loading branch information
redhatHameed authored Aug 6, 2024
2 parents 377fce1 + a21fe89 commit 7446cdd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions sdk/python/tests/integration/feature_repos/repo_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,36 +488,36 @@ def setup(self):
Permission(
name="offline_permissions_perm",
types=Permission,
policy=RoleBasedPolicy(roles=["reader"]),
actions=[AuthzedAction.QUERY_OFFLINE],
policy=RoleBasedPolicy(roles=["reader", "writer"]),
actions=[AuthzedAction.QUERY_OFFLINE, AuthzedAction.WRITE_OFFLINE],
),
Permission(
name="offline_entities_perm",
types=Entity,
with_subclasses=False,
policy=RoleBasedPolicy(roles=["reader"]),
actions=[AuthzedAction.QUERY_OFFLINE],
policy=RoleBasedPolicy(roles=["reader", "writer"]),
actions=[AuthzedAction.QUERY_OFFLINE, AuthzedAction.WRITE_OFFLINE],
),
Permission(
name="offline_fv_perm",
types=FeatureView,
with_subclasses=False,
policy=RoleBasedPolicy(roles=["reader"]),
actions=[AuthzedAction.QUERY_OFFLINE],
policy=RoleBasedPolicy(roles=["reader", "writer"]),
actions=[AuthzedAction.QUERY_OFFLINE, AuthzedAction.WRITE_OFFLINE],
),
Permission(
name="offline_odfv_perm",
types=OnDemandFeatureView,
with_subclasses=False,
policy=RoleBasedPolicy(roles=["reader"]),
actions=[AuthzedAction.QUERY_OFFLINE],
policy=RoleBasedPolicy(roles=["reader", "writer"]),
actions=[AuthzedAction.QUERY_OFFLINE, AuthzedAction.WRITE_OFFLINE],
),
Permission(
name="offline_sfv_perm",
types=StreamFeatureView,
with_subclasses=False,
policy=RoleBasedPolicy(roles=["reader"]),
actions=[AuthzedAction.QUERY_OFFLINE],
policy=RoleBasedPolicy(roles=["reader", "writer"]),
actions=[AuthzedAction.QUERY_OFFLINE, AuthzedAction.WRITE_OFFLINE],
),
]
self.feature_store.apply(permissions_list)
Expand Down

0 comments on commit 7446cdd

Please sign in to comment.