Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup obsolete token and related code #72

Merged
merged 1 commit into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions maap/utils/HTTPServerHandler.py

This file was deleted.

39 changes: 0 additions & 39 deletions maap/utils/TokenHandler.py

This file was deleted.

6 changes: 0 additions & 6 deletions test/test_MAAP.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from unittest import TestCase
from maap.maap import MAAP
from maap.utils.TokenHandler import TokenHandler
from unittest.mock import MagicMock
import re

Expand Down Expand Up @@ -64,11 +63,6 @@ def test_genFromEarthdata(self):
'data_center="MAAP Data Management Team", '\
'bounding_box="-35.4375,-55.6875,-80.4375,37.6875")')

def test_TokenHandler(self):
th = TokenHandler("a-K9YbTr8h112zW5pLV8Fw")
token = th.get_access_token()
self.assertTrue(token != 'unauthorized' and len(token) > 0)

def test_uploadFiles(self):
self.maap._upload_s3 = MagicMock(return_value=None)
result = self.maap.uploadFiles(['test/s3-upload-testfile1.txt', 'test/s3-upload-testfile2.txt'])
Expand Down