def METHOD_NAME(self):
    """ClickHouse SHALL drop an exception if both realm and principal fields are specified in config.xml.
    """
    ch_nodes = self.context.ch_nodes
    config_path = f"kerberos/configs/{ch_nodes[0].name}/config.d/kerberos.xml"
    def modify_file(root):
        krb = root.find('kerberos')
        xml_append(krb, 'principal', 'HTTP/srv1@EXAMPLE.COM')
        return root
    check_wrong_config(node=ch_nodes[0], client=ch_nodes[2], config_path=config_path, modify_file=modify_file,
                       log_error="Realm and principal name cannot be specified simultaneously",
                       output="Kerberos is not enabled")