Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Expand testclient to test delegations and root rotations #720

Merged
merged 4 commits into from
Aug 11, 2016

Conversation

cyli
Copy link
Contributor

@cyli cyli commented May 5, 2016

Add more extensive delegation tests and root rotation tests to our test client.

Also, this can be used against Docker Hub.


# Input comes before the username/password, and if there is a username
# and password, we need a newline after the input. Otherwise, just use
# EOF (for instsance if we're piping text to verify)
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: instance

@cyli cyli force-pushed the expand_testclient branch 2 times, most recently from 7e0473b to bdace49 Compare May 12, 2016 18:01
@cyli cyli changed the title WIP: Expand testclient Expand testclient to test delegations and root rotations May 12, 2016
@cyli cyli force-pushed the expand_testclient branch from bdace49 to 8d8229c Compare May 25, 2016 23:56
@endophage
Copy link
Contributor

Needs a rebase but seems like we should merge this.


def add_delegation_test(self, tempfile, tempdir):
"""
Add a delegation to the repo - assumes hte repo has already been initialized
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: the (second one)

@riyazdf
Copy link
Contributor

riyazdf commented Jul 15, 2016

this is awesome, would love to have this merged and running in CI!

LGTM pending nits and rebase.

@cyli cyli force-pushed the expand_testclient branch 3 times, most recently from 3a49c1c to 5e65084 Compare July 18, 2016 20:55
@cyli
Copy link
Contributor Author

cyli commented Jul 18, 2016

With #825, this test script would break as it does key importing of delegation keys. This PR will need #640 to be implemented (and then this PR needs to be changed to generate keys), or importing of keys without a path header first before merging.

@cyli cyli force-pushed the expand_testclient branch from 5e65084 to e351e4a Compare August 8, 2016 23:45
@cyli
Copy link
Contributor Author

cyli commented Aug 8, 2016

#882 fixes this issue, so once that is merged this can be merged.

cyli added 3 commits August 11, 2016 10:06
…king and

root rotation checking, the script is getting more complex with text mangling.

Signed-off-by: Ying Li <ying.li@docker.com>
…ent.py file

Signed-off-by: Ying Li <ying.li@docker.com>
Signed-off-by: Ying Li <ying.li@docker.com>
@cyli cyli force-pushed the expand_testclient branch from 3e8e37e to 9135e90 Compare August 11, 2016 17:06
Signed-off-by: Ying Li <ying.li@docker.com>
@cyli cyli merged commit b77dbeb into notaryproject:master Aug 11, 2016
@cyli cyli deleted the expand_testclient branch August 11, 2016 18:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants