1.2.0
This commit is contained in:
@@ -15,18 +15,18 @@ from tests.conftest import SDKFunction
|
||||
|
||||
|
||||
expected_inconsistencies: list[str] = [
|
||||
'''cloudapi.image.create: API has parameter "asyncMode" but this SDK function doesn't have corresponding parameter.''', # noqa: E501
|
||||
'''cloudapi.flipgroup.create: API has parameter "clientType" but this SDK function doesn't have corresponding parameter.''', # noqa: E501
|
||||
'''cloudapi.k8s.create: API has parameter "oidcCertificate" but this SDK function doesn't have corresponding parameter.''', # noqa: E501
|
||||
'cloudapi.k8s.create: annotation of parameter "lb_sysctl_params" must contain BaseAPIParamsNestedModel.', # noqa: E501
|
||||
'cloudapi.user.get_audit: result type must be child of BaseAPIParamsNestedModel.', # noqa: E501
|
||||
'cloudapi.disks.limit_io: API has parameter "iops" but this SDK function doesn\'t have corresponding parameter.', # noqa: E501
|
||||
'cloudapi.image.list: API has parameter "architecture" but this SDK function doesn\'t have corresponding parameter.', # noqa: E501
|
||||
'cloudapi.bservice.group_stop: default value of parameter "force" must be None.', # noqa: E501
|
||||
'cloudapi.bservice.group_stop: annotation of parameter "force" must be Union.', # noqa: E501
|
||||
'cloudapi.bservice.delete: default value of parameter "permanently" must be None.', # noqa: E501
|
||||
'cloudapi.bservice.delete: annotation of parameter "permanently" must be Union.', # noqa: E501
|
||||
'cloudapi.compute.net_attach: result type must be child of BaseAPIResultBool.', # noqa: E501
|
||||
'cloudapi.compute.net_attach: default value of parameter "mtu" must be 1500.', # noqa: E501
|
||||
'cloudapi.disks.create: default value of parameter "size_gb" must be 10.',
|
||||
'cloudapi.kvmx86.create: annotation of parameter "ci_user_data" must contain BaseAPIParamsNestedModel.', # noqa: E501
|
||||
'''cloudapi.image.create: API has parameter "architecture" but this SDK function doesn't have corresponding parameter.''', # noqa: E501
|
||||
'cloudapi.lb.create: annotation of parameter "sysctl_params" must contain BaseAPIParamsNestedModel.', # noqa: E501
|
||||
]
|
||||
|
||||
@@ -298,8 +298,8 @@ def test_with_api_definition(
|
||||
inconsistencies.append(
|
||||
f'{".".join(sdk_func.call_attrs)}:'
|
||||
f' parameter "{sdk_param_name}",'
|
||||
f' {target_annotation = },'
|
||||
f' {expected_annot = }'
|
||||
f' {target_annotation = },' # noqa: E202, E251
|
||||
f' {expected_annot = }' # noqa: E202, E251
|
||||
)
|
||||
continue
|
||||
|
||||
|
||||
Reference in New Issue
Block a user