MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / modify

Method modify

test/orchestratord/mzcompose.py:504–516  ·  view source on GitHub ↗
(self, definition: dict[str, Any])

Source from the content-addressed store, hash-verified

502 return "valid"
503
504 def modify(self, definition: dict[str, Any]) -> None:
505 if self.value == "valid":
506 definition["secret"]["stringData"]["license_key"] = os.environ[
507 "MZ_CI_LICENSE_KEY"
508 ]
509 elif self.value == "invalid":
510 definition["secret"]["stringData"]["license_key"] = "foobar"
511 elif self.value == "del":
512 del definition["secret"]["stringData"]["license_key"]
513 else:
514 raise ValueError(
515 f"Unknown value {self.value}, only know {self.values(get_version())}"
516 )
517
518 def validate(self, mods: dict[type[Modification], Any]) -> None:
519 if MzVersion.parse_mz(mods[EnvironmentdImageRef]) < MzVersion.parse_mz(

Callers 1

run_scenarioFunction · 0.45

Calls 3

valuesMethod · 0.95
ValueErrorClass · 0.85
get_versionFunction · 0.85

Tested by

no test coverage detected