IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 line
463B

  1. import subprocess
  2. from focker.zfs import *
  3. import re
  4. def test_bootstrap():
  5. subprocess.run(['focker', 'image', 'remove', '--force', 'test-focker-bootstrap'])
  6. subprocess.run(['focker', 'bootstrap', '--tags', 'test-focker-bootstrap'])
  7. name, sha256 = zfs_find('test-focker-bootstrap', focker_type='volume')
  8. assert len(name) >= 7
  9. assert re.search('[a-f]', name[:7])
  10. assert len(sha256) == 64
  11. assert name == sha256[:len(name)]