Skip to content
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

tests: Add ngclient root key rotation tests #1635

Merged
merged 3 commits into from
Oct 27, 2021

Commits on Oct 27, 2021

  1. tests: Refactor simulator signer handling

    Store signers with their keyids so they are easier to remove.
    The signers structure now looks like:
    {
      "role1": {
        "keyidA": SSlibSigner,
        "keyidB": SSlibSigner,
      }
    }
    
    Add convenience method for adding a signer.
    
    Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
    Jussi Kukkonen committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    fd40dfc View commit details
    Browse the repository at this point in the history
  2. tests: Mark RepositorySimulator. create_key() static

    Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
    Jussi Kukkonen committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    ad80bd9 View commit details
    Browse the repository at this point in the history
  3. tests: Add root key rotation tests

    Add one test with 1 subtests for various root key rotation situations.
    
    The test data definition format is a bit tricky but I tried to document
    that in the test function docstring.
    
    Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
    Jussi Kukkonen committed Oct 27, 2021
    Configuration menu
    Copy the full SHA
    e817473 View commit details
    Browse the repository at this point in the history