[][src]Module krill::test

Helper functions for testing Krill.

Constants

SERVER_URI

Functions

add_child_rfc6492
add_child_to_ta_embedded
add_child_to_ta_rfc6492
add_parent_to_ca
announcement
as_bytes
ca_current_objects
ca_current_resources
ca_details
ca_gets_resources
ca_key_for_rcn
ca_repo_update_rfc8181
ca_roll_activate
ca_roll_init
ca_route_authorization_dryrun
ca_route_authorizations_suggestions
ca_route_authorizations_update
ca_route_authorizations_update_expect_error
child_request
definition
delete_child
delete_parent
generate_new_id
https
init_child
init_child_with_embedded_repo
krill_admin
krill_admin_expect_error
list_publishers
parent_contact
parent_statuses
publisher_details
publisher_request
rc_is_removed
rc_state_becomes_active
rc_state_becomes_new_key
rsync
rta_list
rta_multi_cosign
rta_multi_prep
rta_show
rta_sign_sign
save_file
server_ready
start_krill

Starts krill server for testing, with embedded TA and repo. Creates a random base directory in the 'work' folder, and returns it. Be sure to clean it up when the test is done.

sub_dir

This method sets up a random subdirectory and returns it. It is assumed that the caller will clean this directory themselves.

ta_will_have_issued_n_certs
test_under_tmp

This method sets up a test directory with a random name (a number) under 'work', relative to where cargo is running. It then runs the test provided in the closure, and finally it cleans up the test directory.

tmp_dir
typed_prefix
update_child
update_child_id
update_parent_contact
will_publish_objects