private static List<Flavor> parseFlavors(Path path) {
        try {
            var element = XmlHelper.getDocumentBuilder().parse(path.toFile()).getDocumentElement();
            return ConfigPayload.fromBuilder(new DomConfigPayloadBuilder(null).build(element)).toInstance(FlavorsConfig.class, "")
                    .flavor().stream()
                    .map(Flavor::new)
                    .toList();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
Scenario tester with real node-repository data loaded from ZK snapshot file

How to use:

1. Copy /opt/vespa/conf/configserver-app/node-flavors.xml from config server to /tmp/node-flavors.xml
2. Copy /opt/vespa/var/zookeeper/version-2/snapshot.XXX from config server to /tmp/snapshot
3. Set capacities and specs according to the wanted scenario

@author valerijf
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/RealDataScenarioTest.java