Files
meteor/tools/tests/organizations.js
David Glasser 2b6b02439d destroy universe
"universe" was an old attempt to allow you to run various MDG
servers (Meteor Developer Accounts, the package server, an old version
of the Galaxy deploy server, etc) on localhost and configure the tool to
talk to it not via a bunch of environment variables but via a file
called "universe" at the root of your checkout. Nobody uses this (and
most of the URLs have environment variables for them anyway).  Simplify
the code by removing this entirely.

Also remove some more dead code, and a test that claims it only runs if
you have universe set up.
2016-05-13 15:09:03 -07:00

39 lines
1.1 KiB
JavaScript

var selftest = require('../tool-testing/selftest.js');
var testUtils = require('../tool-testing/test-utils.js');
var Sandbox = selftest.Sandbox;
var commandTimeoutSecs = testUtils.accountsCommandTimeoutSecs;
// XXX tests for missing args for all commands
selftest.define("organizations - logged out", function () {
var s = new Sandbox;
var orgName = testUtils.randomOrgName();
var run = s.run("admin", "members", orgName, "--add", "testtest");
run.waitSecs(commandTimeoutSecs);
run.matchErr("You must be logged in");
run.matchErr("Username:");
run.stop();
run = s.run("admin", "members", orgName, "--remove", "testtest");
run.waitSecs(commandTimeoutSecs);
run.matchErr("You must be logged in");
run.matchErr("Username:");
run.stop();
run = s.run("admin", "members", orgName);
run.waitSecs(commandTimeoutSecs);
run.matchErr("You must be logged in");
run.matchErr("Username:");
run.stop();
run = s.run("admin", "list-organizations");
run.waitSecs(commandTimeoutSecs);
run.matchErr("You must be logged in");
run.matchErr("Username:");
run.stop();
});