From a2409fa2e0c01c69d07a05c37517150e74d113c8 Mon Sep 17 00:00:00 2001 From: gkc Date: Mon, 9 Dec 2024 16:29:56 +0000 Subject: [PATCH] fix: change the default rpc "domainNamespace" to 'policy' test: use PolicyService factory constructor rather than PolicyServiceImpl --- packages/at_policy/lib/src/policy/interfaces.dart | 2 +- packages/at_policy/test/at_policy_test.dart | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/at_policy/lib/src/policy/interfaces.dart b/packages/at_policy/lib/src/policy/interfaces.dart index 74c13b17..d9df40bc 100644 --- a/packages/at_policy/lib/src/policy/interfaces.dart +++ b/packages/at_policy/lib/src/policy/interfaces.dart @@ -48,7 +48,7 @@ abstract class PolicyService implements AtRpcCallbacks { required AtClient atClient, required String baseNamespace, required PolicyRequestHandler handler, - String policyRequestNamespace = 'requests.policy', + String policyRequestNamespace = 'policy', String? loggingAtsign, Set? allowList, bool allowAll = true, diff --git a/packages/at_policy/test/at_policy_test.dart b/packages/at_policy/test/at_policy_test.dart index ffe120ec..35683e0a 100644 --- a/packages/at_policy/test/at_policy_test.dart +++ b/packages/at_policy/test/at_policy_test.dart @@ -1,6 +1,5 @@ import 'package:at_client/at_client.dart'; import 'package:at_policy/at_policy.dart'; -import 'package:at_policy/src/policy/impl.dart'; import 'package:at_utils/at_logger.dart'; import 'package:mocktail/mocktail.dart'; import 'package:test/test.dart'; @@ -32,7 +31,7 @@ void main() { late PolicyService ps; setUp(() { - ps = PolicyServiceImpl( + ps = PolicyService( atClient: atClient, handler: TestHandler(), baseNamespace: 'test',