Skip to content

Commit

Permalink
Removed commented out code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcardOrtus committed Sep 22, 2023
1 parent 4fa5b6a commit 5cf2ce3
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 63 deletions.
15 changes: 4 additions & 11 deletions test-harness/tests/specs/AmazonS3Spec.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
prepareMock( s3 );
s3.$property( propertyName = "log", mock = createLogStub() );

// try {
s3.putBucket( testBucket );
// } catch ( any e ) {
// writeDump(
// var = "Error putting test bucket, maybe cached: #e.message# #e.detail#",
// output = "console"
// );
// }
}

private function prepTmpFolder(){
Expand Down Expand Up @@ -98,7 +91,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
contentType = "auto"
);
var md = s3.getObjectInfo( testBucket, "example.txt" );
// debug( md );

expect( md ).notToBeEmpty();
expect( md[ "Content-Type" ] ).toBe( "text/plain" );
} );
Expand All @@ -120,7 +113,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
);
expect( resp.contains( "multipart" ) ).toBeTrue();
var md = s3.getObjectInfo( testBucket, uploadFileName );
// debug( md );

expect( md ).notToBeEmpty();
expect( md[ "Content-Length" ] ).toBe( fileSize );
expect( md[ "Content-Type" ] ).toBe( "text/plain" );
Expand All @@ -147,7 +140,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
"Hello, space world!"
);
var md = s3.getObjectInfo( testBucket, "Word Doc Tests.txt" );
// debug( md );

expect( md ).notToBeEmpty();
}
);
Expand Down Expand Up @@ -571,7 +564,7 @@ component extends="coldbox.system.testing.BaseTestCase" {
var get = s3.getObject( testBucket, "presignedput.txt" );

expect( get.error ).toBeFalse();
// toString() since there is no content type set in thnis test, Adobe doesn't send back the file as a string, but a byte output stream
// toString() since there is no content type set in this test, Adobe doesn't send back the file as a string, but a byte output stream
expect( toString( get.response ) ).toBe( "Pre-Signed Put!" );
} );

Expand Down
7 changes: 0 additions & 7 deletions test-harness/tests/specs/models/AmazonS3/buildKeyName.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
// all your suites go here.
describe( "The buildKeyName function should...", function(){
beforeEach( function(){
uri = mockData( $num = 1, $type = "words:1" )[ 1 ];
Expand All @@ -34,7 +28,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
defaultBucketName = mockdata( $num = 1, $type = "words:1" )[ 1 ],
defaultObjectOwnership = mockdata( $num = 1, $type = "words:1" )[ 1 ]
);
// = getInstance("AmazonS3@s3sdk");
} );
it( "If the urlStyle is path and a bucket is submitted, return bucket\uri", function(){
testObj.setUrlStyle( "path" );
Expand Down
5 changes: 0 additions & 5 deletions test-harness/tests/specs/models/AmazonS3/buildUrlEndpoint.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
5 changes: 0 additions & 5 deletions test-harness/tests/specs/models/AmazonS3/init.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
5 changes: 0 additions & 5 deletions test-harness/tests/specs/models/AmazonS3/setAuth.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
5 changes: 0 additions & 5 deletions test-harness/tests/specs/models/AmazonS3/setAwsDomain.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
5 changes: 0 additions & 5 deletions test-harness/tests/specs/models/AmazonS3/setAwsRegion.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down
5 changes: 0 additions & 5 deletions test-harness/tests/specs/models/AmazonS3/setSSL.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,6 @@ component extends="coldbox.system.testing.BaseTestCase" {
super.beforeAll();
}

// executes after all suites+specs in the run() method
// function afterAll(){

// }

/*********************************** BDD SUITES ***********************************/

function run( testResults, testBox ){
Expand Down

0 comments on commit 5cf2ce3

Please sign in to comment.