Loading itb/README.md +10 −5 Original line number Diff line number Diff line Loading @@ -22,16 +22,21 @@ Attach your context broker to the ITB network: ### Access ITB The ITB UI is available at: http://localhost:9000 ```docker logs -f <itb-uiHost:Port>``` In these logs you will find the password for a first connection, the username being by default "admin@itb" The default logs are : user change_this_password ### Import Test Suites ```curl -iX POST 'http://localhost:8080/api/init' -d '{}' -H 'Content-type: application/json'``` By default the official Robot NGSI-LD Test Suite will be imported to ITB But note that you can also import your own Test Suite if you have forked and modify it for example You would need to "initialize" again running the command ```curl -iX POST 'http://localhost:8080/api/init' -d '{<link_to_your_repository>}' -H 'Content-type: application/json'``` This will trigger the initialization of the external service. This will git clone the ETSI NGSI-LD Robot Framework Test Suite. This will git clone your test suite. From the test files, the service generate their ITB version and deploy them in ITB. ### Configure your SUT Loading itb/data/preconfiguration.zip (2.64 KiB) File changed.No diff preview for this file type. View original file View changed file itb/robot-processing/Dockerfile +5 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ RUN apt-get update && apt-get install -y \ python3-pip \ git \ zip \ curl \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt /tmp/requirements.txt Loading @@ -29,12 +30,14 @@ RUN mkdir -p /opt/robot-tests/working-repo /opt/robot-tests/listeners && \ COPY itb/robot-processing/test-runner-service/src/main/resources/listeners /opt/robot-tests/listeners ENV PYTHONPATH="/opt/robot-tests" ENV PATH="/opt/venv/bin:$PATH" WORKDIR /app COPY --from=builder /app/target/test-runner-service-*.jar app.jar COPY itb/robot-processing/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 8080 CMD ["java", "-jar", "app.jar"] No newline at end of file ENTRYPOINT ["/entrypoint.sh"] No newline at end of file itb/robot-processing/entrypoint.sh 0 → 100644 +17 −0 Original line number Diff line number Diff line #!/bin/sh java -jar /app/app.jar & APP_PID=$! echo "Waiting for service to be ready..." until curl -sf http://localhost:8080/actuator/health; do sleep 2 done echo "Service ready" echo "Running init..." curl -X POST http://localhost:8080/api/init \ -H "Content-Type: application/json" \ -d '{}' wait $APP_PID No newline at end of file itb/robot-processing/test-runner-service/pom.xml +5 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,11 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> </dependencies> <build> Loading Loading
itb/README.md +10 −5 Original line number Diff line number Diff line Loading @@ -22,16 +22,21 @@ Attach your context broker to the ITB network: ### Access ITB The ITB UI is available at: http://localhost:9000 ```docker logs -f <itb-uiHost:Port>``` In these logs you will find the password for a first connection, the username being by default "admin@itb" The default logs are : user change_this_password ### Import Test Suites ```curl -iX POST 'http://localhost:8080/api/init' -d '{}' -H 'Content-type: application/json'``` By default the official Robot NGSI-LD Test Suite will be imported to ITB But note that you can also import your own Test Suite if you have forked and modify it for example You would need to "initialize" again running the command ```curl -iX POST 'http://localhost:8080/api/init' -d '{<link_to_your_repository>}' -H 'Content-type: application/json'``` This will trigger the initialization of the external service. This will git clone the ETSI NGSI-LD Robot Framework Test Suite. This will git clone your test suite. From the test files, the service generate their ITB version and deploy them in ITB. ### Configure your SUT Loading
itb/data/preconfiguration.zip (2.64 KiB) File changed.No diff preview for this file type. View original file View changed file
itb/robot-processing/Dockerfile +5 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ RUN apt-get update && apt-get install -y \ python3-pip \ git \ zip \ curl \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt /tmp/requirements.txt Loading @@ -29,12 +30,14 @@ RUN mkdir -p /opt/robot-tests/working-repo /opt/robot-tests/listeners && \ COPY itb/robot-processing/test-runner-service/src/main/resources/listeners /opt/robot-tests/listeners ENV PYTHONPATH="/opt/robot-tests" ENV PATH="/opt/venv/bin:$PATH" WORKDIR /app COPY --from=builder /app/target/test-runner-service-*.jar app.jar COPY itb/robot-processing/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh EXPOSE 8080 CMD ["java", "-jar", "app.jar"] No newline at end of file ENTRYPOINT ["/entrypoint.sh"] No newline at end of file
itb/robot-processing/entrypoint.sh 0 → 100644 +17 −0 Original line number Diff line number Diff line #!/bin/sh java -jar /app/app.jar & APP_PID=$! echo "Waiting for service to be ready..." until curl -sf http://localhost:8080/actuator/health; do sleep 2 done echo "Service ready" echo "Running init..." curl -X POST http://localhost:8080/api/init \ -H "Content-Type: application/json" \ -d '{}' wait $APP_PID No newline at end of file
itb/robot-processing/test-runner-service/pom.xml +5 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,11 @@ <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-freemarker</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> </dependencies> <build> Loading