Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
remove the test of proxyfilter which team agrees not a meaningful test
Browse files Browse the repository at this point in the history
  • Loading branch information
yugangw-msft committed Sep 29, 2014
1 parent cd67f4d commit bf3fe61
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 109 deletions.
51 changes: 0 additions & 51 deletions test/common/filters/proxyfilter-tests.js
Expand Up @@ -14,66 +14,15 @@
// limitations under the License.
//

var _ = require('underscore');

var should = require('should');
var assert = require('assert');
var url = require('url');

// Test includes
var testutil = require('../../util/util');
var blobtestutil = require('../../framework/blob-test-utils');

var azure = testutil.libRequire('azure');
var ProxyFilter = azure.ProxyFilter;

var containerNames = [];
var containerNamesPrefix = 'conta';

var testPrefix = 'proxyfilter-tests';

describe('Proxy filter', function () {
var service;
var suiteUtil;

before(function (done) {
service = azure.createBlobService();

suiteUtil = blobtestutil.createBlobTestUtils(service, testPrefix);
suiteUtil.isMocked = true;
suiteUtil.isRecording = false;
suiteUtil.setupSuite(done);
});

after(function (done) {
suiteUtil.teardownSuite(done);
});

beforeEach(function (done) {
suiteUtil.setupTest(done);
});

afterEach(function (done) {
suiteUtil.teardownTest(done);
});

describe('when used in a service', function () {
it('should work for https over http', function (done) {
var parsedProxy = url.parse('http://localhost:8888');
var httpsOverHttpService = azure.createBlobService();
httpsOverHttpService.setProxy(parsedProxy);

suiteUtil.setupService(httpsOverHttpService);

var containerName = testutil.generateId(containerNamesPrefix, containerNames, suiteUtil.isMocked);

httpsOverHttpService.createContainer(containerName, function (err) {
assert.equal(err, null);

done();
});
});
});

describe('setting the agent', function() {
it('should work for http over http', function (done) {
Expand Down
58 changes: 0 additions & 58 deletions test/recordings/proxyfilter-tests.nock.js

This file was deleted.

0 comments on commit bf3fe61

Please sign in to comment.