mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-10 14:44:55 +00:00
query userinfo unit test
This commit is contained in:
45
internal/query/testdata/userinfo_human.json
vendored
Normal file
45
internal/query/testdata/userinfo_human.json
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"user": {
|
||||
"id": "231965491734773762",
|
||||
"creation_date": "2023-09-15T06:10:07.434142+00:00",
|
||||
"change_date": "2023-11-14T13:27:02.072318+00:00",
|
||||
"sequence": 1148,
|
||||
"state": 1,
|
||||
"resource_owner": "231848297847848962",
|
||||
"username": "tim+tesmail@zitadel.com",
|
||||
"human": {
|
||||
"first_name": "Tim",
|
||||
"last_name": "Mohlmann",
|
||||
"nick_name": "muhlemmer",
|
||||
"display_name": "Tim Mohlmann",
|
||||
"avatar_key": null,
|
||||
"email": "tim+tesmail@zitadel.com",
|
||||
"is_email_verified": true,
|
||||
"phone": "+40123456789",
|
||||
"is_phone_verified": false
|
||||
},
|
||||
"machine": null
|
||||
},
|
||||
"org": {
|
||||
"name": "demo",
|
||||
"primary_domain": "demo.localhost"
|
||||
},
|
||||
"metadata": [
|
||||
{
|
||||
"creation_date": "2023-11-14T13:26:03.553702+00:00",
|
||||
"change_date": "2023-11-14T13:26:03.553702+00:00",
|
||||
"sequence": 1147,
|
||||
"resource_owner": "231848297847848962",
|
||||
"key": "bar",
|
||||
"value": "Zm9v"
|
||||
},
|
||||
{
|
||||
"creation_date": "2023-11-14T13:25:57.171368+00:00",
|
||||
"change_date": "2023-11-14T13:25:57.171368+00:00",
|
||||
"sequence": 1146,
|
||||
"resource_owner": "231848297847848962",
|
||||
"key": "foo",
|
||||
"value": "YmFy"
|
||||
}
|
||||
]
|
||||
}
|
||||
28
internal/query/testdata/userinfo_human_no_md.json
vendored
Normal file
28
internal/query/testdata/userinfo_human_no_md.json
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"user": {
|
||||
"id": "231965491734773762",
|
||||
"creation_date": "2023-09-15T06:10:07.434142+00:00",
|
||||
"change_date": "2023-11-14T13:27:02.072318+00:00",
|
||||
"sequence": 1148,
|
||||
"state": 1,
|
||||
"resource_owner": "231848297847848962",
|
||||
"username": "tim+tesmail@zitadel.com",
|
||||
"human": {
|
||||
"first_name": "Tim",
|
||||
"last_name": "Mohlmann",
|
||||
"nick_name": "muhlemmer",
|
||||
"display_name": "Tim Mohlmann",
|
||||
"avatar_key": null,
|
||||
"email": "tim+tesmail@zitadel.com",
|
||||
"is_email_verified": true,
|
||||
"phone": "+40123456789",
|
||||
"is_phone_verified": false
|
||||
},
|
||||
"machine": null
|
||||
},
|
||||
"org": {
|
||||
"name": "demo",
|
||||
"primary_domain": "demo.localhost"
|
||||
},
|
||||
"metadata": null
|
||||
}
|
||||
38
internal/query/testdata/userinfo_machine.json
vendored
Normal file
38
internal/query/testdata/userinfo_machine.json
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"user": {
|
||||
"id": "240707570677841922",
|
||||
"creation_date": "2023-11-14T13:34:52.473732+00:00",
|
||||
"change_date": "2023-11-14T13:35:02.861342+00:00",
|
||||
"sequence": 2,
|
||||
"state": 1,
|
||||
"resource_owner": "231848297847848962",
|
||||
"username": "tests",
|
||||
"human": null,
|
||||
"machine": {
|
||||
"name": "tests",
|
||||
"description": "My test service user"
|
||||
}
|
||||
},
|
||||
"org": {
|
||||
"name": "demo",
|
||||
"primary_domain": "demo.localhost"
|
||||
},
|
||||
"metadata": [
|
||||
{
|
||||
"creation_date": "2023-11-14T13:35:30.126849+00:00",
|
||||
"change_date": "2023-11-14T13:35:30.126849+00:00",
|
||||
"sequence": 3,
|
||||
"resource_owner": "231848297847848962",
|
||||
"key": "first",
|
||||
"value": "SGVsbG8gV29ybGQh"
|
||||
},
|
||||
{
|
||||
"creation_date": "2023-11-14T13:35:44.028343+00:00",
|
||||
"change_date": "2023-11-14T13:35:44.028343+00:00",
|
||||
"sequence": 4,
|
||||
"resource_owner": "231848297847848962",
|
||||
"key": "second",
|
||||
"value": "QnllIFdvcmxkIQ=="
|
||||
}
|
||||
]
|
||||
}
|
||||
5
internal/query/testdata/userinfo_not_found.json
vendored
Normal file
5
internal/query/testdata/userinfo_not_found.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"user": null,
|
||||
"org": null,
|
||||
"metadata": null
|
||||
}
|
||||
Reference in New Issue
Block a user