feat: resource-control view of reef-storage
Project the planned Scaleway backup bucket onto the new storage reef.
This commit is contained in:
parent
5b2435cb58
commit
9d11d2a043
2 changed files with 29 additions and 0 deletions
|
|
@ -92,6 +92,16 @@ class ReefViewTest(unittest.TestCase):
|
|||
self.assertNotIn("resource:platform:audit-storage", {row["resource_id"] for row in view["resources"]})
|
||||
self.assertTrue(any("reef-storage" in note for note in view["notes"]))
|
||||
|
||||
def test_reef_storage_view_is_delegated_object_store(self):
|
||||
view = json.loads((ROOT / "data/reefs/reef-storage.json").read_text())
|
||||
self.assertEqual("storage_substrate", view["role"])
|
||||
self.assertEqual(
|
||||
["resource:platform:audit-storage"],
|
||||
[row["resource_id"] for row in view["resources"]],
|
||||
)
|
||||
self.assertEqual(["rapp-postgres"], view["consumers_potential"])
|
||||
self.assertEqual([], view["consumers_actual"])
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue