delphix / dxm-toolkit

The DXM-Toolkit is a collection of compiled Python command line interface (CLI) executables to assist in automating or extending the Delphix Masking Engine functionality via the APIs.
Apache License 2.0
6 stars 15 forks source link

21-Oct-2020: ALGORITHM LIST fails against masking engine 6.0.3+ #38

Open KevinBott opened 4 years ago

KevinBott commented 4 years ago

6.0.3 added Environment Syncable objects https://maskingdocs.delphix.com/What%27s%20New%20for%20Masking/#ui-based-environment-sync

This call to DxSyncList() dxm/lib/DxAlgorithm/DxAlgorithmList.py#L71 should specify "ALGORITHM", so that the SyncList is restricted to Algorithms. This would fix the issue (though not add support for Environment Syncing) and should also reduce a few rest calls as Algorithms are only a small percentage of syncable objects.

This can also be fixed by recompiling with the latest 6.x API, which is needed for syncing Environments.

I'm going to build from source, but this should be fixed for new clients.

Expected Behavior kevin$ ./dxmc algorithms list < formatted list output of algorithms >

Actual Behavior kevin$ ./dxmc algorithms list EXCEPTION: ValueError: Invalid value for object_type (ENVIRONMENT), must be one of <....>

Steps To Reproduce the Problem dxmc algorithms list

Screenshots N/A

Version Tried latest compiled v0.8.2

Additional Context Latest commit here https://github.com/pioro/masking_api_60 is for 6.0.2.