CloudConfigInstallVariables implements CloudConfigOptions { static String[] toConfigModelsPluginDir(String configModelsPluginDirString) { return multiValueParameterStream(configModelsPluginDirString).toArray(String[]::new); }  @Override Optional<Integer> rpcPort(); @Override Optional<Boolean> multiTenant(); @Override ConfigServer[] allConfigServers(); @Override int[] configServerZookeeperIds(); @Override Optional<Long> zookeeperBarrierTimeout(); @Override Optional<Long> sessionLifeTimeSecs(); @Override String[] configModelPluginDirs(); @Override Optional<Integer> zookeeperClientPort(); @Override Optional<Integer> zookeeperQuorumPort(); @Override Optional<Integer> zookeeperElectionPort(); @Override Optional<String> environment(); @Override Optional<String> region(); @Override Optional<String> system(); @Override Optional<Boolean> useVespaVersionInRequest(); @Override Optional<Boolean> hostedVespa(); @Override Optional<String> loadBalancerAddress(); @Override Optional<String> athenzDnsSuffix(); @Override Optional<String> ztsUrl();  }
@Test public void string_arrays_are_split_on_spaces() { String[] parsed = toConfigModelsPluginDir("/home/vespa/foo /home/vespa/bar "); assertEquals(2, parsed.length); }
@Test public void string_arrays_are_split_on_comma() { String[] parsed = toConfigModelsPluginDir("/home/vespa/foo,/home/vespa/bar,"); assertEquals(2, parsed.length); }