Permalink
Browse files

[test] Move test/data to test/fixtures

  • Loading branch information...
1 parent 9023d5c commit d4831141973fa13feb6c7304e57802deca55405a @indexzero indexzero committed May 14, 2011
Showing with 11 additions and 11 deletions.
  1. +4 −4 .gitignore
  2. +3 −3 README.md
  3. +2 −2 test/helpers.js
  4. +2 −2 test/personality-test.js
View
@@ -1,4 +1,4 @@
-/test/files
-/test/files/*
-/test/data
-/test/data/*
+/test/fixtures/*
+/node_modules
+/node_modules/*
+npm-debug.log
View
@@ -185,13 +185,13 @@ Once you have valid Rackspace credentials you can run tests with [vows][2]:
One common usage of the personality features in Rackspace CloudServers is to upload your own SSH keys for communicating with your new server. To run these tests you will need to generate a test key locally.
<pre>
$ cd /path/to/node-cloudservers
- $ mkdir test/data
+ $ mkdir test/fixtures
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
- Enter file in which to save the key (~/.ssh/id_rsa): /path/to/node-cloudservers/test/data/testkey
+ Enter file in which to save the key (~/.ssh/id_rsa): /path/to/node-cloudservers/test/fixtures/testkey
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
- Your identification has been saved in /path/to/node-cloudservers/test/data/testkey.
+ Your identification has been saved in /path/to/node-cloudservers/test/fixtures/testkey.
</pre>
#### Author: [Charlie Robbins](http://www.charlierobbins.com)
View
@@ -26,7 +26,7 @@ helpers.createClient = function () {
helpers.loadConfig = function () {
try {
- var configFile = path.join(__dirname, 'data', 'test-config.json'),
+ var configFile = path.join(__dirname, 'fixtures', 'test-config.json'),
stats = fs.statSync(configFile),
config = JSON.parse(fs.readFileSync(configFile).toString());
@@ -84,4 +84,4 @@ helpers.assertFlavorDetails = function (flavor) {
helpers.assertFlavor(flavor);
assert.isNotNull(flavor.ram);
assert.isNotNull(flavor.disk);
-};
+};
View
@@ -16,7 +16,7 @@ var fs = require('fs'),
cloudservers = require('cloudservers'),
spawn = require('child_process').spawn,
helpers = require('./helpers'),
- keyBuffer = fs.readFileSync(__dirname + "/data/testkey.pub");
+ keyBuffer = fs.readFileSync(__dirname + '/fixtures/testkey.pub');
var testServer, testData = {},
client = helpers.createClient();
@@ -50,7 +50,7 @@ vows.describe('node-cloudservers/personalities').addBatch({
testServer.setWait({ status: 'ACTIVE' }, 5000, function () {
var ssh = spawn('ssh', [
'-i',
- __dirname + '/data/testkey',
+ __dirname + '/fixtures/testkey',
'-q',
'-o',
'StrictHostKeyChecking no',

0 comments on commit d483114

Please sign in to comment.