This repository has been archived by the owner on May 10, 2024. It is now read-only.
feat: Support for access tokens injected by the `Backup Maker Operato… #197
This check has been archived and is scheduled for deletion.
Learn more about checks retention
GitHub Actions / Tests
failed
Nov 1, 2023 in 0s
27 passed, 2 failed and 0 skipped
❌ junit.xml
29 tests were completed in 191s with 27 passed, 2 failed and 0 skipped.
❌ Docs:
❌
set -eu
❌ Docs:
❌
set -eu
✔️ github.com/riotkit-org/br-backup-maker/pkg/actions
✔️ TestDownload
✔️ TestDownload_FailsWhenHTTPCodeIsNotSuccess
✔️ TestDownload_FailsWhenShellCommandFails
✔️ TestDownload_SuccessWithValidGPG
✔️ github.com/riotkit-org/br-backup-maker/pkg/context
✔️ TestGPGOperationContext_GetDecryptionCommand_GetEncryptionCommmand_DoesNotReturnCommandWhenGPGDisabled
✔️ github.com/riotkit-org/br-backup-maker/pkg/crypto
✔️ TestWithoutValidKey
✔️ TestWithMissingKey
✔️ TestValidBufferingLeadsToValidHeaderAndFooter
✔️ github.com/riotkit-org/br-backup-maker/pkg/generate
✔️ Test_RenderTemplate_FindsDefaultImage
✔️ Test_RenderTemplate_UsesProvidedImage
✔️ TestRenderTemplate_WithDefaultValuesFromJSON
✔️ Test_RenderTemplate_NonWritableDirectory
✔️ Test_RenderTemplate_NonExistingTemplate
✔️ Test_RenderTemplate_Kubectl
✔️ TestComputedConfiguration
✔️ TestE2EPassboltPg15
✔️ TestE2ETar
✔️ TestE2EKubectlBackupRestore
✔️ TestRenderChart_InvalidSealedSecretMissingGpgEntry
✔️ TestRenderChart_InvalidSealedSecretMismatchInNamespace
✔️ TestRenderChart_ValidWithSealedSecret
✔️ TestRenderChart_ValidPlainGPGKeyInSecret
✔️ TestRenderChart_ValidWithEvaluatedHelmValuesInLocalShellAtBuildStage
✔️ TestRenderTemplate_pg15_WithValidParams
✔️ TestRenderTemplate_passbolt_pg
✔️ TestRenderTemplate_pg15_WholeWithFilesArrayIsReplaced
✔️ TestTemplating_LoadConfiguration_WithDeepValues
Annotations
Check failure on line 0 in junit.xml
github-actions / Tests
Docs: ►
Failed test found in:
junit.xml
Error:
set -eu
Raw output
set -eu
set -o pipefail
if [[ -f "/opt/data" ]]; then
tarArgs="-C $(dirname /opt/data) $(basedir /opt/data)"
else
tarArgs="-C /opt/data ."
fi
COMMAND="(tar --exclude='../' -zcvf - ${tarArgs}) | cat -";
export BM_AUTH_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjIwMTQyMjk3MTgsImxvZ2luIjoiYWRtaW4iLCJvcmlnX2lhdCI6MTY5ODg2OTcxOCwicmFuZCI6IjQ4In0.2GRG3AGN8gLVQYzAa3Cbsb5pJaMsydea-3LkOkxsk1I";
export BM_COLLECTION_ID="iwa-ait";
export BM_PASSPHRASE="riotkit";
echo " >> Executing backup command and uploading piped result"
exec backup-maker make --url "http://172.17.0.5:8080" \
-c "${COMMAND}" \
--key ./gpg-key \
--log-level info
8 >> Executing backup command and uploading piped result
time="2023-11-01T20:15:23Z" level=info msg="/bin/bash[-eo pipefail -c (tar --exclude='../' -zcvf - -C /opt/data .) | cat - | /usr/bin/backup-maker crypto encrypt --key-path=./gpg-key --type=gpg-armored]"
time="2023-11-01T20:15:23Z" level=info msg="Starting cmd.Encrypt()"
Jtime="2023-11-01T20:15:23Z" level=info msg="Starting Upload() for PID=42"
./
./testfile
time="2023-11-01T20:15:23Z" level=error msg="Status: 500 Internal Server Error, Out: {\n \"data\": {},\n \"error\": \"cannot upload version. cannot upload file, cannot copy stream, error: first chunk of uploaded data does not contain a valid GPG header\",\n \"status\": false\n}, Err: Request to server failed, server returned {\n \"data\": {},\n \"error\": \"cannot upload version. cannot upload file, cannot copy stream, error: first chunk of uploaded data does not contain a valid GPG header\",\n \"status\": false\n}"
Error: Request to server failed, server returned {
"data": {},
"error": "cannot upload version. cannot upload file, cannot copy stream, error: first chunk of uploaded data does not contain a valid GPG header",
"status": false
}
time="2023-11-01T20:15:23Z" level=info msg="Retrying test: 1/10"
time="2023-11-01T20:15:24Z" level=info msg="Loading JSON definition from ./templates/definition/tar.json"
time="2023-11-01T20:15:24Z" level=info msg="Reading configuration file from '../.build/definition.yaml'"
time="2023-11-01T20:15:24Z" level=info msg="Loading GPG key from '../../resources/test/gpg-key.asc'"
time="2023-11-01T20:15:24Z" level=info msg="Writing file '../../.build//backup.sh'"
time="2023-11-01T20:15:24Z" level=info msg="Writing file '../../.build//gpg-key'"
time="2023-11-01T20:15:24Z" level=info msg="Loading JSON definition from ./templates/definition/tar.json"
time="2023-11-01T20:15:24Z" level=info msg="Reading configuration file from '../.build/definition.yaml'"
time="2023-11-01T20:15:24Z" level=info msg="Loading GPG key from '../../resources/test/gpg-key.asc'"
time="2023-11-01T20:15:24Z" level=info msg="Writing file '../../.build//restore.sh'"
time="2023-11-01T20:15:24Z" level=info msg="Writing file '../../.build//gpg-key'"
time="2023-11-01T20:15:24Z" level=info msg="Loading JSON definition from ./templates/definition/tar.json"
time="2023-11-01T20:15:24Z" level=info msg="Reading configuration file from '../.build/definition.yaml'"
2023/11/01 20:15:24 Starting container id: db259a160eff image: docker.io/debian:bookworm-slim
2023/11/01 20:15:25 Container is ready id: db259a160eff image: docker.io/debian:bookworm-slim
#!/bin/bash
# Generated by `backup-maker procedure`
Check failure on line 0 in junit.xml
github-actions / Tests
Docs: ►
Failed test found in:
junit.xml
Error:
set -eu
Raw output
set -eu
set -o pipefail
if [[ -f "/opt/data" ]]; then
tarArgs="-C $(dirname /opt/data) $(basedir /opt/data)"
else
tarArgs="-C /opt/data ."
fi
COMMAND="(tar --exclude='../' -zcvf - ${tarArgs}) | cat -";
export BM_AUTH_TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjIwMTQyMjk3MTgsImxvZ2luIjoiYWRtaW4iLCJvcmlnX2lhdCI6MTY5ODg2OTcxOCwicmFuZCI6IjQ4In0.2GRG3AGN8gLVQYzAa3Cbsb5pJaMsydea-3LkOkxsk1I";
export BM_COLLECTION_ID="iwa-ait";
export BM_PASSPHRASE="riotkit";
echo " >> Executing backup command and uploading piped result"
exec backup-maker make --url "http://172.17.0.5:8080" \
-c "${COMMAND}" \
--key ./gpg-key \
--log-level info
8 >> Executing backup command and uploading piped result
time="2023-11-01T20:15:27Z" level=info msg="/bin/bash[-eo pipefail -c (tar --exclude='../' -zcvf - -C /opt/data .) | cat - | /usr/bin/backup-maker crypto encrypt --key-path=./gpg-key --type=gpg-armored]"
time="2023-11-01T20:15:27Z" level=info msg="Starting cmd.Encrypt()"
Jtime="2023-11-01T20:15:27Z" level=info msg="Starting Upload() for PID=40"
./
./testfile
time="2023-11-01T20:15:27Z" level=error msg="Status: 500 Internal Server Error, Out: {\n \"data\": {},\n \"error\": \"cannot upload version. cannot upload file, cannot copy stream, error: first chunk of uploaded data does not contain a valid GPG header\",\n \"status\": false\n}, Err: Request to server failed, server returned {\n \"data\": {},\n \"error\": \"cannot upload version. cannot upload file, cannot copy stream, error: first chunk of uploaded data does not contain a valid GPG header\",\n \"status\": false\n}"
Error: Request to server failed, server returned {
"data": {},
"error": "cannot upload version. cannot upload file, cannot copy stream, error: first chunk of uploaded data does not contain a valid GPG header",
"status": false
}
time="2023-11-01T20:15:27Z" level=info msg="Retrying test: 2/10"
time="2023-11-01T20:15:28Z" level=info msg="Loading JSON definition from ./templates/definition/tar.json"
time="2023-11-01T20:15:28Z" level=info msg="Reading configuration file from '../.build/definition.yaml'"
time="2023-11-01T20:15:28Z" level=info msg="Loading GPG key from '../../resources/test/gpg-key.asc'"
time="2023-11-01T20:15:28Z" level=info msg="Writing file '../../.build//backup.sh'"
time="2023-11-01T20:15:28Z" level=info msg="Writing file '../../.build//gpg-key'"
time="2023-11-01T20:15:28Z" level=info msg="Loading JSON definition from ./templates/definition/tar.json"
time="2023-11-01T20:15:28Z" level=info msg="Reading configuration file from '../.build/definition.yaml'"
time="2023-11-01T20:15:28Z" level=info msg="Loading GPG key from '../../resources/test/gpg-key.asc'"
time="2023-11-01T20:15:28Z" level=info msg="Writing file '../../.build//restore.sh'"
time="2023-11-01T20:15:28Z" level=info msg="Writing file '../../.build//gpg-key'"
time="2023-11-01T20:15:28Z" level=info msg="Loading JSON definition from ./templates/definition/tar.json"
time="2023-11-01T20:15:28Z" level=info msg="Reading configuration file from '../.build/definition.yaml'"
2023/11/01 20:15:28 Starting container id: 72ebc5dde1a9 image: docker.io/debian:bookworm-slim
2023/11/01 20:15:29 Container is ready id: 72ebc5dde1a9 image: docker.io/debian:bookworm-slim
Loading