-
Notifications
You must be signed in to change notification settings - Fork 24
Adds a Tuf local store abstraction and a file based implementation #149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@patflynn , what do you think of putting "abstractions" into They might be useful across more than a single module, and I'm inlined it might be slightly better if |
@vlsi You're suggesting putting the TestResources into testkit? I like the idea. This was the rule at Google too. It's a bit tricky in this case because I would have to move the associated resource data, which I like a little less from a navigatability standpoint for test maintainers. |
That is right, however, reading files from WDYT of using |
Yeah that makes sense. I was avoiding it initially because the API itself doesn't read resources from the class path as the local repo and trusted root can be anywhere on the filesystem, but I should be able to bridge that. |
This does get a little nasty though as circular deps are going to rare their ugly heads :). These test support classes will be quite limited since they won't be able to use any sigstore-java types unless we break the tests out into a separate module.. |
I do not follow you here. sigstore-testkit dependency on sigstore-java is just fine. |
Aha! You're right. That's great! I guess Gradle doesn't include the test deps when testing module cycles. GTK. |
Depending on "test" artifacts is weird, and Gradle does not provide out-of-the-box to "depend on files from src/test/..." Here's a sample where |
@vlsi PTAL |
sigstore-testkit/src/main/java/dev/sigstore/testkit/tuf/TestResources.java
Show resolved
Hide resolved
Signed-off-by: Patrick Flynn <[email protected]>
7b29523
to
e6f844b
Compare
Do you mean move the TestResources class to testkit as TufTestResources or
something like that?
…On Wed, Sep 14, 2022 at 9:20 AM Vladimir Sitnikov ***@***.***> wrote:
@patflynn <https://github.com/patflynn> , what do you think of putting
"abstractions" into sigstore-testkit folder?
They might be useful across more than a single module, and I'm inlined it
might be slightly better if test/src includes code with @test methods
"only".
—
Reply to this email directly, view it on GitHub
<#149 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB37SHPNAYOXMSR3QQ2TRILV6HGJLANCNFSM6AAAAAAQMMLLYI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
TUF local repo store sets us up to be able to use an in-memory implementation for read-only file system scenarios.
Progress towards #60
Signed-off-by: Patrick Flynn [email protected]