ubicloud/spec/routes/api/cli
Jeremy Evans cf0d7c1c46 Use the Sequel pg_auto_validate_enums plugin to automatically validate enum values
Invalid enum values would previously result in a Sequel::DatabaseError
(wrapping PG::InvalidTextRepresentation) when saving.  This changes
the behavior from an unhandled exception 500 error to a nice 400 error.

We previously had manually validations in LoadBalancer for the enum
values.  This removes those.  Only change in the tests is to an error
message, and I think the new error message is nicer.

In order for this to work, the Database needs to use the pg_enum plugin,
so this uses that and regenerates the schema cache with it.
2025-03-14 14:25:16 -07:00
..
fw Ensure cli response bodies end with newline 2025-02-21 09:32:10 -08:00
golden-file-commands Remove /failover endpoint for Postgres 2025-03-06 10:55:42 +01:00
golden-files Use the Sequel pg_auto_validate_enums plugin to automatically validate enum values 2025-03-14 14:25:16 -07:00
lb Ensure cli response bodies end with newline 2025-02-21 09:32:10 -08:00
pg Remove /failover endpoint for Postgres 2025-03-06 10:55:42 +01:00
ps Add cli ps {connect,disconnect} commands 2025-02-21 15:27:03 -08:00
vm Restructure CLI help to support command descriptions 2025-03-13 09:20:15 -07:00
golden_files_spec.rb Add ubid types for 4 models, do not leak TYPE_ETC ubid values 2025-02-26 09:09:54 -08:00
help_spec.rb Minor CLI help improvements 2025-03-13 09:20:15 -07:00
options_spec.rb Have cli program send version in header 2025-03-04 16:55:53 -08:00
spec_helper.rb Have cli program send version in header 2025-03-04 16:55:53 -08:00