Skip to content

Commit 5baf480

Browse files
authored
Merge pull request #197 from hubmapconsortium/development
1.6.0 - Shared Workspaces
2 parents d030c59 + b68d621 commit 5baf480

22 files changed

+1156
-16
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.5.0
1+
1.6.0

docker/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@ FROM python:3.10-buster
22
WORKDIR /code
33
ENV PYTHONUNBUFFERED=1
44
COPY requirements/requirements.txt /tmp/
5-
RUN pip install --upgrade pip
6-
RUN pip install -r /tmp/requirements.txt
75
RUN apt-get update && \
86
apt-get install -y sudo && \
97
apt-get install -y sssd && \
108
apt-get install -y virtualenv && \
119
apt-get install -y postgresql-client && \
10+
apt-get install -y libsasl2-dev && \
11+
apt-get install -y libldap2-dev && \
1212
rm -rf /var/lib/apt/lists/*
13+
RUN pip install --upgrade pip
14+
RUN pip install -r /tmp/requirements.txt

requirements/requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Django==5.1.3
2121
django-cors-headers==3.13.0
2222
django-picklefield==3.1
2323
django-q2==1.7.3
24-
djangorestframework==3.14.0
24+
djangorestframework==3.15.2
2525
Flask==2.2.2
2626
globus-sdk==3.12.0
2727
h11==0.14.0
@@ -57,6 +57,7 @@ pyparsing==3.0.9
5757
pyrsistent==0.18.1
5858
python-dateutil==2.8.2
5959
python-dotenv==0.21.0
60+
python-ldap==3.4.4
6061
pytz==2022.4
6162
PyYAML==6.0
6263
rdflib==6.2.0

src/tests/unittests/test_models.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from django.test import TestCase
22

3-
from user_workspaces_server.models import Job, Workspace
3+
from user_workspaces_server.models import Job, SharedWorkspaceMapping, Workspace
44

55

66
class WorkspaceModelTests(TestCase):
@@ -16,6 +16,8 @@ def test_get_workspace_dict_fields(self):
1616
"description",
1717
"disk_space",
1818
"datetime_created",
19+
"datetime_last_modified",
20+
"datetime_last_job_launch",
1921
"workspace_details",
2022
"status",
2123
"default_job_type",
@@ -46,3 +48,16 @@ def test_get_job_dict_fields(self):
4648
"core_hours",
4749
"job_details",
4850
]
51+
52+
53+
class SharedWorkspaceModelTests(TestCase):
54+
def test_get_shared_workspace_query_param_fields(self):
55+
"""Check Workspace query parameters"""
56+
assert SharedWorkspaceMapping.get_query_param_fields() == ["is_accepted"]
57+
58+
def test_get_shared_workspace_dict_fields(self):
59+
assert SharedWorkspaceMapping.get_dict_fields() == [
60+
"is_accepted",
61+
"last_resource_options",
62+
"last_job_type",
63+
]

0 commit comments

Comments
 (0)