cockroach-operator icon indicating copy to clipboard operation
cockroach-operator copied to clipboard

Testing meta-issue

Open udnay opened this issue 4 years ago • 3 comments

This is a master list of unit tests we should add to get better test coverage, specifically negative tests.

Decommission

  • [ ] Decommission if the resulting state is 3 or more nodes
  • [ ] Gracefully handle decommission errors, do not alter cluster if decommission is in the process of happening

Version Checker

  • [ ] Customer provided image is valid
    • [ ] Valid CRDB image
    • [ ] Customer can upgrade/downgrade
  • [ ] Spins up container and runs cockroach version

Partitioned Update

  • [x] Downgrade to previous version
  • [ ] Setting preserved downgrade
  • [ ] Fail if we try to upgrade from oldest CRDB version to newest

Cert Generation

  • [ ] Explicitly test an external cert
  • [ ] Good e2e test coverage implicitly

udnay avatar Jun 21 '21 17:06 udnay

@chrislovecnm @keith-mcclellan Here's the meta issue, I think a bunch of these are probably already covered, lets just confirm.

udnay avatar Jun 21 '21 17:06 udnay

@keith-mcclellan what sql query do I run to determine if preserved is set? What is the testing criteria?

chrislovecnm avatar Jul 26 '21 22:07 chrislovecnm

we have to check that cluster.preserve_downgrade_option is set to the version we need to downgrade to. The operator already sets this during the upgrade so it's just checking that it's still set before doing the downgrade.

keith-mcclellan avatar Jul 27 '21 12:07 keith-mcclellan