Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

v3 validation fixes #958

Merged
merged 11 commits into from
Dec 4, 2019
Merged

v3 validation fixes #958

merged 11 commits into from
Dec 4, 2019

Conversation

karenetheridge
Copy link
Contributor

Many fixes pertaining to validations and hardware products.

  • add the newer drive validations to the stock loadout used when creating a new database
  • fix SataSsdNum validation to check the proper product field for legacy hardware
  • set more default values for some hardware drive settings
  • fold hardware_product_profile into hardware_product (clients using /hardware_product endpoints must be fixed)
  • fix DeviceProductName endpont to validate the actual vs. intended hardware again (broken since v3: associate hardware_product with validation_plan #903, v3.0.0-a7)

These validations were added in #626 and should have been included in this
method when it was written.
(as done in v2.37.3)
This should have been done as part of #786 when that validation was introduced.
(as done in v2.37.3)
…roduct

This has been incorrect since the validation was introduced in #626.
(as done in v2.37.3)
…ier future transition

and fix some json schema constraints
They had a 1:N relationship in the schema but 1:1 in practice,
so keeping them separate is extra complication that adds no value.
…ayout than the device

also support more types of nesting data in fixture specifications
@karenetheridge karenetheridge added api tests refactor breaking needs-shell needs accompanying changes in conch-shell validation database involves database schema or config changes, or non-trivial query authoring v3.0 features, big changes for api v3.0 labels Nov 27, 2019
@karenetheridge karenetheridge added this to the v3.0.0-b3 milestone Nov 27, 2019
@karenetheridge karenetheridge added bug needs-ui needs accompanying changes in conch-ui labels Nov 27, 2019
karenetheridge added a commit to joyent/kosh that referenced this pull request Nov 27, 2019
karenetheridge added a commit to joyent/kosh that referenced this pull request Nov 28, 2019
…under device

It is now possible to test validations where a device's hardware_product is
different from its device_location->rack_layout->hardware_product.
…ayout again

The change in #903 prevented the device's (actual) hardware_product from being matched
against the rack_layout's (intended) hardware_product, which was one of the
side effects of this validation.
@karenetheridge karenetheridge force-pushed the ether/v3-validation-fixes branch from 2a664ed to 971f0d1 Compare November 28, 2019 17:26
@karenetheridge karenetheridge merged commit 7470475 into master Dec 4, 2019
@karenetheridge karenetheridge deleted the ether/v3-validation-fixes branch December 4, 2019 17:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api breaking bug database involves database schema or config changes, or non-trivial query authoring needs-shell needs accompanying changes in conch-shell needs-ui needs accompanying changes in conch-ui refactor tests v3.0 features, big changes for api v3.0 validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant