def test_update_with_scylla_yaml_object():
     yaml1 = ScyllaYaml(
         cluster_name='cluster1',
         redis_keyspace_replication_strategy='NetworkTopologyStrategy')
     yaml2 = ScyllaYaml(
         redis_keyspace_replication_strategy='SimpleStrategy',
         client_encryption_options=ClientEncryptionOptions(
             enabled=True,
             certificate='/tmp/123.crt',
             keyfile='/tmp/123.key',
             truststore='/tmp/trust.pem',
         ),
         server_encryption_options=ServerEncryptionOptions(
             internode_encryption='all',
             certificate='/tmp/123.crt',
             keyfile='/tmp/123.key',
             truststore='/tmp/trust.pem',
         ))
     yaml3 = ScyllaYaml(client_encryption_options=ClientEncryptionOptions())
     yaml1.update(yaml2, yaml3)
     assert yaml1 == ScyllaYaml(
         cluster_name='cluster1',
         # redis_keyspace_replication_strategy property is not getting changed because of the problem with update()
         # which does not allow to make distinction between default value and value that equals to default
         redis_keyspace_replication_strategy='NetworkTopologyStrategy',
         server_encryption_options=ServerEncryptionOptions(
             internode_encryption='all',
             certificate='/tmp/123.crt',
             keyfile='/tmp/123.key',
             truststore='/tmp/trust.pem'),
         client_encryption_options=ClientEncryptionOptions())
 def test_update_with_dict_object():
     yaml1 = ScyllaYaml(
         cluster_name='cluster1',
         redis_keyspace_replication_strategy='NetworkTopologyStrategy')
     test_config_file = Path(
         __file__).parent / 'test_data' / 'scylla_yaml_update.yaml'
     with open(test_config_file, "r") as test_file:
         test_config_file_yaml = yaml.load(test_file)
         append_scylla_args_dict = yaml.load(
             test_config_file_yaml["append_scylla_yaml"])
     yaml1.update(append_scylla_args_dict)
     assert yaml1.enable_sstables_mc_format == append_scylla_args_dict[
         "enable_sstables_mc_format"]
     assert yaml1.enable_sstables_md_format == append_scylla_args_dict[
         "enable_sstables_md_format"]