mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test(cli/clitest): pad replacements for table alignment (#15942)
This commit is contained in:
+24
-24
@@ -1,43 +1,43 @@
|
||||
[
|
||||
{
|
||||
"id": "[workspace ID]",
|
||||
"created_at": "[timestamp]",
|
||||
"updated_at": "[timestamp]",
|
||||
"owner_id": "[first user ID]",
|
||||
"id": "===========[workspace ID]===========",
|
||||
"created_at": "====[timestamp]=====",
|
||||
"updated_at": "====[timestamp]=====",
|
||||
"owner_id": "==========[first user ID]===========",
|
||||
"owner_name": "testuser",
|
||||
"owner_avatar_url": "",
|
||||
"organization_id": "[first org ID]",
|
||||
"organization_id": "===========[first org ID]===========",
|
||||
"organization_name": "coder",
|
||||
"template_id": "[template ID]",
|
||||
"template_id": "===========[template ID]============",
|
||||
"template_name": "test-template",
|
||||
"template_display_name": "",
|
||||
"template_icon": "",
|
||||
"template_allow_user_cancel_workspace_jobs": false,
|
||||
"template_active_version_id": "[version ID]",
|
||||
"template_active_version_id": "============[version ID]============",
|
||||
"template_require_active_version": false,
|
||||
"latest_build": {
|
||||
"id": "[workspace build ID]",
|
||||
"created_at": "[timestamp]",
|
||||
"updated_at": "[timestamp]",
|
||||
"workspace_id": "[workspace ID]",
|
||||
"id": "========[workspace build ID]========",
|
||||
"created_at": "====[timestamp]=====",
|
||||
"updated_at": "====[timestamp]=====",
|
||||
"workspace_id": "===========[workspace ID]===========",
|
||||
"workspace_name": "test-workspace",
|
||||
"workspace_owner_id": "[first user ID]",
|
||||
"workspace_owner_id": "==========[first user ID]===========",
|
||||
"workspace_owner_name": "testuser",
|
||||
"workspace_owner_avatar_url": "",
|
||||
"template_version_id": "[version ID]",
|
||||
"template_version_name": "[version name]",
|
||||
"template_version_id": "============[version ID]============",
|
||||
"template_version_name": "===========[version name]===========",
|
||||
"build_number": 1,
|
||||
"transition": "start",
|
||||
"initiator_id": "[first user ID]",
|
||||
"initiator_id": "==========[first user ID]===========",
|
||||
"initiator_name": "testuser",
|
||||
"job": {
|
||||
"id": "[workspace build job ID]",
|
||||
"created_at": "[timestamp]",
|
||||
"started_at": "[timestamp]",
|
||||
"completed_at": "[timestamp]",
|
||||
"id": "======[workspace build job ID]======",
|
||||
"created_at": "====[timestamp]=====",
|
||||
"started_at": "====[timestamp]=====",
|
||||
"completed_at": "====[timestamp]=====",
|
||||
"status": "succeeded",
|
||||
"worker_id": "[workspace build worker ID]",
|
||||
"file_id": "[workspace build file ID]",
|
||||
"worker_id": "====[workspace build worker ID]=====",
|
||||
"file_id": "=====[workspace build file ID]======",
|
||||
"tags": {
|
||||
"owner": "",
|
||||
"scope": "organization"
|
||||
@@ -47,7 +47,7 @@
|
||||
},
|
||||
"reason": "initiator",
|
||||
"resources": [],
|
||||
"deadline": "[timestamp]",
|
||||
"deadline": "====[timestamp]=====",
|
||||
"max_deadline": null,
|
||||
"status": "running",
|
||||
"daily_cost": 0,
|
||||
@@ -61,7 +61,7 @@
|
||||
"name": "test-workspace",
|
||||
"autostart_schedule": "CRON_TZ=US/Central 30 9 * * 1-5",
|
||||
"ttl_ms": 28800000,
|
||||
"last_used_at": "[timestamp]",
|
||||
"last_used_at": "====[timestamp]=====",
|
||||
"deleting_at": null,
|
||||
"dormant_at": null,
|
||||
"health": {
|
||||
@@ -71,6 +71,6 @@
|
||||
"automatic_updates": "never",
|
||||
"allow_renames": false,
|
||||
"favorite": false,
|
||||
"next_start_at": "[timestamp]"
|
||||
"next_start_at": "====[timestamp]====="
|
||||
}
|
||||
]
|
||||
|
||||
Vendored
+2
-2
@@ -1,3 +1,3 @@
|
||||
USERNAME EMAIL CREATED AT STATUS
|
||||
testuser testuser@coder.com [timestamp] active
|
||||
testuser2 testuser2@coder.com [timestamp] dormant
|
||||
testuser testuser@coder.com ====[timestamp]===== active
|
||||
testuser2 testuser2@coder.com ====[timestamp]===== dormant
|
||||
|
||||
+10
-10
@@ -1,18 +1,18 @@
|
||||
[
|
||||
{
|
||||
"id": "[first user ID]",
|
||||
"id": "==========[first user ID]===========",
|
||||
"username": "testuser",
|
||||
"avatar_url": "",
|
||||
"name": "Test User",
|
||||
"email": "testuser@coder.com",
|
||||
"created_at": "[timestamp]",
|
||||
"updated_at": "[timestamp]",
|
||||
"last_seen_at": "[timestamp]",
|
||||
"created_at": "====[timestamp]=====",
|
||||
"updated_at": "====[timestamp]=====",
|
||||
"last_seen_at": "====[timestamp]=====",
|
||||
"status": "active",
|
||||
"login_type": "password",
|
||||
"theme_preference": "",
|
||||
"organization_ids": [
|
||||
"[first org ID]"
|
||||
"===========[first org ID]==========="
|
||||
],
|
||||
"roles": [
|
||||
{
|
||||
@@ -22,19 +22,19 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "[second user ID]",
|
||||
"id": "==========[second user ID]==========",
|
||||
"username": "testuser2",
|
||||
"avatar_url": "",
|
||||
"name": "",
|
||||
"email": "testuser2@coder.com",
|
||||
"created_at": "[timestamp]",
|
||||
"updated_at": "[timestamp]",
|
||||
"last_seen_at": "[timestamp]",
|
||||
"created_at": "====[timestamp]=====",
|
||||
"updated_at": "====[timestamp]=====",
|
||||
"last_seen_at": "====[timestamp]=====",
|
||||
"status": "dormant",
|
||||
"login_type": "password",
|
||||
"theme_preference": "",
|
||||
"organization_ids": [
|
||||
"[first org ID]"
|
||||
"===========[first org ID]==========="
|
||||
],
|
||||
"roles": []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user