github.com/resonatecoop/user-api@v1.0.0-13.0.20220915120639-05dc9c04014a/fixtures/test/test_fixtures.yaml (about)

     1  - model: User
     2    rows:
     3      - id: 243b4178-6f98-4bf1-bbb1-46b57a901816
     4        legacy_id: 100001
     5        created_at: '{{ now }}'
     6        username: jimmy@hendrix.com
     7        full_name: Jimmy Hendrix
     8        first_name: Jimmy
     9        last_name: Hendrix
    10        tenant_id: 0
    11        role_id: 3
    12        member: true
    13      - id: 5253747c-2b8c-40e2-8a70-bab91348a9bd
    14        legacy_id: 100002
    15        created_at: '{{ now }}'
    16        username: miles@davis.com
    17        full_name: Miles Davis
    18        first_name: Miles
    19        last_name: Davis
    20        tenant_id: 0
    21        role_id: 5
    22        member: false
    23      - id: af0494cd-d082-459b-87bf-7fddc3414f65
    24        created_at: '{{ now }}'
    25        legacy_id: 100003
    26        username: john@coltrane.com
    27        full_name: John Coltrane
    28        first_name: John
    29        last_name: Coltrane
    30        tenant_id: 0
    31        role_id: 4
    32        member: true
    33      - id: f40cf437-eef2-4659-8eb3-7ee93f6dfcea
    34        legacy_id: 100004
    35        role_id: 1
    36        created_at: '{{ now }}'
    37        username: 'test@superuser.com'
    38        password:
    39          string: '$2a$10$4J4t9xuWhOKhfjN0bOKNReS9sL3BVSN9zxIr2.VaWWQfRBWh1dQIS'
    40          valid: true
    41      - id: 046e7a23-a9f0-4fb8-a60f-861b2df05d95
    42        legacy_id: 100005
    43        role_id: 5
    44        created_at: '{{ now }}'
    45        username: 'test@user.com'
    46        password:
    47          string: '$2a$10$4J4t9xuWhOKhfjN0bOKNReS9sL3BVSN9zxIr2.VaWWQfRBWh1dQIS'
    48          valid: true
    49      - id: 953c3537-3149-4164-9c73-ec785a3c17c4
    50        legacy_id: 100006
    51        role_id: 5
    52        created_at: '{{ now }}'
    53        username: 'test@user2.com'
    54        password:
    55          string: '$2a$10$4J4t9xuWhOKhfjN0bOKNReS9sL3BVSN9zxIr2.VaWWQfRBWh1dQIS'
    56          valid: true
    57  - model: AccessToken
    58    rows:
    59      - created_at: '{{ now }}'
    60        client_id: 3392e754-ba3e-424f-a687-add9a8ab39c9
    61        user_id: 243b4178-6f98-4bf1-bbb1-46b57a901816
    62        token: 'test_superuser_token'
    63        expires_at: '{{ now }}'
    64      - created_at: '{{ now }}'
    65        client_id: 3392e754-ba3e-424f-a687-add9a8ab39c9
    66        user_id: 5253747c-2b8c-40e2-8a70-bab91348a9bd
    67        token: 'test_user_token'
    68        expires_at: '{{ now }}'
    69      - created_at: '{{ now }}'
    70        client_id: 295be195-898c-4f0c-b6a0-8c62105f42de
    71        user_id: 86a72db9-eb16-45ae-8003-ac37d8dc5cbb
    72        token: 'test_user_token_2'
    73        expires_at: '{{ now }}'
    74  - model: Client
    75    rows:
    76      - id: 3392e754-ba3e-424f-a687-add9a8ab39c9
    77        created_at: '{{ now }}'
    78        application_name:
    79          string: test_client_1
    80          valid: true
    81        key: test_client_1
    82        secret: '$2a$10$CUoGytf1pR7CC6Y043gt/.vFJUV4IRqvH5R6F0VfITP8s2TqrQ.4e'
    83        redirect_uri:
    84          string: https://www.example.com
    85          valid: true
    86      - id: 295be195-898c-4f0c-b6a0-8c62105f42de
    87        created_at: '{{ now }}'
    88        application_name:
    89          string: test_client_2
    90          valid: true
    91        key: test_client_2
    92        secret: '$2a$10$CUoGytf1pR7CC6Y043gt/.vFJUV4IRqvH5R6F0VfITP8s2TqrQ.4e'
    93        redirect_uri:
    94          string: https://www.example.com
    95          valid: true