Unverified Commit dba309bd authored by Tim Moore's avatar Tim Moore Committed by GitHub
Browse files

Merge pull request #8730 from truenas/DOCS-3457-13.0

DOCS-3457 / 13.0 / Refactor pool test and and datasets encryption test
parents 9d2f3801 b3574c6b
Showing with 1188 additions and 1035 deletions
+1188 -1035
......@@ -18,8 +18,8 @@ loops = {
nas_disk = GET('/boot/get_disks/', controller_a=ha).json()
disk_list = list(POST('/device/get_info/', 'DISK', controller_a=ha).json().keys())
disk_pool = sorted(list(set(disk_list) - set(nas_disk)))
ha_disk_pool = disk_pool[:1] if ha else None
tank_disk_pool = disk_pool[1:] if ha else disk_pool
# Take all disk from ada1 and after to keep ada0 for dataset encryption test.
tank_disk_pool = (disk_pool[:1])
@pytest.fixture(scope='module')
......@@ -46,26 +46,6 @@ def test_02_wipe_all_pool_disk():
assert job_status['state'] == 'SUCCESS', str(job_status['results'])
# Exclude for non-HA
if ha:
def test_03_creating_ha_pool():
global payload
payload = {
"name": "ha",
"encryption": False,
"topology": {
"data": [
{"type": "STRIPE", "disks": ha_disk_pool}
],
}
}
results = POST("/pool/", payload)
assert results.status_code == 200, results.text
job_id = results.json()
job_status = wait_on_job(job_id, 180)
assert job_status['state'] == 'SUCCESS', str(job_status['results'])
@pytest.mark.dependency(name="pool_04")
def test_04_creating_a_pool():
global payload
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment