Skip to content

Commit

Permalink
shellcheck fixes for timescaledb bats tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wagmarcel committed Dec 19, 2024
1 parent abeaf7d commit 4c9a1ea
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
4 changes: 0 additions & 4 deletions test/bats/test-timescaledb-bridge/pgrest-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ USER=realm_user
KEYCLOAK_URL=http://keycloak.local/auth/realms
CLIENT_ID="scorpio"
PGREST_URL=pgrest.local
POSTGRES_USERNAME=dbreader
POSTGRES_DATABASE=tsdb
POSTGRES_SECRET=dbreader.acid-cluster.credentials.postgresql.acid.zalan.do
ATTRIBUTES_PROPERTY=/tmp/property.txt
ATTRIBUTES_PROPERTY2=/tmp/property2.txt
ATTRIBUTES_TOPIC=iff.ngsild.attributes
Expand All @@ -31,7 +28,6 @@ IDSTATE2="${URN2}\\\\${STATE}"
VALUE="state"
VALUE2="1"
PROPERTY=https://uri.etsi.org/ngsi-ld/Property
POSTGRES_PASSWORD=$(kubectl -n ${NAMESPACE} get secret/${POSTGRES_SECRET} -o jsonpath='{.data.password}'| base64 -d)
TSDB_RESULT=/tmp/TSDB_RESULT
TSDBTABLE=attributes
ENTITYTABLE=entities
Expand Down
14 changes: 0 additions & 14 deletions test/bats/test-timescaledb-bridge/timescaledb-bridge-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ VALUE2="1"
PROPERTY=https://uri.etsi.org/ngsi-ld/Property
RELATIONSHIP=https://uri.etsi.org/ngsi-ld/Relationship
POSTGRES_PASSWORD=$(kubectl -n ${IFFNAMESPACE} get secret/${POSTGRES_SECRET} -o jsonpath='{.data.password}'| base64 -d)
TSDB_EXPECTED=/tmp/TSDB_EXPECTED
TSDB_RESULT=/tmp/TSDB_RESULT

cat << EOF > ${ATTRIBUTES_PROPERTY}
Expand Down Expand Up @@ -79,19 +78,6 @@ cat << EOF > ${ENTITY}
}
EOF

# cat << EOF > ${TSDB_EXPECTED}
# {
# "id": "${IDSTATE}",
# "entityId": "${URN}",
# "name": "${STATE}",
# "type": "${PROPERTY}",
# "https://uri.etsi.org/ngsi-ld/hasValue": "${VALUE2}",
# "nodeType": "@value",
# "valueType": "http://www.w3.org/2001/XMLSchema#string",
# "index": 0
# }
# EOF

# send data to kafka bridge
# $1: file to send
# $2: kafka topic
Expand Down

0 comments on commit 4c9a1ea

Please sign in to comment.