mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-11 01:42:06 -04:00
fix github tests to use the provided GITHUB_ORG environment variable
(tests fail for non hashicorp people)
This commit is contained in:
parent
e7f4100437
commit
3a98f99aa7
1 changed files with 3 additions and 3 deletions
|
|
@ -29,19 +29,19 @@ func TestBackend_Config(t *testing.T) {
|
|||
"token": os.Getenv("GITHUB_TOKEN"),
|
||||
}
|
||||
config_data1 := map[string]interface{}{
|
||||
"organization": "hashicorp",
|
||||
"organization": os.Getenv("GITHUB_ORG"),
|
||||
"ttl": "",
|
||||
"max_ttl": "",
|
||||
}
|
||||
expectedTTL1, _ := time.ParseDuration("24h0m0s")
|
||||
config_data2 := map[string]interface{}{
|
||||
"organization": "hashicorp",
|
||||
"organization": os.Getenv("GITHUB_ORG"),
|
||||
"ttl": "1h",
|
||||
"max_ttl": "2h",
|
||||
}
|
||||
expectedTTL2, _ := time.ParseDuration("1h0m0s")
|
||||
config_data3 := map[string]interface{}{
|
||||
"organization": "hashicorp",
|
||||
"organization": os.Getenv("GITHUB_ORG"),
|
||||
"ttl": "50h",
|
||||
"max_ttl": "50h",
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue