Add template for assignment 3

This commit is contained in:
2021-05-17 15:44:23 +02:00
parent 1363e83aa3
commit be629aa432
64 changed files with 3556 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
# TODO
+46
View File
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>at.ac.tuwien.infosys.dst</groupId>
<artifactId>dst</artifactId>
<version>2021.1</version>
<relativePath>..</relativePath>
</parent>
<artifactId>ass3-worker</artifactId>
<packaging>jar</packaging>
<name>DST :: Assignment 3 :: Worker</name>
<dependencies>
<dependency>
<groupId>at.ac.tuwien.infosys.dst</groupId>
<artifactId>ass3-messaging</artifactId>
<version>${project.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-amqp</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.docker-java</groupId>
<artifactId>docker-java</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env bash
redis-cli hmset drivers:at_vienna "1234" "48.19819 16.37127" "5678" "50.19819 20.37127"
# Make sure that all required resources are created and correctly configured
# To test your implementation:
# Publish the following message via the RabbitMQ interface in the queue 'dst.at_vienna'
# {"id":"request1","region":"AT_VIENNA","pickup":{"longitude": 16.371334 ,"latitude": 48.198122}}
# To see if your implementation did remove the driver execute the following command in the VM
# redis-cli hgetall drivers:at_vienna
# the output should not include driver with id 1234
@@ -0,0 +1,6 @@
/**
* This package allows you to write your own integration tests for the worker. For example, you could use the
* RabbitTemplate, Jedis, and DockerClient library to programmatically insert test data, and verify whether containers
* are spawned correctly.
*/
package dst.ass3.worker;
+1
View File
@@ -0,0 +1 @@
# TODO