File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55from typing import Dict , List , Optional
66
77from pyoaev import utils
8- from pyoaev .credential .types import CredentialType
98from pyoaev .contracts .contract_utils import ContractCardinality , ContractVariable
109from pyoaev .contracts .variable_helper import VariableHelper
10+ from pyoaev .credential .types import CredentialType
1111
1212
1313class SupportedLanguage (str , Enum ):
Original file line number Diff line number Diff line change 1111from pyoaev .contracts .contract_config import ContractReferencedCredential
1212from pyoaev .credential .types import CredentialType
1313
14-
1514_PROVIDER_TO_CREDENTIAL_TYPE = {
1615 "aws" : CredentialType .CLOUD_AWS ,
1716 "eks" : CredentialType .CLOUD_AWS ,
@@ -29,7 +28,7 @@ def build_single_referenced_credential_element(
2928 provider_name : str ,
3029) -> ContractReferencedCredential :
3130 """Build a credential-reference field for a provider-specific contract
32- with multiple value at False.
31+ with `` multiple`` value at `` False`` .
3332
3433 This is the centralized entry point injectors should use when they need the
3534 OpenAEV inject form to ask for one referenced credential. The helper keeps
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ def test_package_public_helper_builds_the_same_field(self):
4747 self .assertIsInstance (field , ContractReferencedCredential )
4848 self .assertEqual (field .credential_reference_type , CredentialType .CLOUD_AZURE )
4949 self .assertEqual (_serialize (field )["credential_reference_type" ], "CLOUD_AZURE" )
50+ self .assertFalse (field .multiple )
5051
5152 def test_unknown_provider_leaves_credential_type_empty (self ):
5253 field = build_single_referenced_credential_element ("openstack" )
You can’t perform that action at this time.
0 commit comments