Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Initial Bridge Client #1

Merged
merged 13 commits into from
Nov 10, 2016
Merged

Initial Bridge Client #1

merged 13 commits into from
Nov 10, 2016

Conversation

braydonf
Copy link
Contributor

@braydonf braydonf commented Nov 8, 2016

No description provided.

@braydonf braydonf force-pushed the master branch 10 times, most recently from 02f5d0e to d13592d Compare November 9, 2016 02:46
@braydonf braydonf changed the title [WIP] Bridge Client Initial Bridge Client Nov 10, 2016
@aleitner aleitner merged commit 85508b4 into storj-archived:master Nov 10, 2016
@braydonf braydonf modified the milestone: v1.0.0 Feb 4, 2017
aligeti added a commit to aligeti/libstorj that referenced this pull request Dec 20, 2017
Test Case storj-archived#1: No bucket name given
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files
Missing first argument: <bucket-id>

Test Case storj-archived#2: Complete command with valid bucket name with 2 files in it
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files testbucket
ID: 6cb2014a988adca6ed712577 	Decrypted: true 	Created: 2017-12-15T17:23:25.832Z 	Name: testbucket
ID: 27607c99600540cc4c57953c 	Size: 9 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-15T17:27:25.461Z 	Name: testfile.txt
ID: ee2fcc89dfe71c932cf44fcc 	Size: 10 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-15T17:29:38.994Z 	Name: testfile2.txt

Test Case storj-archived#3: Complete command with valid bucket name but no files in it
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files testbucket2
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
No files for bucket.

Test Case storj-archived#4: Compete command with invalid bucket name
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files testbucket2233432
Invalid bucket name.
aligeti added a commit to aligeti/libstorj that referenced this pull request Dec 20, 2017
Checking in supports "storj list-files [bucket_name]"

Test Case storj-archived#1: No bucket name given
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files
Missing first argument: <bucket-id>

Test Case storj-archived#2: Complete command with valid bucket name with 2 files in it
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files testbucket
ID: 6cb2014a988adca6ed712577 	Decrypted: true 	Created: 2017-12-15T17:23:25.832Z 	Name: testbucket
ID: 27607c99600540cc4c57953c 	Size: 9 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-15T17:27:25.461Z 	Name: testfile.txt
ID: ee2fcc89dfe71c932cf44fcc 	Size: 10 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-15T17:29:38.994Z 	Name: testfile2.txt

Test Case storj-archived#3: Complete command with valid bucket name but no files in it
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files testbucket2
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
No files for bucket.

Test Case storj-archived#4: Compete command with invalid bucket name
kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj -d list-files testbucket2233432
Invalid bucket name.

on branches master
branches master
aligeti added a commit to aligeti/libstorj that referenced this pull request Jan 3, 2018
==========================================================================================================

Testcase storj-archived#1: No aruguments entered

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file
Missing arguments: <bucket-name> <path>
========================================================================================================

LIST ALLTHE VALID BUCKETS NAMES

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj list-buckets
ID: 6cb2014a988adca6ed712577 	Decrypted: true 	Created: 2017-12-15T17:23:25.832Z 	Name: testbucket
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
ID: 965efd4b5d65fd82643f5727 	Decrypted: true 	Created: 2017-12-18T18:14:05.098Z 	Name: testbucket3
ID: b20824d412f7a8845379769e 	Decrypted: true 	Created: 2017-12-18T18:15:05.270Z 	Name: testbucket4

=========================================================================================================
PICK A BUCKET AND LIST ALL THE FILES IN THAT BUCKET

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj list-files testbucket2
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
ID: 4022eed501eb8d008ce61b84 	Size: 22 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-21T23:39:17.352Z 	Name: testfileA.txt

==========================================================================================================

TEST CASE#2: Execute the complete upload-file command

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file testbucket2 testjson.json
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
[======================================================================] 100.00%
Upload Success! File ID: 037431e2b0489b41db7a363d

==========================================================================================================
LIST THE FILES IN THE ABOVE UPLOADED BUCKET TO VERIFY THAT THE NEW FILES IS LISTED AS WELL

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj list-files testbucket2
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
ID: 4022eed501eb8d008ce61b84 	Size: 22 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-21T23:39:17.352Z 	Name: testfileA.txt
ID: 037431e2b0489b41db7a363d 	Size: 1448 bytes 	Decrypted: true 	Type: application/octet-stream 	Created: 2017-12-22T13:56:16.628Z 	Name: testjson.json

==========================================================================================================

TEST CASE#3: VALID BUCKET NAME AND INVALID FILE-NAME

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file testbucket2 testjson.jsondsf
ID: 725131c74690150e7b0cc747 	Decrypted: true 	Created: 2017-12-18T16:41:41.583Z 	Name: testbucket2
Invalid file path: testjson.jsondsf

==========================================================================================================

TEST CASE#4: INVALID BUCKET NAME AND INVALID FILE-NAME

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file testbucket2sfs testjson.jsondsf
Invalid bucket name.

==========================================================================================================

TEST CASE#4: INVALID BUCKET NAME AND VALID FILE-NAME

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file testbucket3sfs testjson.json
Invalid bucket name.

==========================================================================================================

TEST CASE#5: VALID BUCKET NAME AND VALID FILE-NAME

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file testbucket3 testjson.json
ID: 965efd4b5d65fd82643f5727 	Decrypted: true 	Created: 2017-12-18T18:14:05.098Z 	Name: testbucket3
[======================================================================] 100.00%
Upload Success! File ID: f10d046334eea2e7a6ba9723

==========================================================================================================

TEST CASE#6: TRY AGAIN TO UPLOAD THE SAME FILE WITH VALID BUCKET NAME AND VALID FILE-NAME

kishore@kishore-Inspiron-13-7353:~/libstorj/src$ ./storj upload-file testbucket3 testjson.json
ID: 965efd4b5d65fd82643f5727 	Decrypted: true 	Created: 2017-12-18T18:14:05.098Z 	Name: testbucket3
Preparing File...
Upload failure: File already exists
==========================================================================================================
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants