This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: score.dev/v1b1 | |
metadata: | |
name: score-cronjob | |
containers: | |
greeter: | |
image: hello-world:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# IMAGE_NAME and IMAGE_TAG must be defined before - you had been using it in your docker-build step | |
# HUMANITEC_ORG is name of your org in Humanitec | |
# HUMANITEC_TOKEN that you defined under "Api Tokens" in Humanitec | |
Notify Humanitec About New Image: | |
image: curlimages/curl:latest | |
stage: .post | |
script: | |
- echo "Sending ${IMAGE_NAME}:${IMAGE_TAG} to Humanitec" | |
- > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud run deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ghcr.io/marketsquare/robotframework-browser/rfbrowser-stable:12.3.0 | |
WORKDIR /robot | |
COPY . . | |
USER root | |
RUN chown -R pwuser:pwuser /robot | |
USER pwuser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO: Started server process [9276] | |
INFO: Waiting for application startup. | |
INFO: Application startup complete. | |
INFO: Uvicorn running on http://0.0.0.0:5003 (Press CTRL+C to quit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip3 install robotframework-webservice | |
python3 -m RobotFrameworkService.main -t . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library RequestsLibrary | |
Library Collections | |
Library json | |
Test Setup Prepare test case | |
*** Test Cases *** | |
Test webhook with Text | |
${payload_text} Set Variable Hello World |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI, Response, Request | |
import json | |
from json import JSONDecodeError | |
app = FastAPI() | |
webhook_call = {} | |
@app.get('/all') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Settings *** | |
Library RequestsLibrary | |
Library json | |
*** Variables *** | |
${START_BEFORE} 2021-08-01T00:00:00.000+0200 | |
${CAMUNDA_URL} http://localhost:8080 | |
*** Tasks *** | |
Get history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** Tasks *** | |
Run Robot Service Task | |
FOR ${i} IN RANGE 0 ${BATCH_SIZE} | |
${workload} fetch and pass my_task_topic_name message=Finshed processing ${i} process instances | |
do something with workload ${workload} | |
END |