Skip to content
Snippets Groups Projects
Verified Commit 3ec1042b authored by Martin Weise's avatar Martin Weise
Browse files

WIP

parent ffa61438
No related branches found
No related tags found
6 merge requests!345Updated docs and endpoints:,!341Fixed mapping problem where UK and FK share columns they are inserted,!339Fixed mapping problem where UK and FK share columns they are inserted,!338Fixed mapping problem where UK and FK share columns they are inserted,!334Fixed mapping problem where UK and FK share columns they are inserted,!333Fixed mapping problem where UK and FK share columns they are inserted
......@@ -7,8 +7,6 @@ from dbrepo.RestClient import RestClient
from dbrepo.api.dto import Container, Image, ContainerBrief, ImageBrief
from dbrepo.api.exceptions import ResponseCodeError, NotExistsError
from dbrepo.api.dto import ImageDate
class ContainerUnitTest(unittest.TestCase):
......@@ -69,29 +67,10 @@ class ContainerUnitTest(unittest.TestCase):
dialect="org.hibernate.dialect.MariaDBDialect",
driver_class="org.mariadb.jdbc.Driver",
jdbc_method="mariadb",
date_formats=[
ImageDate(id=1,
example="2024-03-26 10:26:00",
database_format="%Y-%c-%d %H:%i:%S",
unix_format="yyyy-MM-dd HH:mm:ss",
has_time=True,
created_at=datetime.datetime(2024, 3, 26, 10, 26, 0, 0,
datetime.timezone.utc)),
ImageDate(id=2,
example="2024-03-26",
database_format="%Y-%c-%d",
unix_format="yyyy-MM-dd",
has_time=False,
created_at=datetime.datetime(2024, 3, 26, 0, 0, 0, 0,
datetime.timezone.utc)),
ImageDate(id=3,
example="10:25:01",
database_format="%Y-%c-%d",
unix_format="yyyy-MM-dd",
has_time=False,
created_at=datetime.datetime(2024, 3, 26, 0, 0, 0, 0,
datetime.timezone.utc)),
]),
data_types=[
DataType(display_name="SERIAL", value="serial",
documentation="https://mariadb.com/kb/en/bigint/",
is_quoted=False, is_buildable=True)]),
hash="f829dd8a884182d0da846f365dee1221fd16610a14c81b8f9f295ff162749e50")
# mock
mock.get('/api/container/1', json=exp.model_dump())
......
......@@ -10,8 +10,6 @@ from dbrepo.api.dto import Database, User, Container, Image, UserAttributes, Dat
UserBrief
from dbrepo.api.exceptions import ResponseCodeError, NotExistsError, ForbiddenError, MalformedError, AuthenticationError
from dbrepo.api.dto import ImageDate
class DatabaseUnitTest(unittest.TestCase):
......@@ -72,7 +70,11 @@ class DatabaseUnitTest(unittest.TestCase):
dialect='org.hibernate.dialect.MariaDBDialect',
driver_class='org.mariadb.jdbc.Driver',
jdbc_method='mariadb',
default_port=3306
default_port=3306,
data_types=[
DataType(display_name="SERIAL", value="serial",
documentation="https://mariadb.com/kb/en/bigint/",
is_quoted=False, is_buildable=True)]
)
)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment