github.com/litesolutions/justifay-api@v1.0.0-2.0.20220707114139-46f28a909481/fixtures/test/test_fixtures.yaml (about)

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