From bf3fe610163a3a7c4018b8c28257a08b12d2bdd5 Mon Sep 17 00:00:00 2001 From: yugangw-msft Date: Mon, 29 Sep 2014 15:45:55 -0700 Subject: [PATCH] remove the test of proxyfilter which team agrees not a meaningful test --- test/common/filters/proxyfilter-tests.js | 51 -------------------- test/recordings/proxyfilter-tests.nock.js | 58 ----------------------- 2 files changed, 109 deletions(-) delete mode 100644 test/recordings/proxyfilter-tests.nock.js diff --git a/test/common/filters/proxyfilter-tests.js b/test/common/filters/proxyfilter-tests.js index 7de16d72f8..f3b0183809 100644 --- a/test/common/filters/proxyfilter-tests.js +++ b/test/common/filters/proxyfilter-tests.js @@ -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) { diff --git a/test/recordings/proxyfilter-tests.nock.js b/test/recordings/proxyfilter-tests.nock.js deleted file mode 100644 index 0dd4bd8964..0000000000 --- a/test/recordings/proxyfilter-tests.nock.js +++ /dev/null @@ -1,58 +0,0 @@ -// This file has been autogenerated. - -exports.scopes = [[function (nock) { -var result = -nock('https://ciserversdk.blob.core.windows.net:443') - .put('/conta1?restype=container') - .reply(201, "", { 'last-modified': 'Tue, 22 Oct 2013 17:34:46 GMT', - etag: '"0x8D09D6422926CFC"', - server: 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', - 'x-ms-request-id': '6ffe3de6-f7da-429e-bcfc-bcf2e42b2318', - 'x-ms-version': '2012-02-12', - date: 'Tue, 22 Oct 2013 17:34:45 GMT', - 'transfer-encoding': 'chunked', - connection: 'Keep-alive' }); - return result; }, -function (nock) { -var result = -nock('https://ciserversdk.blob.core.windows.net:443') - .get('/?comp=list') - .reply(200, "conta1https://ciserversdk.blob.core.windows.net/conta1Tue, 22 Oct 2013 17:34:46 GMT\"0x8D09D6422926CFC\"unlockedavailable", { 'transfer-encoding': 'chunked', - 'content-type': 'application/xml', - server: 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', - 'x-ms-request-id': '0db4d59b-90a0-40e0-ab24-e2f8e46439d9', - 'x-ms-version': '2012-02-12', - date: 'Tue, 22 Oct 2013 17:34:47 GMT' }); - return result; }, -function (nock) { -var result = -nock('https://ciserversdk.blob.core.windows.net:443') - .delete('/conta1?restype=container') - .reply(202, "", { 'transfer-encoding': 'chunked', - server: 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', - 'x-ms-request-id': 'e2d877d7-67aa-4a94-b53b-97b7cf53dd0e', - 'x-ms-version': '2012-02-12', - date: 'Tue, 22 Oct 2013 17:34:48 GMT' }); - return result; }], -[function (nock) { -var result = -nock('https://ciserversdk.blob.core.windows.net:443') - .get('/?comp=list') - .reply(200, "", { 'transfer-encoding': 'chunked', - 'content-type': 'application/xml', - server: 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', - 'x-ms-request-id': '724f8901-a79b-426b-9d30-f95c61172a41', - 'x-ms-version': '2012-02-12', - date: 'Tue, 22 Oct 2013 17:34:49 GMT' }); - return result; }], -[function (nock) { -var result = -nock('https://ciserversdk.blob.core.windows.net:443') - .get('/?comp=list') - .reply(200, "", { 'transfer-encoding': 'chunked', - 'content-type': 'application/xml', - server: 'Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0', - 'x-ms-request-id': '26274b26-beaa-45df-a71b-69fca42d3968', - 'x-ms-version': '2012-02-12', - date: 'Tue, 22 Oct 2013 17:34:50 GMT' }); - return result; }]]; \ No newline at end of file