mirror of
https://github.com/hashicorp/vault.git
synced 2026-02-03 20:40:45 -05:00
* adding ibm tests for ent files * changing isHashicorpLicense to isIBMLicense and moving DiagnoseCheckLicenseGeneration to core_util_common.go * reverting non-license related tests * removing hashicorp license test Co-authored-by: akshya96 <87045294+akshya96@users.noreply.github.com>
This commit is contained in:
parent
38bb6eae78
commit
097417cd62
3 changed files with 9 additions and 2 deletions
|
|
@ -652,7 +652,9 @@ SEALFAIL:
|
|||
if envLicense := os.Getenv(EnvVaultLicense); envLicense != "" {
|
||||
coreConfig.License = envLicense
|
||||
}
|
||||
vault.DiagnoseCheckLicense(licenseCtx, vaultCore, coreConfig, false)
|
||||
vault.DiagnoseCheckLicense(licenseCtx, vaultCore, coreConfig, vault.DiagnoseCheckLicenseGeneration{
|
||||
Generate: false,
|
||||
})
|
||||
}
|
||||
licenseSpan.End()
|
||||
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ func (c *Core) MissingRequiredState(raw []string, perfStandby bool) bool {
|
|||
return false
|
||||
}
|
||||
|
||||
func DiagnoseCheckLicense(ctx context.Context, vaultCore *Core, coreConfig CoreConfig, generate bool) (bool, []string) {
|
||||
func DiagnoseCheckLicense(ctx context.Context, vaultCore *Core, coreConfig CoreConfig, generateInput DiagnoseCheckLicenseGeneration) (bool, []string) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,6 +11,11 @@ import (
|
|||
"github.com/hashicorp/vault/sdk/logical"
|
||||
)
|
||||
|
||||
type DiagnoseCheckLicenseGeneration struct {
|
||||
Generate bool
|
||||
GenerateIBMLicense bool
|
||||
}
|
||||
|
||||
// GetCoreConfigInternal returns the server configuration
|
||||
// in struct format.
|
||||
func (c *Core) GetCoreConfigInternal() *server.Config {
|
||||
|
|
|
|||
Loading…
Reference in a new issue