com.lordofthejars.nosqlunit.vault.VaultAssertion Maven / Gradle / Ivy
package com.lordofthejars.nosqlunit.vault;
import com.lordofthejars.nosqlunit.core.FailureHandler;
import org.yaml.snakeyaml.Yaml;
import java.io.InputStream;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import static com.lordofthejars.nosqlunit.util.DeepEquals.deepEquals;
public class VaultAssertion {
private static final String TOKENS = "tokens";
public static void strictAssertEquals(final InputStream dataset, final VaultConnection vault) {
final Yaml yaml = new Yaml();
final Object load = yaml.load(dataset);
if (areOnlySecrets(load)) {
final List