(self, mods: dict[type[Modification], Any])
| 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 | |
| 879 | class TelemetrySegmentClientSide(Modification): |
nothing calls this directly
no test coverage detected