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

Update layout expiry behavior #616

Merged
merged 1 commit into from
Aug 3, 2023

Conversation

SpencerKlem
Copy link
Contributor

Please fill in the fields below to submit a pull request. The more information
that is provided, the better.

Fixes issue #545:

Description of the changes being introduced by the pull request:
Adding test cases, has bug
Please verify and check that the pull request fulfills the following
requirements
:

  • The code follows the Code Style Guidelines
  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Copy link
Member

@adityasaky adityasaky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think logically this coming along. Note that you don't have to close this PR to push more changes, you can just push to the same branch. :)

tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
@SpencerKlem
Copy link
Contributor Author

Current issue: verifylib.py is having trouble comparing the two mocked dates as one is timezone aware and the other date is not.

tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
@adityasaky adityasaky changed the title Added test cases for expiry with a bug Update layout expiry behavior Jul 31, 2023
tests/test_verifylib.py Outdated Show resolved Hide resolved
tests/test_verifylib.py Outdated Show resolved Hide resolved
@SpencerKlem SpencerKlem force-pushed the SpencerMainBranch branch 2 times, most recently from 8218d2d to 17f12ed Compare August 1, 2023 16:42
Previously, the layout was considered to be expired if the
current time was after the timestamp in the layout. Now, the
layout is considered to be expired from the time specified
in the layout onwards.

Signed-off-by: Spencer Klem <[email protected]>
@adityasaky adityasaky requested a review from lukpueh August 1, 2023 16:51
Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@lukpueh lukpueh merged commit 79943b1 into in-toto:develop Aug 3, 2023
@adityasaky
Copy link
Member

Great work, @SpencerKlem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants