sparclclient 1.2.3b8__tar.gz → 1.2.4b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/PKG-INFO +2 -2
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/__init__.py +2 -1
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/tests/expected_pat.py +9 -6
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/tests/tests_api.py +8 -7
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/.github/workflows/django.yml +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/.gitignore +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/.pre-commit-config.yaml +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/.readthedocs.yaml +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/LICENSE +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/Makefile +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/README.md +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/make.bat +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/pyproject.toml +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/requirements-client.txt +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/requirements-internal.txt +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/requirements.txt +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/source/conf.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/source/index.rst +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/source/sparcl.rst +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/Results.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/benchmarks/__init__.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/benchmarks/benchmarks.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/client.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/conf.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/exceptions.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/fields.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/gather_2d.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/notebooks/sparcl-examples.ipynb +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/resample_spectra.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/sparc.ini +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/type_conversion.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/unsupported.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/sparcl/utils.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/tests/expected_dev1.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/tests/methods_tests.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/tests/utils.py +0 -0
- {sparclclient-1.2.3b8 → sparclclient-1.2.4b1}/tox.ini +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: sparclclient
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4b1
|
|
4
4
|
Summary: A client for getting spectra and meta-data from NOIRLab.
|
|
5
5
|
Author-email: "S. Pothier" <datalab-spectro@noirlab.edu>
|
|
6
6
|
Description-Content-Type: text/markdown
|
|
@@ -87,9 +87,11 @@ authorized_1 = {
|
|
|
87
87
|
"Loggedin_As": "test_user_1@noirlab.edu",
|
|
88
88
|
"Authorized_Datasets": {
|
|
89
89
|
"BOSS-DR16",
|
|
90
|
+
"BOSS-DR17",
|
|
90
91
|
"DESI-DR1",
|
|
91
92
|
"DESI-EDR",
|
|
92
93
|
"SDSS-DR16",
|
|
94
|
+
"SDSS-DR17",
|
|
93
95
|
"SDSS-DR17-test",
|
|
94
96
|
},
|
|
95
97
|
}
|
|
@@ -107,20 +109,21 @@ authorized_3 = {
|
|
|
107
109
|
# Private and Public
|
|
108
110
|
pub_1 = ["BOSS-DR16"]
|
|
109
111
|
pub_all = ["BOSS-DR16", "DESI-EDR", "SDSS-DR16"]
|
|
110
|
-
priv = ["DESI-DR1", "SDSS-DR17-test"]
|
|
112
|
+
priv = ["DESI-DR1", "SDSS-DR17-test", "BOSS-DR17", "SDSS-DR17"]
|
|
111
113
|
all_all = pub_all + priv
|
|
112
114
|
all_all.sort()
|
|
115
|
+
privpub1 = [pub_all[0], priv[0]]
|
|
113
116
|
unauth = "test_user_2@noirlab.edu"
|
|
114
117
|
#
|
|
115
118
|
auth_find_1 = auth_find_2 = all_all
|
|
116
119
|
auth_find_3 = auth_retrieve_3 = (f"[DSDENIED] uname='{unauth}' is declined "
|
|
117
|
-
f"access to datasets={priv}; "
|
|
118
|
-
f"drs_requested={
|
|
120
|
+
f"access to datasets={[priv[0]]}; "
|
|
121
|
+
f"drs_requested={privpub1} "
|
|
119
122
|
f"my_auth={pub_all}")
|
|
120
123
|
auth_find_4 = auth_find_6 = pub_all
|
|
121
124
|
auth_find_5 = auth_retrieve_6 = ("[DSDENIED] uname='ANONYMOUS' is declined "
|
|
122
|
-
f"access to datasets={priv}; "
|
|
123
|
-
f"drs_requested={
|
|
125
|
+
f"access to datasets={[priv[0]]}; "
|
|
126
|
+
f"drs_requested={privpub1} "
|
|
124
127
|
f"my_auth={pub_all}")
|
|
125
|
-
auth_retrieve_1 = auth_retrieve_2 =
|
|
128
|
+
auth_retrieve_1 = auth_retrieve_2 = privpub1
|
|
126
129
|
auth_retrieve_4 = auth_retrieve_5 = auth_retrieve_7 = auth_retrieve_8 = pub_1
|
|
@@ -757,9 +757,10 @@ class AuthTest(unittest.TestCase):
|
|
|
757
757
|
|
|
758
758
|
# Dataset lists
|
|
759
759
|
cls.Pub = ["BOSS-DR16", "DESI-EDR", "SDSS-DR16"]
|
|
760
|
-
cls.Priv = ["DESI-DR1", "SDSS-DR17-test"]
|
|
760
|
+
cls.Priv = ["DESI-DR1", "SDSS-DR17-test", "BOSS-DR17", "SDSS-DR17"]
|
|
761
761
|
cls.PrivPub = cls.Priv + cls.Pub
|
|
762
762
|
cls.PrivPub.sort()
|
|
763
|
+
cls.PrivPub1 = [cls.Priv[0], cls.Pub[0]]
|
|
763
764
|
|
|
764
765
|
# Sample list of sparcl_ids from each data set
|
|
765
766
|
out = ["sparcl_id"]
|
|
@@ -773,7 +774,7 @@ class AuthTest(unittest.TestCase):
|
|
|
773
774
|
cls.uuid_priv = (
|
|
774
775
|
cls.client.find(
|
|
775
776
|
outfields=out,
|
|
776
|
-
constraints={"data_release": cls.Priv},
|
|
777
|
+
constraints={"data_release": [cls.Priv[0]]},
|
|
777
778
|
limit=2,
|
|
778
779
|
sort="sparcl_id",
|
|
779
780
|
)
|
|
@@ -996,7 +997,7 @@ class AuthTest(unittest.TestCase):
|
|
|
996
997
|
def test_auth_find_3(self):
|
|
997
998
|
"""Test find method with unauthorized user; private data set"""
|
|
998
999
|
exp = "exp.auth_find_3"
|
|
999
|
-
self.auth_find(self.unauth_user, self.
|
|
1000
|
+
self.auth_find(self.unauth_user, self.PrivPub1, exp)
|
|
1000
1001
|
|
|
1001
1002
|
# | find | Unauth | None | PASS |
|
|
1002
1003
|
def test_auth_find_4(self):
|
|
@@ -1009,7 +1010,7 @@ class AuthTest(unittest.TestCase):
|
|
|
1009
1010
|
"""Test find method with anonymous user; private data set
|
|
1010
1011
|
specified"""
|
|
1011
1012
|
exp = "exp.auth_find_5"
|
|
1012
|
-
self.auth_find(None, self.
|
|
1013
|
+
self.auth_find(None, self.PrivPub1, exp)
|
|
1013
1014
|
|
|
1014
1015
|
# | find | Anon | None | PASS |
|
|
1015
1016
|
def test_auth_find_6(self):
|
|
@@ -1022,7 +1023,7 @@ class AuthTest(unittest.TestCase):
|
|
|
1022
1023
|
def test_auth_retrieve_1(self):
|
|
1023
1024
|
"""Retrieve method with authorized user; private data set specified"""
|
|
1024
1025
|
exp = "exp.auth_retrieve_1"
|
|
1025
|
-
self.auth_retrieve(self.auth_user, self.
|
|
1026
|
+
self.auth_retrieve(self.auth_user, self.PrivPub1, exp)
|
|
1026
1027
|
|
|
1027
1028
|
# | retrieve | Auth | None | PASS |
|
|
1028
1029
|
# @skip("Does not return Priv") # @@@
|
|
@@ -1036,7 +1037,7 @@ class AuthTest(unittest.TestCase):
|
|
|
1036
1037
|
def test_auth_retrieve_3(self):
|
|
1037
1038
|
"""Retrieve method with unauthorized user; private dataset specified"""
|
|
1038
1039
|
exp = "exp.auth_retrieve_3"
|
|
1039
|
-
self.auth_retrieve(self.unauth_user, self.
|
|
1040
|
+
self.auth_retrieve(self.unauth_user, self.PrivPub1, exp)
|
|
1040
1041
|
|
|
1041
1042
|
# | retrieve | Unauth | None | PASS |
|
|
1042
1043
|
# Should PASS since default (no data sets) means only
|
|
@@ -1059,7 +1060,7 @@ class AuthTest(unittest.TestCase):
|
|
|
1059
1060
|
"""Retrieve method with anonymous user; private data set specified"""
|
|
1060
1061
|
self.silent_logout()
|
|
1061
1062
|
exp = "exp.auth_retrieve_6"
|
|
1062
|
-
self.auth_retrieve(None, self.
|
|
1063
|
+
self.auth_retrieve(None, self.PrivPub1, exp)
|
|
1063
1064
|
#!# Replace exception name below once real one is created
|
|
1064
1065
|
|
|
1065
1066
|
# | retrieve | Anon | None | PASS |
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|