Skip to content

Commit

Permalink
resolve pydantic errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldg committed Jan 21, 2025
1 parent 6ea9c40 commit cb13737
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 28 deletions.
34 changes: 16 additions & 18 deletions lib/galaxy/objectstore/templates/examples/irods.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
help: Host url to connect to.
port:
label: iRODS host port
type: string
type: integer
help: Host port to connect to.
default: "1247"
default: 1247
username:
label: Username
type: string
Expand All @@ -28,7 +28,6 @@
which is a logical name for that set of Data Objects.
All Galaxy output will be stored in this collection
default: ""
environment:
timeout:
label: Connection timeout
type: integer
Expand All @@ -55,7 +54,6 @@
type: string
help: |
The iRODS resource to use
ssl:
client_server_negotiation:
label: Server negotiation
type: string
Expand Down Expand Up @@ -105,7 +103,7 @@
default: "hostname"
ssl_ca_certificate_file:
label: Username
type: variable
type: string
help: |
Location of a file of trusted CA certificates in PEM format.
Note that the certificates in this file are used in conjunction with the system default
Expand All @@ -122,24 +120,24 @@
username: '{{ variables.username }}'
password: '{{ secrets.password }}'
resource:
name: '{{ environment.resource }}'
name: '{{ variables.resource }}'
zone:
name: '{{ environment.zone }}'
name: '{{ variables.zone }}'
connection:
host: '{{ variables.host }}'
port: '{{ variables.port }}'
timeout: '{{ environment.timeout }}'
refresh_time: '{{ environment.refresh_time }}'
connection_pool_monitor_interval: '{{ environment.connection_pool_monitor_interval }}'
timeout: '{{ variables.timeout }}'
refresh_time: '{{ variables.refresh_time }}'
connection_pool_monitor_interval: '{{ variables.connection_pool_monitor_interval }}'
ssl:
client_server_negotiation: '{{ ssl.client_server_negotiation }}'
client_server_policy: '{{ ssl.client_server_policy }}'
encryption_algorithm: '{{ ssl.encryption_algorithm }}'
encryption_key_size: '{{ ssl.encryption_key_size }}'
encryption_num_hash_rounds: '{{ ssl.encryption_num_hash_rounds }}'
encryption_salt_size: '{{ ssl.encryption_salt_size }}'
ssl_verify_server: '{{ ssl.ssl_verify_server }}'
ssl_ca_certificate_file: '{{ ssl.ssl_ca_certificate_file }}'
client_server_negotiation: '{{ variables.client_server_negotiation }}'
client_server_policy: '{{ variables.client_server_policy }}'
encryption_algorithm: '{{ variables.encryption_algorithm }}'
encryption_key_size: '{{ variables.encryption_key_size }}'
encryption_num_hash_rounds: '{{ variables.encryption_num_hash_rounds }}'
encryption_salt_size: '{{ variables.encryption_salt_size }}'
ssl_verify_server: '{{ variables.ssl_verify_server }}'
ssl_ca_certificate_file: '{{ variables.ssl_ca_certificate_file }}'
logical:
path: '{{ variables.logical_path }}'

20 changes: 10 additions & 10 deletions lib/galaxy/objectstore/templates/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class IrodsAuth(StrictModel):

class IrodsConnectionTemplate(StrictModel):
host: Union[str, TemplateExpansion]
port: Union[str, TemplateExpansion]
port: Union[int, TemplateExpansion]
timeout: Optional[Union[int, TemplateExpansion]]
refresh_time: Optional[Union[int, TemplateExpansion]]
connection_pool_monitor_interval: Optional[Union[int, TemplateExpansion]]
Expand All @@ -338,33 +338,33 @@ class IrodsConnectionTemplate(StrictModel):
class IrodsConnection(StrictModel):
host: str
port: Optional[int]
timeout: Optional[int]
refresh_time: Optional[int]
connection_pool_monitor_interval: Optional[int]
timeout: Optional[int] = None
refresh_time: Optional[int] = None
connection_pool_monitor_interval: Optional[int] = None


class IrodsPathTemplate(StrictModel):
logical_path: Optional[Union[str, TemplateExpansion]] = ""
path: Optional[Union[str, TemplateExpansion]] = ""


class IrodsPath(StrictModel):
logical_path: Optional[str] = ""
path: Optional[str] = ""


class IrodsResourceTemplate(StrictModel):
resource: Union[str, TemplateExpansion]
name: Union[str, TemplateExpansion]


class IrodsResource(StrictModel):
resource: str
name: str


class IrodsZoneTemplate(StrictModel):
zone: Union[str, TemplateExpansion]
name: Union[str, TemplateExpansion]


class IrodsZone(StrictModel):
zone: str
name: str


class IrodsSslTemplate(StrictModel):
Expand Down

0 comments on commit cb13737

Please sign in to comment.