anancarv / python-artifactory

Typed interactions with the Jfrog Artifactory REST API
MIT License
55 stars 50 forks source link

update RemoteRepository attribute #97

Closed YanboLiao closed 2 years ago

YanboLiao commented 2 years ago

Add xrayIndex attribute to Class RemoteRepository to enable the xrayIndex option when creating a remote repository.

Description

Added a default attribute to Class RemoteRepository to fix the following issue: Fixes #96

Type of change

Please delete options that are not relevant.

How has it been tested ?

env: windows 10, python 3.7

Tested creating a remote repository using following codes:

remote_repo = RemoteRepository(key="test-1", url="https://registry.npmjs.org", packageType="npm", xrayIndex=True)
new_remote_repo = art.repositories.create_repo(remote_repo)

Checked in the jfrog GUI and the newly created remote repo "test-1" has enabled "Enable Indexing In Xray".

Checklist: