Files
graylog2-server/graylog2-web-interface/test/fixtures/userOverviews.ts
Linus Pahl be779b773b Renaming tsx and jsx file extensions for files which do not implement JSX. (#11846)
As described in the title, with this change we are renaming `tsx` and `jsx`
file extensions for files which do not implement JSX.
This not only helps to understand what a file is about when reading
its name. It also helps IDEs to process files better. E.g. when a file
and the related test file have different extensions, you can not switch
between them easily.
2021-12-17 12:14:17 +01:00

82 lines
2.1 KiB
TypeScript

/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* <http://www.mongodb.com/licensing/server-side-public-license>.
*/
import * as Immutable from 'immutable';
import UserOverview from 'logic/users/UserOverview';
export const alice = UserOverview.builder()
.id('alice-id')
.username('alice')
.fullName('Alice Schwarzer')
.email('alice@example.org')
.roles(Immutable.Set(['Reader']))
.readOnly(false)
.external(false)
.sessionActive(true)
.clientAddress('127.0.0.1')
.build();
export const bob = UserOverview.builder()
.id('bob-id')
.username('bob')
.fullName('Bob Bobson')
.email('bob@example.org')
.roles(Immutable.Set(['Reader']))
.readOnly(false)
.external(true)
.sessionActive(false)
.clientAddress('172.0.0.1')
.build();
export const charlie = UserOverview.builder()
.id('charlie-id')
.username('charlie')
.fullName('Charlie Root')
.email('charlie@example.org')
.roles(Immutable.Set(['Reader']))
.readOnly(false)
.external(true)
.sessionActive(false)
.clientAddress('172.0.0.1')
.build();
export const admin = UserOverview.builder()
.id('admin-id')
.username('admin')
.fullName('Administrator')
.email('admin@example.org')
.roles(Immutable.Set(['Admin']))
.readOnly(false)
.external(true)
.sessionActive(true)
.clientAddress('192.168.0.1')
.build();
export const userList = Immutable.List<UserOverview>([admin, bob, alice]);
export const paginatedUsers = {
list: userList,
pagination: {
page: 1,
perPage: 10,
query: '',
count: userList.size,
total: userList.size,
},
adminUser: undefined,
};