Merge "Not use project table for user table"
This commit is contained in:
commit
5f3b4aa44f
|
@ -1774,7 +1774,7 @@ def _get_allocations_by_provider_id(ctx, rp_id):
|
|||
allocs = sa.alias(_ALLOC_TBL, name="a")
|
||||
consumers = sa.alias(_CONSUMER_TBL, name="c")
|
||||
projects = sa.alias(_PROJECT_TBL, name="p")
|
||||
users = sa.alias(_PROJECT_TBL, name="u")
|
||||
users = sa.alias(_USER_TBL, name="u")
|
||||
cols = [
|
||||
allocs.c.id,
|
||||
allocs.c.resource_class_id,
|
||||
|
|
|
@ -30,17 +30,14 @@ tests:
|
|||
response_headers:
|
||||
content-type: /application/json/
|
||||
response_json_paths:
|
||||
# Bug#1785382: It doesn't show all the consumers
|
||||
# on the resource provider
|
||||
# $.allocations.`len`: 3
|
||||
$.allocations.`len`: 2
|
||||
$.allocations.`len`: 3
|
||||
$.allocations["$ENVIRON['CONSUMER_0']"].resources:
|
||||
DISK_GB: 1000
|
||||
$.allocations["$ENVIRON['CONSUMER_ID']"].resources:
|
||||
VCPU: 6
|
||||
# $.allocations["$ENVIRON['ALT_CONSUMER_ID']"].resources:
|
||||
# VCPU: 1
|
||||
# DISK_GB: 20
|
||||
$.allocations["$ENVIRON['ALT_CONSUMER_ID']"].resources:
|
||||
VCPU: 1
|
||||
DISK_GB: 20
|
||||
$.resource_provider_generation: 5
|
||||
|
||||
- name: fail to delete resource provider
|
||||
|
|
Loading…
Reference in New Issue