Disable tests that don't work in Postgres, and don't start a mongo for postgres tests (#2481)
* Disable tests that don't work in Postgres, and don't start a mongo for postgres tests * Remove unnecessary chages * remove more unnecessary chagnes
This commit is contained in:
@@ -13,7 +13,7 @@ for (var i = 0; i < str.length; i++) {
|
||||
|
||||
describe('Parse.File testing', () => {
|
||||
describe('creating files', () => {
|
||||
it('works with Content-Type', done => {
|
||||
it_exclude_dbs(['postgres'])('works with Content-Type', done => {
|
||||
var headers = {
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'X-Parse-Application-Id': 'test',
|
||||
@@ -37,7 +37,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
|
||||
|
||||
it('works with _ContentType', done => {
|
||||
it_exclude_dbs(['postgres'])('works with _ContentType', done => {
|
||||
|
||||
request.post({
|
||||
url: 'http://localhost:8378/1/files/file',
|
||||
@@ -61,7 +61,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('works without Content-Type', done => {
|
||||
it_exclude_dbs(['postgres'])('works without Content-Type', done => {
|
||||
var headers = {
|
||||
'X-Parse-Application-Id': 'test',
|
||||
'X-Parse-REST-API-Key': 'rest'
|
||||
@@ -84,7 +84,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('supports REST end-to-end file create, read, delete, read', done => {
|
||||
it_exclude_dbs(['postgres'])('supports REST end-to-end file create, read, delete, read', done => {
|
||||
var headers = {
|
||||
'Content-Type': 'image/jpeg',
|
||||
'X-Parse-Application-Id': 'test',
|
||||
@@ -128,7 +128,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('blocks file deletions with missing or incorrect master-key header', done => {
|
||||
it_exclude_dbs(['postgres'])('blocks file deletions with missing or incorrect master-key header', done => {
|
||||
var headers = {
|
||||
'Content-Type': 'image/jpeg',
|
||||
'X-Parse-Application-Id': 'test',
|
||||
@@ -173,7 +173,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('handles other filetypes', done => {
|
||||
it_exclude_dbs(['postgres'])('handles other filetypes', done => {
|
||||
var headers = {
|
||||
'Content-Type': 'image/jpeg',
|
||||
'X-Parse-Application-Id': 'test',
|
||||
@@ -196,7 +196,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("save file", done => {
|
||||
it_exclude_dbs(['postgres'])("save file", done => {
|
||||
var file = new Parse.File("hello.txt", data, "text/plain");
|
||||
ok(!file.url());
|
||||
file.save(expectSuccess({
|
||||
@@ -316,7 +316,7 @@ describe('Parse.File testing', () => {
|
||||
}));
|
||||
});
|
||||
|
||||
it("saving an already saved file", done => {
|
||||
it_exclude_dbs(['postgres'])("saving an already saved file", done => {
|
||||
var file = new Parse.File("hello.txt", data, "text/plain");
|
||||
ok(!file.url());
|
||||
file.save(expectSuccess({
|
||||
@@ -337,7 +337,7 @@ describe('Parse.File testing', () => {
|
||||
}));
|
||||
});
|
||||
|
||||
it("two saves at the same time", done => {
|
||||
it_exclude_dbs(['postgres'])("two saves at the same time", done => {
|
||||
var file = new Parse.File("hello.txt", data, "text/plain");
|
||||
|
||||
var firstName;
|
||||
@@ -369,7 +369,7 @@ describe('Parse.File testing', () => {
|
||||
}));
|
||||
});
|
||||
|
||||
it("content-type used with no extension", done => {
|
||||
it_exclude_dbs(['postgres'])("content-type used with no extension", done => {
|
||||
var headers = {
|
||||
'Content-Type': 'text/html',
|
||||
'X-Parse-Application-Id': 'test',
|
||||
@@ -390,7 +390,7 @@ describe('Parse.File testing', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("filename is url encoded", done => {
|
||||
it_exclude_dbs(['postgres'])("filename is url encoded", done => {
|
||||
var headers = {
|
||||
'Content-Type': 'text/html',
|
||||
'X-Parse-Application-Id': 'test',
|
||||
|
||||
Reference in New Issue
Block a user