Skip to content

Commit

Permalink
[SNOW-892547] Remove references to sfcdev1 buckets (#620)
Browse files Browse the repository at this point in the history
[SNOW-892547] Remove references to sfcdev buckets
  • Loading branch information
sfc-gh-skumbham authored Aug 18, 2023
1 parent 0cd70e0 commit 303032c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions test/unit/file_transfer_agent/azure_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ describe('Azure client', function () {
});

it('extract bucket name and path', async function () {
verifyNameAndPath('sfc-dev1-regression/test_sub_dir/', 'sfc-dev1-regression', 'test_sub_dir/');
verifyNameAndPath('sfc-dev1-regression/stakeda/test_stg/test_sub_dir/', 'sfc-dev1-regression', 'stakeda/test_stg/test_sub_dir/');
verifyNameAndPath('sfc-dev1-regression/', 'sfc-dev1-regression', '');
verifyNameAndPath('sfc-dev1-regression//', 'sfc-dev1-regression', '/');
verifyNameAndPath('sfc-dev1-regression///', 'sfc-dev1-regression', '//');
verifyNameAndPath('sfc-eng-regression/test_sub_dir/', 'sfc-eng-regression', 'test_sub_dir/');
verifyNameAndPath('sfc-eng-regression/stakeda/test_stg/test_sub_dir/', 'sfc-eng-regression', 'stakeda/test_stg/test_sub_dir/');
verifyNameAndPath('sfc-eng-regression/', 'sfc-eng-regression', '');
verifyNameAndPath('sfc-eng-regression//', 'sfc-eng-regression', '/');
verifyNameAndPath('sfc-eng-regression///', 'sfc-eng-regression', '//');
});

it('get file header - success', async function () {
Expand Down
20 changes: 10 additions & 10 deletions test/unit/file_transfer_agent/gcs_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,24 +74,24 @@ describe('GCS client', function ()
{
var GCS = new SnowflakeGCSUtil();

var result = GCS.extractBucketNameAndPath('sfc-dev1-regression/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = GCS.extractBucketNameAndPath('sfc-eng-regression/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.path, 'test_sub_dir/');

var result = GCS.extractBucketNameAndPath('sfc-dev1-regression/stakeda/test_stg/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = GCS.extractBucketNameAndPath('sfc-eng-regression/stakeda/test_stg/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.path, 'stakeda/test_stg/test_sub_dir/');

var result = GCS.extractBucketNameAndPath('sfc-dev1-regression/');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = GCS.extractBucketNameAndPath('sfc-eng-regression/');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.path, '');

var result = GCS.extractBucketNameAndPath('sfc-dev1-regression//');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = GCS.extractBucketNameAndPath('sfc-eng-regression//');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.path, '/');

var result = GCS.extractBucketNameAndPath('sfc-dev1-regression///');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = GCS.extractBucketNameAndPath('sfc-eng-regression///');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.path, '//');
});

Expand Down
20 changes: 10 additions & 10 deletions test/unit/file_transfer_agent/s3_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,24 +89,24 @@ describe('S3 client', function ()

it('extract bucket name and path', async function ()
{
var result = AWS.extractBucketNameAndPath('sfc-dev1-regression/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = AWS.extractBucketNameAndPath('sfc-eng-regression/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.s3path, 'test_sub_dir/');

var result = AWS.extractBucketNameAndPath('sfc-dev1-regression/stakeda/test_stg/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = AWS.extractBucketNameAndPath('sfc-eng-regression/stakeda/test_stg/test_sub_dir/');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.s3path, 'stakeda/test_stg/test_sub_dir/');

var result = AWS.extractBucketNameAndPath('sfc-dev1-regression/');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = AWS.extractBucketNameAndPath('sfc-eng-regression/');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.s3path, '');

var result = AWS.extractBucketNameAndPath('sfc-dev1-regression//');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = AWS.extractBucketNameAndPath('sfc-eng-regression//');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.s3path, '/');

var result = AWS.extractBucketNameAndPath('sfc-dev1-regression///');
assert.strictEqual(result.bucketName, 'sfc-dev1-regression');
var result = AWS.extractBucketNameAndPath('sfc-eng-regression///');
assert.strictEqual(result.bucketName, 'sfc-eng-regression');
assert.strictEqual(result.s3path, '//');
});

Expand Down

0 comments on commit 303032c

Please sign in to comment.