In the client for volume v3, the response data is inconsistent with the Reference API document

Bug #1836133 reported by wanglbj
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
Undecided
wanglbj

Bug Description

In the client for volume v3, in the path 'tempest\tests\lib\services\volume\v3\test_encryption_types_client.py', the
value

FAKE_CREATE_ENCRYPTION_TYPE = {
    "encryption": {
        "id": "cbc36478b0bd8e67e89",
        "name": "FakeEncryptionType",
        "type": "fakeType",
        "provider": "LuksEncryptor",
        "cipher": "aes-xts-plain64",
        "key_size": "512",
        "control_location": "front-end"
    }
}

But in Reference API document 'https://developer.openstack.org/api-ref/block-storage/v3/index.html#create-an-encryption-type', the response data is format like:

{
    "encryption": {
        "volume_type_id": "2d29462d-76cb-417c-8a9f-fb23140f1577",
        "control_location": "front-end",
        "encryption_id": "81e069c6-7394-4856-8df7-3b237ca61f74",
        "key_size": 128,
        "provider": "luks",
        "cipher": "aes-xts-plain64"
    }
}

The format of two data are different, and 'FAKE_INFO_ENCRYPTION_TYPE' in in the path 'tempest\tests\lib\services\volume\v3\test_encryption_types_client.py' has the same error.

Revision history for this message
wanglbj (wanglbj) wrote :
Revision history for this message
wanglbj (wanglbj) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.opendev.org/670755

Changed in tempest:
assignee: nobody → wanglbj (wanglbj)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.opendev.org/670755
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=802a2b101ba55cd8fac3f84f1720b199d124cd99
Submitter: Zuul
Branch: master

commit 802a2b101ba55cd8fac3f84f1720b199d124cd99
Author: wanglbj <email address hidden>
Date: Mon Jul 15 12:29:00 2019 +0800

    Fix unittest of encryption_types_client

    Replace the data of FAKE_CREATE_ENCRYPTION_TYPE and
    FAKE_INFO_ENCRYPTION_TYPE as the API document described

    Change-Id: I892e27c4219da956c452fda067ee5fef08295c30
    Closes-Bug: #1836133

Changed in tempest:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tempest 22.0.0

This issue was fixed in the openstack/tempest 22.0.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.