This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Testing environment configuration. | |
*/ | |
public final class SetupTestSuite { | |
public final static String PU_NAME = "qos-test"; | |
public final static int SERVER_PORT = 8181; | |
private final String JDBC_POOL = "MyPool"; | |
private final String JDBC_RESOURCE = "jdbc/memory/qos"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library postgresql_test; | |
import 'dart:async'; | |
import 'package:unittest/unittest.dart'; | |
import 'package:dart_config/default_server.dart' as cfg; | |
// load from file | |
Future<String> load({String user, String pwd, String host, int port, String db}){ | |
var completer = new Completer<String>(); | |
cfg.loadConfig('test/config.yaml').then((Map config) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class KunderaExport { | |
public static void main(String... args) { | |
generateDdl(); | |
} | |
private void generateDdl() throws Exception { | |
getLog().info("Processing persistence unit: " + persistenceUnitName); | |
// instantiate app metadata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GenericObdCommand extends ObdCommand { | |
/** | |
* Default ctor. | |
*/ | |
public GenericObdCommand(String bytes) { | |
super(bytes); | |
} | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Mongo DB options, configure these if you are using the "mongo" option for one of your stores | |
mongoDbHost=127.0.0.1 | |
mongoDbPort=27018 | |
mongoDbDatabase=db_test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package utils; | |
import java.io.UnsupportedEncodingException; | |
import java.util.Enumeration; | |
import java.util.PropertyResourceBundle; | |
import java.util.ResourceBundle; | |
/** | |
* UTF-8 friendly ResourceBundle support | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Nice reference: https://developers.google.com/compute/docs/images#buildingimage | |
# Would be even nicer if Google would use it in their own debian images. | |
echo "Running provisioner" | |
# Update APT cache, upgrade packages | |
apt-get update && apt-get -yq dist-upgrade |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
--- | |
write_files: | |
- path: /opt/bin/waiter.sh | |
owner: root | |
content: | | |
#! /usr/bin/bash | |
until curl http://127.0.0.1:4001/v2/machines; do sleep 2; done | |
coreos: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
coreos: | |
units: | |
- name: etcd.service | |
mask: true | |
- name: fleet.service | |
command: start | |
content: | | |
[Unit] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kube-apiserver \ | |
--allow_privileged=true \ | |
--insecure_bind_address=0.0.0.0 \ | |
--insecure_port=8080 \ | |
--kubelet_https=true \ | |
--secure_port=6443 \ | |
--portal_net=10.100.0.0/16 \ | |
--etcd_servers=http://127.0.0.1:4001 \ | |
--public_address_override=172.17.8.101 \ | |
--cloud_provider=__CLOUDPROVIDER__ |
OlderNewer