@@ -3,11 +3,7 @@ import { requireAtLeast } from '../../test/version.js';
33import { WeaviateUserTypeDB } from '../openapi/types.js' ;
44import { GetUserOptions , UserDB } from './types.js' ;
55
6- requireAtLeast (
7- 1 ,
8- 29 ,
9- 0
10- ) ( 'Integration testing of the users namespace' , ( ) => {
6+ requireAtLeast ( 1 , 29 , 0 ) ( describe ) ( 'Integration testing of the users namespace' , ( ) => {
117 const makeClient = ( key : string ) =>
128 weaviate . connectToLocal ( {
139 port : 8091 ,
@@ -62,11 +58,7 @@ requireAtLeast(
6258 expect ( roles . test ) . toBeUndefined ( ) ;
6359 } ) ;
6460
65- requireAtLeast (
66- 1 ,
67- 30 ,
68- 0
69- ) ( 'dynamic user management' , ( ) => {
61+ requireAtLeast ( 1 , 30 , 0 ) ( describe ) ( 'dynamic user management' , ( ) => {
7062 /** List dynamic DB users. */
7163 const listDBUsers = ( c : WeaviateClient , opts ?: GetUserOptions ) =>
7264 c . users . db . listAll ( opts ) . then ( ( all ) => all . filter ( ( u ) => u . userType == 'db_user' ) ) ;
@@ -172,11 +164,7 @@ requireAtLeast(
172164 expect ( roles . Permissioner . nodesPermissions ) . toHaveLength ( 1 ) ;
173165 } ) ;
174166
175- requireAtLeast (
176- 1 ,
177- 30 ,
178- 1
179- ) ( 'additional DUM features' , ( ) => {
167+ requireAtLeast ( 1 , 30 , 1 ) ( describe ) ( 'additional DUM features' , ( ) => {
180168 it ( 'should be able to fetch additional user info' , async ( ) => {
181169 const admin = await makeClient ( 'admin-key' ) ;
182170 const timKey = await admin . users . db . create ( 'timely-tim' ) ;
0 commit comments