Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[test] Updates for large file tests from @indutny

  • Loading branch information...
commit 099a9a9ec4d921199afbbbf4eedd79ff5b0f326c 1 parent a4f7711
@indexzero indexzero authored
View
1  .gitignore
@@ -3,5 +3,6 @@
.cache/*
test/fixtures/test-config.json
test/fixtures/fillerama3.txt
+test/fixtures/bigfile.raw
node_modules
npm-debug.log
View
2  lib/cloudfiles/container.js
@@ -1,5 +1,5 @@
/*
- * container.js: Instance of a single rackspace cloudfiles container
+ * container.js: Instance of a single Rackspace Cloudfiles container
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
View
2  test/authentication-test.js
@@ -1,5 +1,5 @@
/*
- * authentication-test.js: Tests for rackspace cloudfiles authentication
+ * authentication-test.js: Tests for Rackspace Cloudfiles authentication
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
View
2  test/container-destroy-test.js
@@ -1,5 +1,5 @@
/*
- * container-test.js: Tests for rackspace cloudfiles containers
+ * container-destroy-test.js: Tests for destroying Rackspace Cloudfiles containers
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
View
5 test/container-test.js
@@ -1,5 +1,5 @@
/*
- * container-test.js: Tests for rackspace cloudfiles containers
+ * container-test.js: Tests for Rackspace Cloudfiles containers
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
@@ -15,7 +15,8 @@ var path = require('path'),
cloudfiles = require('cloudfiles'),
helpers = require('./helpers');
-var testData = {}, client = helpers.createClient(),
+var testData = {},
+ client = helpers.createClient(),
sampleData = fs.readFileSync(path.join(__dirname, '..', 'test', 'fixtures', 'fillerama.txt')).toString();
vows.describe('node-cloudfiles/containers').addBatch({
View
34 test/storage-big-object-test.js → test/storage-object-large-test.js
@@ -1,5 +1,5 @@
/*
- * container-test.js: Tests for rackspace cloudfiles containers
+ * container-test.js: Tests for Rackspace Cloudfiles containers
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
@@ -15,27 +15,17 @@ var path = require('path'),
cloudfiles = require('cloudfiles'),
helpers = require('./helpers');
-var testData = {}, client = helpers.createClient(),
- container = 'test-big',
+var testData = {},
+ container = 'test_container',
+ client = helpers.createClient(),
sampleData = new Buffer(3 * 1024 * 1024),
sampleFile = path.join(__dirname, '..', 'test', 'fixtures', 'bigfile.raw');
fs.writeFileSync(sampleFile, sampleData);
-vows.describe('node-cloudfiles/storage-big-object')
- .addBatch(helpers.requireAuth(client))
- .addBatch({
- "The node-cloudfiles client": {
- "the .createContainer() method": {
- topic: function () {
- client.createContainer(new (cloudfiles.Container)(client, {
- name: container
- }), this.callback);
- },
- "should be successfull": function () {}
- }
- }
- }).addBatch({
+vows.describe('node-cloudfiles/storage-object/large').addBatch(
+ helpers.requireAuth(client)
+).addBatch({
"The node-cloudfiles client": {
"the addFile() method": {
topic: function () {
@@ -95,14 +85,4 @@ vows.describe('node-cloudfiles/storage-big-object')
}
}
}
-}).addBatch({
- "The node-cloudfiles client": {
- "the destroyContainer() method": {
- topic: function() {
- client.destroyContainer(container, this.callback);
- },
- "should be successfull": function() {
- }
- }
- }
}).export(module);
View
5 test/storage-object-metadata-test.js
@@ -1,5 +1,5 @@
/*
- * container-test.js: Tests for rackspace cloudfiles containers
+ * container-test.js: Tests for Rackspace Cloudfiles containers
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
@@ -15,7 +15,8 @@ var path = require('path'),
cloudfiles = require('cloudfiles'),
helpers = require('./helpers');
-var testData = {}, client = helpers.createClient(),
+var testData = {},
+ client = helpers.createClient(),
sampleData = fs.readFileSync(path.join(__dirname, '..', 'test', 'fixtures', 'fillerama.txt')).toString();
vows.describe('node-cloudfiles/storage-object').addBatch({
View
2  test/storage-object-test.js
@@ -1,5 +1,5 @@
/*
- * container-test.js: Tests for rackspace cloudfiles containers
+ * container-test.js: Tests for Rackspace Cloudfiles containers
*
* (C) 2010 Nodejitsu Inc.
* MIT LICENSE
Please sign in to comment.
Something went wrong with that request. Please try again.