Skip to content

Handle missing certs model properties in 2016-10-01#13129

Merged
chlowell merged 1 commit intoAzure:masterfrom
chlowell:models-2016
Aug 17, 2020
Merged

Handle missing certs model properties in 2016-10-01#13129
chlowell merged 1 commit intoAzure:masterfrom
chlowell:models-2016

Conversation

@chlowell
Copy link
Copy Markdown
Member

In Key Vault API version 2016-10-01, two models are missing attributes added in version 7.0:

  • IssuerParameters.certificate_transparency
  • KeyProperties.curve

Code for wrapping generated models in hand-written ones doesn't handle this gracefully, raising AttributeError. This PR makes the code tolerant of these missing attributes and adds a test to exercise it. The test is a medium-term thing. For the long run we need a better way to test multiple versions, something like pytest.mark.parametrize that runs test cases with a client for each supported service version.

There's at least one other issue preventing CertificateClient from fully supporting 2016-10-01: #13122.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client This issue points to a problem in the data-plane of the library. KeyVault

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants