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

Method validate

test/orchestratord/mzcompose.py:865–876  ·  view source on GitHub ↗
(self, mods: dict[type[Modification], Any])

Source from the content-addressed store, hash-verified

863 definition["operator"]["telemetry"]["enabled"] = self.value
864
865 def validate(self, mods: dict[type[Modification], Any]) -> None:
866 environmentd = get_environmentd_data()
867 args = environmentd["items"][0]["spec"]["containers"][0]["args"]
868 expected = "--segment-api-key="
869 if self.value:
870 assert any(
871 expected in arg for arg in args
872 ), f"Expected {expected} in environmentd args, but only found: {args}"
873 else:
874 assert not any(
875 expected in arg for arg in args
876 ), f"Expected no {expected} in environmentd args, but found {args}"
877
878
879class TelemetrySegmentClientSide(Modification):

Callers

nothing calls this directly

Calls 2

get_environmentd_dataFunction · 0.85
anyFunction · 0.85

Tested by

no test coverage detected