100
100
# Wait for leader to rsync from archive
101
101
path = '/srv/ubuntu-repository-cache/apache/data/ubuntu_active/dists'
102
wait_for_path(leader, path, RSYNC_TIMEOUT, 'Leader not serving metadata')
102
wait_for_path(leader, path, RSYNC_TIMEOUT, 'Leader does not have metadata')
103
103
log('INFO: Leader has metadata')
106
106
# Test that the leader is now serving metadata
107
107
url = 'http://{}'.format(leader.info['public-address'])