[pve-devel] [PATCH container 0/5] Further snapshot refactoring

Fabian Grünbichler f.gruenbichler at proxmox.com
Mon Feb 22 13:08:56 CET 2016


This patch series brings the signatures and logic of the following methods in
line with what is used in QemuServer, with the exception of multiple volume/mp
support:
- snapshot_prepare and snapshot_commit
- snapshot_create and snapshot_delete
- snapshot_rollback

It also adds an inital snapshot test suite which tests the following aspects
of the snapshotting code:
- error messages and success/failure
- configuration file content
- calls to PVE::Storage::volume_snapshot and volume_snapshot_delete

The test code works with a combination of redefining methods in PVE::LXC and
mocking of PVE::Tools and PVE::Storage methods and should never touch actual
config files or storages.

snapshot_rollback tests are not yet implemented, but will follow soon.

Fabian Grünbichler (5):
  Adjust snapshot_create and snapshot_prepare signatures
  Add snapshot_apply_config, cleanup prepare and commit
  Refactor snapshot_delete
  Refactor snapshot_rollback
  Add snapshot tests

 src/PVE/API2/LXC/Snapshot.pm                       |   2 +-
 src/PVE/LXC.pm                                     | 231 ++++++++------
 src/PVE/VZDump/LXC.pm                              |   2 +-
 src/test/Makefile                                  |  10 +-
 src/test/run_setup_tests.pl                        |  98 ++++++
 src/test/run_snapshot_tests.pl                     |  10 +
 src/test/run_tests.pl                              |  98 ------
 src/test/setup-centos6-001/config                  |   4 +
 src/test/setup-centos6-001/etc/hosts.exp           |   2 +
 .../etc/init/power-status-changed.conf.exp         |   5 +
 .../setup-centos6-001/etc/init/start-ttys.conf.exp |  18 ++
 src/test/setup-centos6-001/etc/init/tty.conf.exp   |  13 +
 src/test/setup-centos6-001/etc/rc.d/rc.sysinit     |   6 +
 src/test/setup-centos6-001/etc/rc.d/rc.sysinit.exp |   6 +
 src/test/setup-centos6-001/etc/redhat-release      |   1 +
 src/test/setup-centos6-001/etc/resolv.conf.exp     |   3 +
 src/test/setup-centos6-001/etc/securetty           |  23 ++
 src/test/setup-centos6-001/etc/securetty.exp       |  28 ++
 src/test/setup-centos6-001/etc/sysconfig/network   |   0
 .../etc/sysconfig/network-scripts/ifcfg-eth0.exp   |   6 +
 .../etc/sysconfig/network-scripts/ifcfg-eth1.exp   |   5 +
 .../setup-centos6-001/etc/sysconfig/network.exp    |   2 +
 src/test/setup-debian-001/config                   |   1 +
 src/test/setup-debian-001/etc/crontab              |  15 +
 src/test/setup-debian-001/etc/crontab.exp          |  15 +
 src/test/setup-debian-001/etc/debian_version       |   1 +
 src/test/setup-debian-001/etc/hostname.exp         |   1 +
 src/test/setup-debian-001/etc/hosts.exp            |   2 +
 src/test/setup-debian-002/config                   |   4 +
 src/test/setup-debian-002/etc/debian_version       |   1 +
 src/test/setup-debian-002/etc/hostname.exp         |   1 +
 src/test/setup-debian-002/etc/hosts.exp            |   2 +
 .../setup-debian-002/etc/network/interfaces.exp    |  14 +
 src/test/setup-debian-003/config                   |   5 +
 src/test/setup-debian-003/etc/debian_version       |   1 +
 src/test/setup-debian-003/etc/hostname.exp         |   1 +
 src/test/setup-debian-003/etc/hosts.exp            |   2 +
 src/test/setup-debian-003/etc/network/interfaces   |   2 +
 .../setup-debian-003/etc/network/interfaces.exp    |   6 +
 src/test/setup-debian-004/config                   |   5 +
 src/test/setup-debian-004/etc/debian_version       |   1 +
 src/test/setup-debian-004/etc/hostname.exp         |   1 +
 src/test/setup-debian-004/etc/hosts.exp            |   2 +
 src/test/setup-debian-004/etc/network/interfaces   |   2 +
 .../setup-debian-004/etc/network/interfaces.exp    |   9 +
 src/test/setup-debian-005/config                   |   2 +
 src/test/setup-debian-005/etc/debian_version       |   1 +
 src/test/setup-debian-005/etc/hostname.exp         |   1 +
 src/test/setup-debian-005/etc/hosts.exp            |   2 +
 src/test/setup-debian-005/etc/inittab              |  69 +++++
 src/test/setup-debian-005/etc/inittab.exp          |  64 ++++
 src/test/setup-debian-006/config                   |   2 +
 src/test/setup-debian-006/etc/debian_version       |   1 +
 src/test/setup-debian-006/etc/hostname.exp         |   1 +
 src/test/setup-debian-006/etc/hosts.exp            |   2 +
 src/test/setup-debian-006/etc/inittab              |  69 +++++
 src/test/setup-debian-006/etc/inittab.exp          |  60 ++++
 src/test/setup-debian-007/config                   |   3 +
 src/test/setup-debian-007/etc/debian_version       |   1 +
 src/test/setup-debian-007/etc/hostname.exp         |   1 +
 src/test/setup-debian-007/etc/hosts.exp            |   2 +
 src/test/setup-debian-007/etc/resolv.conf.exp      |   3 +
 src/test/setup-debian-008/config                   |   9 +
 src/test/setup-debian-008/etc/debian_version       |   1 +
 src/test/setup-debian-008/etc/hostname.exp         |   1 +
 src/test/setup-debian-008/etc/hosts                |   2 +
 src/test/setup-debian-008/etc/hosts.exp            |   2 +
 src/test/setup-debian-008/etc/network/interfaces   |   2 +
 .../setup-debian-008/etc/network/interfaces.exp    |   9 +
 src/test/setup-debian-008/etc/resolv.conf.exp      |   3 +
 src/test/setup-debian-009/config                   |   1 +
 src/test/setup-debian-009/etc/debian_version       |   1 +
 src/test/setup-debian-009/etc/hostname.exp         |   1 +
 src/test/setup-debian-009/etc/hosts.exp            |   2 +
 src/test/setup-debian-009/etc/passwd               |  21 ++
 src/test/setup-debian-009/etc/passwd.exp           |  21 ++
 src/test/setup-debian-009/etc/shadow               |  21 ++
 src/test/setup-debian-009/etc/shadow.exp           |  21 ++
 src/test/setup-debian-010/config                   |   2 +
 src/test/setup-debian-010/etc/debian_version       |   1 +
 src/test/setup-debian-010/etc/hostname.exp         |   1 +
 src/test/setup-debian-010/etc/hosts.exp            |   2 +
 src/test/setup-debian-010/etc/inittab              |  64 ++++
 src/test/setup-debian-010/etc/inittab.exp          |  64 ++++
 src/test/setup-debian-011/config                   |   1 +
 src/test/setup-debian-011/etc/debian_version       |   1 +
 src/test/setup-debian-011/etc/network/interfaces   |   2 +
 .../setup-debian-011/etc/network/interfaces.exp    |   8 +
 src/test/setup-debian-012/config                   |   2 +
 src/test/setup-debian-012/etc/debian_version       |   1 +
 src/test/setup-debian-012/etc/network/interfaces   |   2 +
 .../setup-debian-012/etc/network/interfaces.exp    |  21 ++
 src/test/setup-debian-013/config                   |   1 +
 src/test/setup-debian-013/etc/debian_version       |   1 +
 src/test/setup-debian-013/etc/hosts                |   1 +
 src/test/setup-debian-013/etc/hosts.exp            |   2 +
 src/test/setup-opensuse-001/config                 |   5 +
 src/test/setup-opensuse-001/etc/SuSE-brand         |   2 +
 src/test/setup-opensuse-001/etc/hosts.exp          |   2 +
 src/test/setup-opensuse-001/etc/resolv.conf.exp    |   3 +
 src/test/setup-opensuse-001/etc/securetty          |   7 +
 src/test/setup-opensuse-001/etc/securetty.exp      |  12 +
 .../etc/sysconfig/network/ifcfg-eth0.exp           |   3 +
 .../etc/sysconfig/network/ifcfg-eth1.exp           |   3 +
 .../etc/sysconfig/network/ifcfg-eth2.exp           |   2 +
 .../etc/sysconfig/network/ifcfg-eth3.exp           |   2 +
 .../etc/sysconfig/network/ifroute-eth0.exp         |   3 +
 .../etc/sysconfig/network/ifroute-eth1             |   1 +
 .../etc/sysconfig/network/ifroute-eth1.exp         |   1 +
 src/test/setup-opensuse-002/config                 |   4 +
 src/test/setup-opensuse-002/etc/SuSE-brand         |   2 +
 src/test/setup-opensuse-002/etc/securetty          |   7 +
 src/test/setup-opensuse-002/etc/securetty.exp      |  12 +
 .../etc/sysconfig/network/ifcfg-eth0.exp           |   3 +
 .../etc/sysconfig/network/ifcfg-eth1.exp           |   3 +
 .../etc/sysconfig/network/ifcfg-eth2.exp           |   2 +
 .../etc/sysconfig/network/ifroute-eth0.exp         |   3 +
 src/test/setup-opensuse-003/config                 |   5 +
 src/test/setup-opensuse-003/etc/SuSE-brand         |   2 +
 src/test/setup-opensuse-003/etc/securetty          |   7 +
 src/test/setup-opensuse-003/etc/securetty.exp      |  12 +
 .../etc/sysconfig/network/ifcfg-eth0.exp           |   4 +
 .../etc/sysconfig/network/ifcfg-eth1.exp           |   2 +
 .../etc/sysconfig/network/ifcfg-eth2.exp           |   2 +
 .../etc/sysconfig/network/ifcfg-eth3.exp           |   2 +
 .../etc/sysconfig/network/ifroute-eth0.exp         |   5 +
 src/test/snapshot-expected/commit/lxc/101.conf     |  23 ++
 src/test/snapshot-expected/commit/lxc/102.conf     |  37 +++
 src/test/snapshot-expected/commit/lxc/201.conf     |   9 +
 src/test/snapshot-expected/commit/lxc/202.conf     |  10 +
 src/test/snapshot-expected/commit/lxc/203.conf     |  23 ++
 src/test/snapshot-expected/create/lxc/101.conf     |  23 ++
 src/test/snapshot-expected/create/lxc/102.conf     |  37 +++
 src/test/snapshot-expected/create/lxc/201.conf     |   9 +
 src/test/snapshot-expected/create/lxc/202.conf     |   9 +
 src/test/snapshot-expected/delete/lxc/101.conf     |   9 +
 src/test/snapshot-expected/delete/lxc/102.conf     |  23 ++
 src/test/snapshot-expected/delete/lxc/103.conf     |  23 ++
 src/test/snapshot-expected/delete/lxc/104.conf     |  37 +++
 src/test/snapshot-expected/delete/lxc/105.conf     |   9 +
 src/test/snapshot-expected/delete/lxc/201.conf     |  24 ++
 src/test/snapshot-expected/delete/lxc/202.conf     |  24 ++
 src/test/snapshot-expected/prepare/lxc/101.conf    |  24 ++
 src/test/snapshot-expected/prepare/lxc/102.conf    |  39 +++
 src/test/snapshot-expected/prepare/lxc/200.conf    |  24 ++
 src/test/snapshot-expected/prepare/lxc/201.conf    |  23 ++
 src/test/snapshot-expected/prepare/lxc/202.conf    |   9 +
 src/test/snapshot-expected/prepare/lxc/300.conf    |   9 +
 src/test/snapshot-input/commit/lxc/101.conf        |  24 ++
 src/test/snapshot-input/commit/lxc/102.conf        |  39 +++
 src/test/snapshot-input/commit/lxc/201.conf        |   9 +
 src/test/snapshot-input/commit/lxc/202.conf        |  10 +
 src/test/snapshot-input/commit/lxc/203.conf        |  23 ++
 src/test/snapshot-input/create/lxc/101.conf        |   9 +
 src/test/snapshot-input/create/lxc/102.conf        |  23 ++
 src/test/snapshot-input/create/lxc/201.conf        |   9 +
 src/test/snapshot-input/create/lxc/202.conf        |   9 +
 src/test/snapshot-input/delete/lxc/101.conf        |  23 ++
 src/test/snapshot-input/delete/lxc/102.conf        |  37 +++
 src/test/snapshot-input/delete/lxc/103.conf        |  37 +++
 src/test/snapshot-input/delete/lxc/104.conf        |  51 ++++
 src/test/snapshot-input/delete/lxc/105.conf        |  23 ++
 src/test/snapshot-input/delete/lxc/201.conf        |  23 ++
 src/test/snapshot-input/delete/lxc/202.conf        |  24 ++
 src/test/snapshot-input/prepare/lxc/101.conf       |   9 +
 src/test/snapshot-input/prepare/lxc/102.conf       |  23 ++
 src/test/snapshot-input/prepare/lxc/200.conf       |  24 ++
 src/test/snapshot-input/prepare/lxc/201.conf       |  23 ++
 src/test/snapshot-input/prepare/lxc/202.conf       |   9 +
 src/test/snapshot-input/prepare/lxc/300.conf       |   9 +
 src/test/snapshot-input/storage.cfg                |   4 +
 src/test/snapshot-test.pm                          | 332 +++++++++++++++++++++
 src/test/test-centos6-001/config                   |   4 -
 src/test/test-centos6-001/etc/hosts.exp            |   2 -
 .../etc/init/power-status-changed.conf.exp         |   5 -
 .../test-centos6-001/etc/init/start-ttys.conf.exp  |  18 --
 src/test/test-centos6-001/etc/init/tty.conf.exp    |  13 -
 src/test/test-centos6-001/etc/rc.d/rc.sysinit      |   6 -
 src/test/test-centos6-001/etc/rc.d/rc.sysinit.exp  |   6 -
 src/test/test-centos6-001/etc/redhat-release       |   1 -
 src/test/test-centos6-001/etc/resolv.conf.exp      |   3 -
 src/test/test-centos6-001/etc/securetty            |  23 --
 src/test/test-centos6-001/etc/securetty.exp        |  28 --
 src/test/test-centos6-001/etc/sysconfig/network    |   0
 .../etc/sysconfig/network-scripts/ifcfg-eth0.exp   |   6 -
 .../etc/sysconfig/network-scripts/ifcfg-eth1.exp   |   5 -
 .../test-centos6-001/etc/sysconfig/network.exp     |   2 -
 src/test/test-debian-001/config                    |   1 -
 src/test/test-debian-001/etc/crontab               |  15 -
 src/test/test-debian-001/etc/crontab.exp           |  15 -
 src/test/test-debian-001/etc/debian_version        |   1 -
 src/test/test-debian-001/etc/hostname.exp          |   1 -
 src/test/test-debian-001/etc/hosts.exp             |   2 -
 src/test/test-debian-002/config                    |   4 -
 src/test/test-debian-002/etc/debian_version        |   1 -
 src/test/test-debian-002/etc/hostname.exp          |   1 -
 src/test/test-debian-002/etc/hosts.exp             |   2 -
 .../test-debian-002/etc/network/interfaces.exp     |  14 -
 src/test/test-debian-003/config                    |   5 -
 src/test/test-debian-003/etc/debian_version        |   1 -
 src/test/test-debian-003/etc/hostname.exp          |   1 -
 src/test/test-debian-003/etc/hosts.exp             |   2 -
 src/test/test-debian-003/etc/network/interfaces    |   2 -
 .../test-debian-003/etc/network/interfaces.exp     |   6 -
 src/test/test-debian-004/config                    |   5 -
 src/test/test-debian-004/etc/debian_version        |   1 -
 src/test/test-debian-004/etc/hostname.exp          |   1 -
 src/test/test-debian-004/etc/hosts.exp             |   2 -
 src/test/test-debian-004/etc/network/interfaces    |   2 -
 .../test-debian-004/etc/network/interfaces.exp     |   9 -
 src/test/test-debian-005/config                    |   2 -
 src/test/test-debian-005/etc/debian_version        |   1 -
 src/test/test-debian-005/etc/hostname.exp          |   1 -
 src/test/test-debian-005/etc/hosts.exp             |   2 -
 src/test/test-debian-005/etc/inittab               |  69 -----
 src/test/test-debian-005/etc/inittab.exp           |  64 ----
 src/test/test-debian-006/config                    |   2 -
 src/test/test-debian-006/etc/debian_version        |   1 -
 src/test/test-debian-006/etc/hostname.exp          |   1 -
 src/test/test-debian-006/etc/hosts.exp             |   2 -
 src/test/test-debian-006/etc/inittab               |  69 -----
 src/test/test-debian-006/etc/inittab.exp           |  60 ----
 src/test/test-debian-007/config                    |   3 -
 src/test/test-debian-007/etc/debian_version        |   1 -
 src/test/test-debian-007/etc/hostname.exp          |   1 -
 src/test/test-debian-007/etc/hosts.exp             |   2 -
 src/test/test-debian-007/etc/resolv.conf.exp       |   3 -
 src/test/test-debian-008/config                    |   9 -
 src/test/test-debian-008/etc/debian_version        |   1 -
 src/test/test-debian-008/etc/hostname.exp          |   1 -
 src/test/test-debian-008/etc/hosts                 |   2 -
 src/test/test-debian-008/etc/hosts.exp             |   2 -
 src/test/test-debian-008/etc/network/interfaces    |   2 -
 .../test-debian-008/etc/network/interfaces.exp     |   9 -
 src/test/test-debian-008/etc/resolv.conf.exp       |   3 -
 src/test/test-debian-009/config                    |   1 -
 src/test/test-debian-009/etc/debian_version        |   1 -
 src/test/test-debian-009/etc/hostname.exp          |   1 -
 src/test/test-debian-009/etc/hosts.exp             |   2 -
 src/test/test-debian-009/etc/passwd                |  21 --
 src/test/test-debian-009/etc/passwd.exp            |  21 --
 src/test/test-debian-009/etc/shadow                |  21 --
 src/test/test-debian-009/etc/shadow.exp            |  21 --
 src/test/test-debian-010/config                    |   2 -
 src/test/test-debian-010/etc/debian_version        |   1 -
 src/test/test-debian-010/etc/hostname.exp          |   1 -
 src/test/test-debian-010/etc/hosts.exp             |   2 -
 src/test/test-debian-010/etc/inittab               |  64 ----
 src/test/test-debian-010/etc/inittab.exp           |  64 ----
 src/test/test-debian-011/config                    |   1 -
 src/test/test-debian-011/etc/debian_version        |   1 -
 src/test/test-debian-011/etc/network/interfaces    |   2 -
 .../test-debian-011/etc/network/interfaces.exp     |   8 -
 src/test/test-debian-012/config                    |   2 -
 src/test/test-debian-012/etc/debian_version        |   1 -
 src/test/test-debian-012/etc/network/interfaces    |   2 -
 .../test-debian-012/etc/network/interfaces.exp     |  21 --
 src/test/test-debian-013/config                    |   1 -
 src/test/test-debian-013/etc/debian_version        |   1 -
 src/test/test-debian-013/etc/hosts                 |   1 -
 src/test/test-debian-013/etc/hosts.exp             |   2 -
 src/test/test-opensuse-001/config                  |   5 -
 src/test/test-opensuse-001/etc/SuSE-brand          |   2 -
 src/test/test-opensuse-001/etc/hosts.exp           |   2 -
 src/test/test-opensuse-001/etc/resolv.conf.exp     |   3 -
 src/test/test-opensuse-001/etc/securetty           |   7 -
 src/test/test-opensuse-001/etc/securetty.exp       |  12 -
 .../etc/sysconfig/network/ifcfg-eth0.exp           |   3 -
 .../etc/sysconfig/network/ifcfg-eth1.exp           |   3 -
 .../etc/sysconfig/network/ifcfg-eth2.exp           |   2 -
 .../etc/sysconfig/network/ifcfg-eth3.exp           |   2 -
 .../etc/sysconfig/network/ifroute-eth0.exp         |   3 -
 .../etc/sysconfig/network/ifroute-eth1             |   1 -
 .../etc/sysconfig/network/ifroute-eth1.exp         |   1 -
 src/test/test-opensuse-002/config                  |   4 -
 src/test/test-opensuse-002/etc/SuSE-brand          |   2 -
 src/test/test-opensuse-002/etc/securetty           |   7 -
 src/test/test-opensuse-002/etc/securetty.exp       |  12 -
 .../etc/sysconfig/network/ifcfg-eth0.exp           |   3 -
 .../etc/sysconfig/network/ifcfg-eth1.exp           |   3 -
 .../etc/sysconfig/network/ifcfg-eth2.exp           |   2 -
 .../etc/sysconfig/network/ifroute-eth0.exp         |   3 -
 src/test/test-opensuse-003/config                  |   5 -
 src/test/test-opensuse-003/etc/SuSE-brand          |   2 -
 src/test/test-opensuse-003/etc/securetty           |   7 -
 src/test/test-opensuse-003/etc/securetty.exp       |  12 -
 .../etc/sysconfig/network/ifcfg-eth0.exp           |   4 -
 .../etc/sysconfig/network/ifcfg-eth1.exp           |   2 -
 .../etc/sysconfig/network/ifcfg-eth2.exp           |   2 -
 .../etc/sysconfig/network/ifcfg-eth3.exp           |   2 -
 .../etc/sysconfig/network/ifroute-eth0.exp         |   5 -
 291 files changed, 2440 insertions(+), 1110 deletions(-)
 create mode 100755 src/test/run_setup_tests.pl
 create mode 100755 src/test/run_snapshot_tests.pl
 delete mode 100755 src/test/run_tests.pl
 create mode 100644 src/test/setup-centos6-001/config
 create mode 100644 src/test/setup-centos6-001/etc/hosts.exp
 create mode 100644 src/test/setup-centos6-001/etc/init/power-status-changed.conf.exp
 create mode 100644 src/test/setup-centos6-001/etc/init/start-ttys.conf.exp
 create mode 100644 src/test/setup-centos6-001/etc/init/tty.conf.exp
 create mode 100644 src/test/setup-centos6-001/etc/rc.d/rc.sysinit
 create mode 100644 src/test/setup-centos6-001/etc/rc.d/rc.sysinit.exp
 create mode 100644 src/test/setup-centos6-001/etc/redhat-release
 create mode 100644 src/test/setup-centos6-001/etc/resolv.conf.exp
 create mode 100644 src/test/setup-centos6-001/etc/securetty
 create mode 100644 src/test/setup-centos6-001/etc/securetty.exp
 create mode 100644 src/test/setup-centos6-001/etc/sysconfig/network
 create mode 100644 src/test/setup-centos6-001/etc/sysconfig/network-scripts/ifcfg-eth0.exp
 create mode 100644 src/test/setup-centos6-001/etc/sysconfig/network-scripts/ifcfg-eth1.exp
 create mode 100644 src/test/setup-centos6-001/etc/sysconfig/network.exp
 create mode 100644 src/test/setup-debian-001/config
 create mode 100644 src/test/setup-debian-001/etc/crontab
 create mode 100644 src/test/setup-debian-001/etc/crontab.exp
 create mode 100644 src/test/setup-debian-001/etc/debian_version
 create mode 100644 src/test/setup-debian-001/etc/hostname.exp
 create mode 100644 src/test/setup-debian-001/etc/hosts.exp
 create mode 100644 src/test/setup-debian-002/config
 create mode 100644 src/test/setup-debian-002/etc/debian_version
 create mode 100644 src/test/setup-debian-002/etc/hostname.exp
 create mode 100644 src/test/setup-debian-002/etc/hosts.exp
 create mode 100644 src/test/setup-debian-002/etc/network/interfaces.exp
 create mode 100644 src/test/setup-debian-003/config
 create mode 100644 src/test/setup-debian-003/etc/debian_version
 create mode 100644 src/test/setup-debian-003/etc/hostname.exp
 create mode 100644 src/test/setup-debian-003/etc/hosts.exp
 create mode 100644 src/test/setup-debian-003/etc/network/interfaces
 create mode 100644 src/test/setup-debian-003/etc/network/interfaces.exp
 create mode 100644 src/test/setup-debian-004/config
 create mode 100644 src/test/setup-debian-004/etc/debian_version
 create mode 100644 src/test/setup-debian-004/etc/hostname.exp
 create mode 100644 src/test/setup-debian-004/etc/hosts.exp
 create mode 100644 src/test/setup-debian-004/etc/network/interfaces
 create mode 100644 src/test/setup-debian-004/etc/network/interfaces.exp
 create mode 100644 src/test/setup-debian-005/config
 create mode 100644 src/test/setup-debian-005/etc/debian_version
 create mode 100644 src/test/setup-debian-005/etc/hostname.exp
 create mode 100644 src/test/setup-debian-005/etc/hosts.exp
 create mode 100644 src/test/setup-debian-005/etc/inittab
 create mode 100644 src/test/setup-debian-005/etc/inittab.exp
 create mode 100644 src/test/setup-debian-006/config
 create mode 100644 src/test/setup-debian-006/etc/debian_version
 create mode 100644 src/test/setup-debian-006/etc/hostname.exp
 create mode 100644 src/test/setup-debian-006/etc/hosts.exp
 create mode 100644 src/test/setup-debian-006/etc/inittab
 create mode 100644 src/test/setup-debian-006/etc/inittab.exp
 create mode 100644 src/test/setup-debian-007/config
 create mode 100644 src/test/setup-debian-007/etc/debian_version
 create mode 100644 src/test/setup-debian-007/etc/hostname.exp
 create mode 100644 src/test/setup-debian-007/etc/hosts.exp
 create mode 100644 src/test/setup-debian-007/etc/resolv.conf.exp
 create mode 100644 src/test/setup-debian-008/config
 create mode 100644 src/test/setup-debian-008/etc/debian_version
 create mode 100644 src/test/setup-debian-008/etc/hostname.exp
 create mode 100644 src/test/setup-debian-008/etc/hosts
 create mode 100644 src/test/setup-debian-008/etc/hosts.exp
 create mode 100644 src/test/setup-debian-008/etc/network/interfaces
 create mode 100644 src/test/setup-debian-008/etc/network/interfaces.exp
 create mode 100644 src/test/setup-debian-008/etc/resolv.conf.exp
 create mode 100644 src/test/setup-debian-009/config
 create mode 100644 src/test/setup-debian-009/etc/debian_version
 create mode 100644 src/test/setup-debian-009/etc/hostname.exp
 create mode 100644 src/test/setup-debian-009/etc/hosts.exp
 create mode 100644 src/test/setup-debian-009/etc/passwd
 create mode 100644 src/test/setup-debian-009/etc/passwd.exp
 create mode 100644 src/test/setup-debian-009/etc/shadow
 create mode 100644 src/test/setup-debian-009/etc/shadow.exp
 create mode 100644 src/test/setup-debian-010/config
 create mode 100644 src/test/setup-debian-010/etc/debian_version
 create mode 100644 src/test/setup-debian-010/etc/hostname.exp
 create mode 100644 src/test/setup-debian-010/etc/hosts.exp
 create mode 100644 src/test/setup-debian-010/etc/inittab
 create mode 100644 src/test/setup-debian-010/etc/inittab.exp
 create mode 100644 src/test/setup-debian-011/config
 create mode 100644 src/test/setup-debian-011/etc/debian_version
 create mode 100644 src/test/setup-debian-011/etc/network/interfaces
 create mode 100644 src/test/setup-debian-011/etc/network/interfaces.exp
 create mode 100644 src/test/setup-debian-012/config
 create mode 100644 src/test/setup-debian-012/etc/debian_version
 create mode 100644 src/test/setup-debian-012/etc/network/interfaces
 create mode 100644 src/test/setup-debian-012/etc/network/interfaces.exp
 create mode 100644 src/test/setup-debian-013/config
 create mode 100644 src/test/setup-debian-013/etc/debian_version
 create mode 120000 src/test/setup-debian-013/etc/hosts
 create mode 100644 src/test/setup-debian-013/etc/hosts.exp
 create mode 100644 src/test/setup-opensuse-001/config
 create mode 100644 src/test/setup-opensuse-001/etc/SuSE-brand
 create mode 100644 src/test/setup-opensuse-001/etc/hosts.exp
 create mode 100644 src/test/setup-opensuse-001/etc/resolv.conf.exp
 create mode 100644 src/test/setup-opensuse-001/etc/securetty
 create mode 100644 src/test/setup-opensuse-001/etc/securetty.exp
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifcfg-eth0.exp
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifcfg-eth1.exp
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifcfg-eth2.exp
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifcfg-eth3.exp
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifroute-eth0.exp
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifroute-eth1
 create mode 100644 src/test/setup-opensuse-001/etc/sysconfig/network/ifroute-eth1.exp
 create mode 100644 src/test/setup-opensuse-002/config
 create mode 100644 src/test/setup-opensuse-002/etc/SuSE-brand
 create mode 100644 src/test/setup-opensuse-002/etc/securetty
 create mode 100644 src/test/setup-opensuse-002/etc/securetty.exp
 create mode 100644 src/test/setup-opensuse-002/etc/sysconfig/network/ifcfg-eth0.exp
 create mode 100644 src/test/setup-opensuse-002/etc/sysconfig/network/ifcfg-eth1.exp
 create mode 100644 src/test/setup-opensuse-002/etc/sysconfig/network/ifcfg-eth2.exp
 create mode 100644 src/test/setup-opensuse-002/etc/sysconfig/network/ifroute-eth0.exp
 create mode 100644 src/test/setup-opensuse-003/config
 create mode 100644 src/test/setup-opensuse-003/etc/SuSE-brand
 create mode 100644 src/test/setup-opensuse-003/etc/securetty
 create mode 100644 src/test/setup-opensuse-003/etc/securetty.exp
 create mode 100644 src/test/setup-opensuse-003/etc/sysconfig/network/ifcfg-eth0.exp
 create mode 100644 src/test/setup-opensuse-003/etc/sysconfig/network/ifcfg-eth1.exp
 create mode 100644 src/test/setup-opensuse-003/etc/sysconfig/network/ifcfg-eth2.exp
 create mode 100644 src/test/setup-opensuse-003/etc/sysconfig/network/ifcfg-eth3.exp
 create mode 100644 src/test/setup-opensuse-003/etc/sysconfig/network/ifroute-eth0.exp
 create mode 100644 src/test/snapshot-expected/commit/lxc/101.conf
 create mode 100644 src/test/snapshot-expected/commit/lxc/102.conf
 create mode 100644 src/test/snapshot-expected/commit/lxc/201.conf
 create mode 100644 src/test/snapshot-expected/commit/lxc/202.conf
 create mode 100644 src/test/snapshot-expected/commit/lxc/203.conf
 create mode 100644 src/test/snapshot-expected/create/lxc/101.conf
 create mode 100644 src/test/snapshot-expected/create/lxc/102.conf
 create mode 100644 src/test/snapshot-expected/create/lxc/201.conf
 create mode 100644 src/test/snapshot-expected/create/lxc/202.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/101.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/102.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/103.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/104.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/105.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/201.conf
 create mode 100644 src/test/snapshot-expected/delete/lxc/202.conf
 create mode 100644 src/test/snapshot-expected/prepare/lxc/101.conf
 create mode 100644 src/test/snapshot-expected/prepare/lxc/102.conf
 create mode 100644 src/test/snapshot-expected/prepare/lxc/200.conf
 create mode 100644 src/test/snapshot-expected/prepare/lxc/201.conf
 create mode 100644 src/test/snapshot-expected/prepare/lxc/202.conf
 create mode 100644 src/test/snapshot-expected/prepare/lxc/300.conf
 create mode 100644 src/test/snapshot-input/commit/lxc/101.conf
 create mode 100644 src/test/snapshot-input/commit/lxc/102.conf
 create mode 100644 src/test/snapshot-input/commit/lxc/201.conf
 create mode 100644 src/test/snapshot-input/commit/lxc/202.conf
 create mode 100644 src/test/snapshot-input/commit/lxc/203.conf
 create mode 100644 src/test/snapshot-input/create/lxc/101.conf
 create mode 100644 src/test/snapshot-input/create/lxc/102.conf
 create mode 100644 src/test/snapshot-input/create/lxc/201.conf
 create mode 100644 src/test/snapshot-input/create/lxc/202.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/101.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/102.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/103.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/104.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/105.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/201.conf
 create mode 100644 src/test/snapshot-input/delete/lxc/202.conf
 create mode 100644 src/test/snapshot-input/prepare/lxc/101.conf
 create mode 100644 src/test/snapshot-input/prepare/lxc/102.conf
 create mode 100644 src/test/snapshot-input/prepare/lxc/200.conf
 create mode 100644 src/test/snapshot-input/prepare/lxc/201.conf
 create mode 100644 src/test/snapshot-input/prepare/lxc/202.conf
 create mode 100644 src/test/snapshot-input/prepare/lxc/300.conf
 create mode 100644 src/test/snapshot-input/storage.cfg
 create mode 100644 src/test/snapshot-test.pm
 delete mode 100644 src/test/test-centos6-001/config
 delete mode 100644 src/test/test-centos6-001/etc/hosts.exp
 delete mode 100644 src/test/test-centos6-001/etc/init/power-status-changed.conf.exp
 delete mode 100644 src/test/test-centos6-001/etc/init/start-ttys.conf.exp
 delete mode 100644 src/test/test-centos6-001/etc/init/tty.conf.exp
 delete mode 100644 src/test/test-centos6-001/etc/rc.d/rc.sysinit
 delete mode 100644 src/test/test-centos6-001/etc/rc.d/rc.sysinit.exp
 delete mode 100644 src/test/test-centos6-001/etc/redhat-release
 delete mode 100644 src/test/test-centos6-001/etc/resolv.conf.exp
 delete mode 100644 src/test/test-centos6-001/etc/securetty
 delete mode 100644 src/test/test-centos6-001/etc/securetty.exp
 delete mode 100644 src/test/test-centos6-001/etc/sysconfig/network
 delete mode 100644 src/test/test-centos6-001/etc/sysconfig/network-scripts/ifcfg-eth0.exp
 delete mode 100644 src/test/test-centos6-001/etc/sysconfig/network-scripts/ifcfg-eth1.exp
 delete mode 100644 src/test/test-centos6-001/etc/sysconfig/network.exp
 delete mode 100644 src/test/test-debian-001/config
 delete mode 100644 src/test/test-debian-001/etc/crontab
 delete mode 100644 src/test/test-debian-001/etc/crontab.exp
 delete mode 100644 src/test/test-debian-001/etc/debian_version
 delete mode 100644 src/test/test-debian-001/etc/hostname.exp
 delete mode 100644 src/test/test-debian-001/etc/hosts.exp
 delete mode 100644 src/test/test-debian-002/config
 delete mode 100644 src/test/test-debian-002/etc/debian_version
 delete mode 100644 src/test/test-debian-002/etc/hostname.exp
 delete mode 100644 src/test/test-debian-002/etc/hosts.exp
 delete mode 100644 src/test/test-debian-002/etc/network/interfaces.exp
 delete mode 100644 src/test/test-debian-003/config
 delete mode 100644 src/test/test-debian-003/etc/debian_version
 delete mode 100644 src/test/test-debian-003/etc/hostname.exp
 delete mode 100644 src/test/test-debian-003/etc/hosts.exp
 delete mode 100644 src/test/test-debian-003/etc/network/interfaces
 delete mode 100644 src/test/test-debian-003/etc/network/interfaces.exp
 delete mode 100644 src/test/test-debian-004/config
 delete mode 100644 src/test/test-debian-004/etc/debian_version
 delete mode 100644 src/test/test-debian-004/etc/hostname.exp
 delete mode 100644 src/test/test-debian-004/etc/hosts.exp
 delete mode 100644 src/test/test-debian-004/etc/network/interfaces
 delete mode 100644 src/test/test-debian-004/etc/network/interfaces.exp
 delete mode 100644 src/test/test-debian-005/config
 delete mode 100644 src/test/test-debian-005/etc/debian_version
 delete mode 100644 src/test/test-debian-005/etc/hostname.exp
 delete mode 100644 src/test/test-debian-005/etc/hosts.exp
 delete mode 100644 src/test/test-debian-005/etc/inittab
 delete mode 100644 src/test/test-debian-005/etc/inittab.exp
 delete mode 100644 src/test/test-debian-006/config
 delete mode 100644 src/test/test-debian-006/etc/debian_version
 delete mode 100644 src/test/test-debian-006/etc/hostname.exp
 delete mode 100644 src/test/test-debian-006/etc/hosts.exp
 delete mode 100644 src/test/test-debian-006/etc/inittab
 delete mode 100644 src/test/test-debian-006/etc/inittab.exp
 delete mode 100644 src/test/test-debian-007/config
 delete mode 100644 src/test/test-debian-007/etc/debian_version
 delete mode 100644 src/test/test-debian-007/etc/hostname.exp
 delete mode 100644 src/test/test-debian-007/etc/hosts.exp
 delete mode 100644 src/test/test-debian-007/etc/resolv.conf.exp
 delete mode 100644 src/test/test-debian-008/config
 delete mode 100644 src/test/test-debian-008/etc/debian_version
 delete mode 100644 src/test/test-debian-008/etc/hostname.exp
 delete mode 100644 src/test/test-debian-008/etc/hosts
 delete mode 100644 src/test/test-debian-008/etc/hosts.exp
 delete mode 100644 src/test/test-debian-008/etc/network/interfaces
 delete mode 100644 src/test/test-debian-008/etc/network/interfaces.exp
 delete mode 100644 src/test/test-debian-008/etc/resolv.conf.exp
 delete mode 100644 src/test/test-debian-009/config
 delete mode 100644 src/test/test-debian-009/etc/debian_version
 delete mode 100644 src/test/test-debian-009/etc/hostname.exp
 delete mode 100644 src/test/test-debian-009/etc/hosts.exp
 delete mode 100644 src/test/test-debian-009/etc/passwd
 delete mode 100644 src/test/test-debian-009/etc/passwd.exp
 delete mode 100644 src/test/test-debian-009/etc/shadow
 delete mode 100644 src/test/test-debian-009/etc/shadow.exp
 delete mode 100644 src/test/test-debian-010/config
 delete mode 100644 src/test/test-debian-010/etc/debian_version
 delete mode 100644 src/test/test-debian-010/etc/hostname.exp
 delete mode 100644 src/test/test-debian-010/etc/hosts.exp
 delete mode 100644 src/test/test-debian-010/etc/inittab
 delete mode 100644 src/test/test-debian-010/etc/inittab.exp
 delete mode 100644 src/test/test-debian-011/config
 delete mode 100644 src/test/test-debian-011/etc/debian_version
 delete mode 100644 src/test/test-debian-011/etc/network/interfaces
 delete mode 100644 src/test/test-debian-011/etc/network/interfaces.exp
 delete mode 100644 src/test/test-debian-012/config
 delete mode 100644 src/test/test-debian-012/etc/debian_version
 delete mode 100644 src/test/test-debian-012/etc/network/interfaces
 delete mode 100644 src/test/test-debian-012/etc/network/interfaces.exp
 delete mode 100644 src/test/test-debian-013/config
 delete mode 100644 src/test/test-debian-013/etc/debian_version
 delete mode 120000 src/test/test-debian-013/etc/hosts
 delete mode 100644 src/test/test-debian-013/etc/hosts.exp
 delete mode 100644 src/test/test-opensuse-001/config
 delete mode 100644 src/test/test-opensuse-001/etc/SuSE-brand
 delete mode 100644 src/test/test-opensuse-001/etc/hosts.exp
 delete mode 100644 src/test/test-opensuse-001/etc/resolv.conf.exp
 delete mode 100644 src/test/test-opensuse-001/etc/securetty
 delete mode 100644 src/test/test-opensuse-001/etc/securetty.exp
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth0.exp
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth1.exp
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth2.exp
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifcfg-eth3.exp
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifroute-eth0.exp
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifroute-eth1
 delete mode 100644 src/test/test-opensuse-001/etc/sysconfig/network/ifroute-eth1.exp
 delete mode 100644 src/test/test-opensuse-002/config
 delete mode 100644 src/test/test-opensuse-002/etc/SuSE-brand
 delete mode 100644 src/test/test-opensuse-002/etc/securetty
 delete mode 100644 src/test/test-opensuse-002/etc/securetty.exp
 delete mode 100644 src/test/test-opensuse-002/etc/sysconfig/network/ifcfg-eth0.exp
 delete mode 100644 src/test/test-opensuse-002/etc/sysconfig/network/ifcfg-eth1.exp
 delete mode 100644 src/test/test-opensuse-002/etc/sysconfig/network/ifcfg-eth2.exp
 delete mode 100644 src/test/test-opensuse-002/etc/sysconfig/network/ifroute-eth0.exp
 delete mode 100644 src/test/test-opensuse-003/config
 delete mode 100644 src/test/test-opensuse-003/etc/SuSE-brand
 delete mode 100644 src/test/test-opensuse-003/etc/securetty
 delete mode 100644 src/test/test-opensuse-003/etc/securetty.exp
 delete mode 100644 src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth0.exp
 delete mode 100644 src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth1.exp
 delete mode 100644 src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth2.exp
 delete mode 100644 src/test/test-opensuse-003/etc/sysconfig/network/ifcfg-eth3.exp
 delete mode 100644 src/test/test-opensuse-003/etc/sysconfig/network/ifroute-eth0.exp

-- 
2.1.4





More information about the pve-devel mailing list