This repository has been archived by the owner on Dec 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8328a4a
commit 601e0db
Showing
13 changed files
with
243 additions
and
266 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ | |
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
*.log |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
#!/bin/bash | ||
touch ${TEST_DIR}/${DEVICE_ID}_register.out | ||
touch ${TEST_DIR}/${DEVICE_ID}_register.err | ||
touch ${TEST_DIR}/${DEVICE_ID}_get_updates.err | ||
touch ${TEST_DIR}/${DEVICE_ID}_get_updates.out | ||
touch ${TEST_DIR}/${DEVICE_ID}_hearthbeat.out | ||
touch ${TEST_DIR}/${DEVICE_ID}_hearthbeat.err | ||
mkdir -p ${REGISTRATION_FOLDER} | ||
mkdir -p ${GET_UPDATES_FOLDER} | ||
mkdir -p ${HEARTBEAT_FOLDER} | ||
|
||
touch ${REGISTRATION_FOLDER}/${DEVICE_ID}_register.out | ||
touch ${REGISTRATION_FOLDER}/${DEVICE_ID}_register.err | ||
touch ${GET_UPDATES_FOLDER}/${DEVICE_ID}_get_updates.err | ||
touch ${GET_UPDATES_FOLDER}/${DEVICE_ID}_get_updates.out | ||
touch ${HEARTBEAT_FOLDER}/${DEVICE_ID}_heartbeat.out | ||
touch ${HEARTBEAT_FOLDER}/${DEVICE_ID}_heartbeat.err |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#!/bin/bash | ||
if [[ -z "${CERTS_FOLDER}" ]]; then | ||
export CERTS_FOLDER="${test_dir}/certs" | ||
echo "CERTS_FOLDER no defined, setting it to ${CERTS_FOLDER}" | ||
fi | ||
mkdir -p $CERTS_FOLDER | ||
|
||
# make get-certs | ||
kubectl -n flotta get secrets flotta-ca --template="{{index .data \"ca.crt\" | base64decode}}" >${test_dir}/${DEVICE_ID}_ca.pem | ||
kubectl -n flotta get secrets flotta-ca --template="{{index .data \"ca.crt\" | base64decode}}" > ${CERTS_FOLDER}/${DEVICE_ID}_ca.pem | ||
export REG_SECRET_NAME=$(kubectl get secrets -n flotta -l reg-client-ca=true --sort-by=.metadata.creationTimestamp | tail -1 | awk '{print $1}') | ||
kubectl -n flotta get secret ${REG_SECRET_NAME} --template="{{index .data \"client.crt\" | base64decode}}" > ${test_dir}/${DEVICE_ID}_cert.pem | ||
kubectl -n flotta get secret ${REG_SECRET_NAME} --template="{{index .data \"client.key\" | base64decode}}" > ${test_dir}/${DEVICE_ID}_key.pem | ||
kubectl -n flotta get secret ${REG_SECRET_NAME} --template="{{index .data \"client.crt\" | base64decode}}" > ${CERTS_FOLDER}/${DEVICE_ID}_cert.pem | ||
kubectl -n flotta get secret ${REG_SECRET_NAME} --template="{{index .data \"client.key\" | base64decode}}" > ${CERTS_FOLDER}/${DEVICE_ID}_key.pem | ||
# make get-certs END |
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
This file was deleted.
Oops, something went wrong.
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
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
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.