Skip to content

Commit

Permalink
fix tests failing & made coterm_id optional
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwang401 committed Nov 12, 2023
1 parent 9750e02 commit 7cc2709
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Node extends Model
'backup_storage' => ['required', 'string', 'max:191', 'regex:/^\S*$/u'],
'iso_storage' => ['required', 'string', 'max:191', 'regex:/^\S*$/u'],
'network' => ['required', 'string', 'max:191', 'regex:/^\S*$/u'],
'coterm_id' => 'required|nullable|integer|exists:coterms,id',
'coterm_id' => 'sometimes|nullable|integer|exists:coterms,id',
];

/**
Expand Down
1 change: 1 addition & 0 deletions database/factories/NodeFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function definition(): array
'backup_storage' => 'local',
'iso_storage' => 'local',
'network' => 'vmbr0',
'coterm_id' => null,
];
}
}

0 comments on commit 7cc2709

Please sign in to comment.