Skip to content

Commit

Permalink
Adding the extra writer permission to fix the integration test issue …
Browse files Browse the repository at this point in the history
…with offline server.

Signed-off-by: Lokesh Rangineni <19699092+lokeshrangineni@users.noreply.github.com>
  • Loading branch information
lokeshrangineni committed Aug 6, 2024
1 parent 377fce1 commit a21fe89
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 a21fe89

Please sign in to comment.