forked from hashicorp/vault
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Vault version verification integration test (hashicorp#17377)
* Update Vault version verification integration test Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> * Refactor to validate artifact build date Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> * Address review comments Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> * Fix capitalization in variable descriptions Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com> Signed-off-by: Jaymala Sinha <jaymala@hashicorp.com>
- Loading branch information
Jaymala
authored and
jayant07-yb
committed
Mar 15, 2023
1 parent
3cb5b9b
commit d3f79ec
Showing
13 changed files
with
206 additions
and
47 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
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 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 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
terraform { | ||
required_providers { | ||
enos = { | ||
source = "app.terraform.io/hashicorp-qti/enos" | ||
} | ||
} | ||
} | ||
|
||
resource "enos_local_exec" "get_build_date" { | ||
scripts = ["${path.module}/scripts/build_date.sh"] | ||
} | ||
|
||
output "build_date" { | ||
value = trimspace(enos_local_exec.get_build_date.stdout) | ||
} | ||
|
||
resource "enos_local_exec" "get_version" { | ||
scripts = ["${path.module}/scripts/version.sh"] | ||
} | ||
|
||
output "version" { | ||
value = trimspace(enos_local_exec.get_version.stdout) | ||
} | ||
|
||
resource "enos_local_exec" "get_revision" { | ||
inline = ["git rev-parse HEAD"] | ||
} | ||
|
||
output "revision" { | ||
value = trimspace(enos_local_exec.get_revision.stdout) | ||
} |
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/env bash | ||
set -eu -o pipefail | ||
|
||
# Set up the environment for building Vault. | ||
root_dir="$(git rev-parse --show-toplevel)" | ||
|
||
pushd "$root_dir" > /dev/null | ||
|
||
IFS="-" read -r VAULT_BUILD_DATE _other <<< "$(make build-date)" | ||
echo $VAULT_BUILD_DATE |
File renamed without changes.
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
Oops, something went wrong.