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

Hotfix

parent 5dd6562e
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.1.12</version>
<version>3.3.5</version>
</parent>
<groupId>at.tuwien</groupId>
......@@ -38,11 +38,11 @@
<properties>
<java.version>17</java.version>
<spring-cloud.version>4.0.2</spring-cloud.version>
<spring-cloud.version>4.1.4</spring-cloud.version>
<mapstruct.version>1.5.5.Final</mapstruct.version>
<rabbitmq.version>5.20.0</rabbitmq.version>
<jackson-datatype.version>2.15.0</jackson-datatype.version>
<commons-io.version>2.15.0</commons-io.version>
<commons-io.version>2.17.0</commons-io.version>
<commons-validator.version>1.8.0</commons-validator.version>
<guava.version>33.0.0-jre</guava.version>
<jacoco.version>0.8.12</jacoco.version>
......
......@@ -11,7 +11,7 @@
<groupId>at.tuwien</groupId>
<artifactId>dbrepo-upload-service</artifactId>
<name>dbrepo-upload-service</name>
<version>1.5.3</version>
<version>1.6.0</version>
<url>https://www.ifs.tuwien.ac.at/infrastructures/dbrepo/1.5/</url>
<developers>
......
package at.tuwien.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.testcontainers.containers.BindMode;
......
......@@ -12,7 +12,7 @@ class DatabaseUnitTest(unittest.TestCase):
def test_get_licenses_empty_succeeds(self):
with requests_mock.Mocker() as mock:
# mock
mock.get('/api/database/license', json=[])
mock.get('/api/license', json=[])
# test
response = RestClient().get_licenses()
self.assertEqual([], response)
......@@ -22,7 +22,7 @@ class DatabaseUnitTest(unittest.TestCase):
exp = [License(identifier='CC-BY-4.0', uri='https://creativecommons.org/licenses/by/4.0/',
description='The Creative Commons Attribution license allows re-distribution and re-use of a licensed work on the condition that the creator is appropriately credited.')]
# mock
mock.get('/api/database/license', json=[exp[0].model_dump()])
mock.get('/api/license', json=[exp[0].model_dump()])
# test
response = RestClient().get_licenses()
self.assertEqual(exp, response)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment