use of com.ctrip.framework.apollo.openapi.auth.ConsumerPermissionValidator in project apollo by ctripcorp.
the class SkipAuthorizationConfiguration method consumerPermissionValidator.
@Primary
@Bean
public ConsumerPermissionValidator consumerPermissionValidator() {
final ConsumerPermissionValidator mock = mock(ConsumerPermissionValidator.class);
when(mock.hasCreateNamespacePermission(any(), any())).thenReturn(true);
return mock;
}
Aggregations