Skip to content

Instantly share code, notes, and snippets.

View sgithens's full-sized avatar

Steven Githens sgithens

View GitHub Profile
gpii.tests.flowManager.capture.testDefs = [{
name: "My first capture test",
config: {
configName: "gpii.config.development.local",
configPath: "%gpii-universal/gpii/configs/shared"
},
sequence: [{
task: "{flowManager}.getSystemSettingsCapture",
args: [],
resolve: "console.log",
@sgithens
sgithens / gpii.tests.flowManager.browserChannel.testDefs.json
Last active April 26, 2019 18:47
Example of fully defined GPII Test Defs
[
{
"name": "Flow Manager Simple BrowserChannel tests",
"expect": 15,
"config": {
"configName": "gpii.flowManager.tests.browserChannel.config",
"configPath": "%flowManager/test/configs"
},
"events": {
"loginAndSettingsChangedChrome": {
@sgithens
sgithens / CaptureTests.js
Last active April 23, 2019 20:20
Can instantiate gpii.flowManager.local in tests
"use strict";
var fluid = require("infusion"),
gpii = fluid.registerNamespace("gpii");
var jqUnit = require("node-jqunit");
fluid.require("%gpii-universal");
gpii.loadTestingSupport();
@sgithens
sgithens / bern-schemas.json
Created March 22, 2019 19:44
Complex GPII Solutions Settings Schemas
{
"supportedSettings": {
"ScrollWheelModeConfig": {
"schema": {
"title": "Mouse scroll wheel mode",
"description": "Changes the number of lines to scroll when moving the scrollwheel.",
"default": 3,
"oneOf": [
{
"title": "Range of accepted regular values",
@sgithens
sgithens / dirListing.js
Created March 17, 2019 15:29
Example directory listing Infusion Data Source
/**
* `gpii.devpmt.dataSource.dirListing`
*
* This is a read only data source that returns an array of the
* contents of a directory. Expects a `path` for the directory
* in the component options when created.
*
* The array returned from the datasource `get` is a list of filenames
* relative to the directory they are in, ie. they do not contain their
* parent directories.
@sgithens
sgithens / Default settings.cmd
Last active March 15, 2019 21:05
PPT Demo Config C:\Program Files (x86)\Morphic\start.cmd
@echo off
set GPII_CLOUD_URL=https://flowmanager.prd.gcp.gpii.net
cd windows
start /min morphic-app.exe
@sgithens
sgithens / gist:47df27c1fb3fc54b922a7d3e26baf79a
Created January 24, 2019 02:14
Setting up a fresh prefsserver dev environment
GPII_APP_DIR=./ GPII_COUCHDB_URL=http://localhost:5984/gpii ./scripts/deleteAndLoadSnapsets.sh
@sgithens
sgithens / gist:685feb1fec694297a892e3259d565cf0
Created January 24, 2019 02:14
Setting up a fresh prefsserver dev environment
GPII_APP_DIR=./ GPII_COUCHDB_URL=http://localhost:5984/gpii ./scripts/deleteAndLoadSnapsets.sh
@sgithens
sgithens / gist:724ff73d6c02efe58ca13012aaef019a
Created January 24, 2019 02:14
Setting up a fresh prefsserver dev environment
GPII_APP_DIR=./ GPII_COUCHDB_URL=http://localhost:5984/gpii ./scripts/deleteAndLoadSnapsets.sh
@sgithens
sgithens / gist:8e8020a545b019efd4bc4713a4c37abb
Created January 24, 2019 02:14
Setting up a fresh prefsserver dev environment
GPII_APP_DIR=./ GPII_COUCHDB_URL=http://localhost:5984/gpii ./scripts/deleteAndLoadSnapsets.sh