Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay-gopalan committed Feb 10, 2025
1 parent d28e87e commit 4baf336
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/logical/aws/path_config_root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ func TestBackend_PathConfigRoot_RegisterRootRotation(t *testing.T) {
configData := map[string]interface{}{
"access_key": "access-key",
"secret_key": "secret-key",
"rotation_schedule": "*/30 * * * * *",
"rotation_window": 60,
"rotation_schedule": "*/1 * * * *",
"rotation_window": 120,
}

configReq := &logical.Request{
Expand Down
4 changes: 4 additions & 0 deletions builtin/logical/aws/secret_access_keys_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ func TestGenUsername(t *testing.T) {
func TestReadConfig_DefaultTemplate(t *testing.T) {
config := logical.TestBackendConfig()
config.StorageView = &logical.InmemStorage{}
config.System = &testSystemView{}

b := Backend(config)
if err := b.Setup(context.Background(), config); err != nil {
t.Fatal(err)
Expand Down Expand Up @@ -164,6 +166,8 @@ func TestReadConfig_DefaultTemplate(t *testing.T) {
func TestReadConfig_CustomTemplate(t *testing.T) {
config := logical.TestBackendConfig()
config.StorageView = &logical.InmemStorage{}
config.System = &testSystemView{}

b := Backend(config)
if err := b.Setup(context.Background(), config); err != nil {
t.Fatal(err)
Expand Down

0 comments on commit 4baf336

Please sign in to comment.