|
72 | 72 | TimeSource: timeSource, |
73 | 73 | } |
74 | 74 |
|
75 | | - // POSIX subdirectories |
| 75 | + // POSIX subdirectory |
76 | 76 | logDir = "log" |
77 | | - issDir = "issuers" |
78 | 77 | ) |
79 | 78 |
|
80 | 79 | type fixedTimeSource struct { |
@@ -180,7 +179,7 @@ func newPOSIXStorageFunc(t *testing.T, root string) storage.CreateStorage { |
180 | 179 | klog.Fatalf("Failed to initialize POSIX Tessera appender: %v", err) |
181 | 180 | } |
182 | 181 |
|
183 | | - issuerStorage, err := posix.NewIssuerStorage(path.Join(root, issDir)) |
| 182 | + issuerStorage, err := posix.NewIssuerStorage(path.Join(root, logDir)) |
184 | 183 | if err != nil { |
185 | 184 | klog.Fatalf("failed to initialize InMemory issuer storage: %v", err) |
186 | 185 | } |
@@ -589,7 +588,7 @@ func TestAddChain(t *testing.T) { |
589 | 588 | // Check that the issuers have been populated correctly. |
590 | 589 | for _, wantIss := range wantIssChain[1:] { |
591 | 590 | key := sha256.Sum256(wantIss.Raw) |
592 | | - issPath := path.Join(dir, issDir, hex.EncodeToString(key[:])) |
| 591 | + issPath := path.Join(dir, logDir, staticct.IssuersPrefix, hex.EncodeToString(key[:])) |
593 | 592 | gotIss, err := os.ReadFile(issPath) |
594 | 593 | if err != nil { |
595 | 594 | t.Errorf("Failed to read issuer at %q: %v", issPath, err) |
@@ -736,7 +735,7 @@ func TestAddPreChain(t *testing.T) { |
736 | 735 | // Check that the issuers have been populated correctly. |
737 | 736 | for _, wantIss := range wantIssChain[1:] { |
738 | 737 | key := sha256.Sum256(wantIss.Raw) |
739 | | - issPath := path.Join(dir, issDir, hex.EncodeToString(key[:])) |
| 738 | + issPath := path.Join(dir, logDir, staticct.IssuersPrefix, hex.EncodeToString(key[:])) |
740 | 739 | gotIss, err := os.ReadFile(issPath) |
741 | 740 | if err != nil { |
742 | 741 | t.Errorf("Failed to read issuer at %q: %v", issPath, err) |
|
0 commit comments