cumulusci-plus 5.0.18__py3-none-any.whl → 5.0.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cumulusci-plus might be problematic. Click here for more details.
- cumulusci/__about__.py +1 -1
- cumulusci/core/dependencies/base.py +77 -33
- cumulusci/core/dependencies/dependencies.py +27 -17
- cumulusci/core/dependencies/tests/test_dependencies.py +12 -6
- cumulusci/core/dependencies/tests/test_resolvers.py +61 -27
- cumulusci/cumulusci.yml +0 -4
- cumulusci/tasks/salesforce/SfDataCommands.py +234 -0
- cumulusci/tasks/salesforce/profiles.py +40 -7
- cumulusci/tasks/salesforce/tests/test_profiles.py +165 -1
- cumulusci/tasks/salesforce/tests/test_update_dependencies.py +1 -1
- cumulusci/tasks/salesforce/update_dependencies.py +9 -3
- {cumulusci_plus-5.0.18.dist-info → cumulusci_plus-5.0.20.dist-info}/METADATA +4 -4
- {cumulusci_plus-5.0.18.dist-info → cumulusci_plus-5.0.20.dist-info}/RECORD +17 -19
- cumulusci/tasks/utility/data_management.py +0 -16
- cumulusci/tasks/utility/tests/test_data_management.py +0 -43
- {cumulusci_plus-5.0.18.dist-info → cumulusci_plus-5.0.20.dist-info}/WHEEL +0 -0
- {cumulusci_plus-5.0.18.dist-info → cumulusci_plus-5.0.20.dist-info}/entry_points.txt +0 -0
- {cumulusci_plus-5.0.18.dist-info → cumulusci_plus-5.0.20.dist-info}/licenses/AUTHORS.rst +0 -0
- {cumulusci_plus-5.0.18.dist-info → cumulusci_plus-5.0.20.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
cumulusci/__about__.py,sha256=
|
|
1
|
+
cumulusci/__about__.py,sha256=6sp8USgxlu5swzTs5D2mB0JR7vz8Xn-HA4oObvKMK48,23
|
|
2
2
|
cumulusci/__init__.py,sha256=jdanFQ_i8vbdO7Eltsf4pOfvV4mwa_Osyc4gxWKJ8ng,764
|
|
3
3
|
cumulusci/__main__.py,sha256=kgRH-n5AJrH_daCK_EJwH7azAUxdXEmpi-r-dPGMR6Y,43
|
|
4
4
|
cumulusci/conftest.py,sha256=AIL98BDwNAQtdo8YFmLKwav0tmrQ5dpbw1cX2FyGouQ,5108
|
|
5
|
-
cumulusci/cumulusci.yml,sha256=
|
|
5
|
+
cumulusci/cumulusci.yml,sha256=5w0fVZqfgWu-RkNN_uHt1HnZqpDM0f4WySCNxpcLjE4,73262
|
|
6
6
|
cumulusci/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
7
|
cumulusci/cli/cci.py,sha256=yAq8jFoGde6g_1TeAAjzZYsk77itiONCQGBFe3g3nOs,11836
|
|
8
8
|
cumulusci/cli/error.py,sha256=znj0YN8D2Grozm1u7mZAsJlmmdGebbuy0c1ofQluL4Q,4410
|
|
@@ -65,17 +65,17 @@ cumulusci/core/config/tests/test_config.py,sha256=ZtIQSIzQWebw7mYXgehnp3CvoatC_t
|
|
|
65
65
|
cumulusci/core/config/tests/test_config_expensive.py,sha256=__3JEuoAQ8s5njTcbyZlpXHr0jR0Qtne96xyF7fzqjQ,30137
|
|
66
66
|
cumulusci/core/config/tests/test_config_util.py,sha256=X1SY9PIhLoQuC8duBKgs804aghN3n12DhqiC_f6jSmM,3177
|
|
67
67
|
cumulusci/core/dependencies/__init__.py,sha256=Txf4VCrRW-aREKHqzK3ZyauQMsgtCXjiLkQzpMQT0kI,1533
|
|
68
|
-
cumulusci/core/dependencies/base.py,sha256=
|
|
69
|
-
cumulusci/core/dependencies/dependencies.py,sha256=
|
|
68
|
+
cumulusci/core/dependencies/base.py,sha256=xeZXWxkBZHQc9GjLhouv5ogkZaQJ7r8-yrl8fi6gMx0,24972
|
|
69
|
+
cumulusci/core/dependencies/dependencies.py,sha256=ldibl-bm_zTgpecE625VW1zIYJAlcNdwx02FSwi6xkk,9101
|
|
70
70
|
cumulusci/core/dependencies/github.py,sha256=ozpRc5ADJsRDD5C_T-TLFygnBDE5Y9_03ZLCtZ-qr98,5897
|
|
71
71
|
cumulusci/core/dependencies/github_resolvers.py,sha256=Em8p41Q-npoKv1ZAYNxXVrluQmYitzVfLLXlmln-MGw,9196
|
|
72
72
|
cumulusci/core/dependencies/resolvers.py,sha256=xWVijK6Eu-WFyGnQPFANLkZFTjq4NQYhXsnLos5CElc,20742
|
|
73
73
|
cumulusci/core/dependencies/utils.py,sha256=y54fWqLZ8IUIV9i1b6WcDXIJsK0ygny5DTsZCXbgeoM,369
|
|
74
74
|
cumulusci/core/dependencies/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
75
|
cumulusci/core/dependencies/tests/conftest.py,sha256=rd0ZqpV6GTk7IRtPYJ7jyLWHM1g_xtZ4PABuvkN-TZY,11004
|
|
76
|
-
cumulusci/core/dependencies/tests/test_dependencies.py,sha256=
|
|
76
|
+
cumulusci/core/dependencies/tests/test_dependencies.py,sha256=sdRcNmiBi0VsQwfbxgQSxTYwndocAD246KIAjFdn1N8,40748
|
|
77
77
|
cumulusci/core/dependencies/tests/test_github.py,sha256=_JiUh-xgGmnsA2X_57i3gOwcDv_xBj66mdhitcZ-APU,2765
|
|
78
|
-
cumulusci/core/dependencies/tests/test_resolvers.py,sha256=
|
|
78
|
+
cumulusci/core/dependencies/tests/test_resolvers.py,sha256=dhclH8_qQN4MXtd0gZ6TvLvehUVQJSJr7oGJdbht_hc,37415
|
|
79
79
|
cumulusci/core/keychain/__init__.py,sha256=UbuaIrKZSczVVqbG_7BHFTkQukbqinGJlJlQGIpIsOI,595
|
|
80
80
|
cumulusci/core/keychain/base_project_keychain.py,sha256=uIQ6Qc5xMIQIGWL947Ou9XdXpHvsGrrZdGKMypk6BFc,16927
|
|
81
81
|
cumulusci/core/keychain/encrypted_file_project_keychain.py,sha256=yUrh4h2lynEjDvBDERFRXbJ4ZGTKKEjwXuo4bjBg7Xg,37734
|
|
@@ -516,7 +516,7 @@ cumulusci/tasks/salesforce/RetrievePackaged.py,sha256=XMdA3qBIuGJaZnPNeZBKupz9N6
|
|
|
516
516
|
cumulusci/tasks/salesforce/RetrieveReportsAndDashboards.py,sha256=-pVD0RJ4vsB1TM9b7VcPQAV-pO4LTAm-YoESq4bM2dA,3289
|
|
517
517
|
cumulusci/tasks/salesforce/RetrieveUnpackaged.py,sha256=_9jglbNWmjg9kq5EkvCusprrt14czurBtNM2hbU9RFI,1174
|
|
518
518
|
cumulusci/tasks/salesforce/SOQLQuery.py,sha256=RFV-bLzvAx_m4SWWLMyCKuA3ie08iLwLyrOVyhpNCPE,1730
|
|
519
|
-
cumulusci/tasks/salesforce/SfDataCommands.py,sha256=
|
|
519
|
+
cumulusci/tasks/salesforce/SfDataCommands.py,sha256=5t3441TOC7_Qv4rCerXsBpWRlQCIIqd40o8vGnnFV1g,14415
|
|
520
520
|
cumulusci/tasks/salesforce/UninstallLocal.py,sha256=6nnRDyFrwIcXd9WygDHIMhMQYBZMFEQ75Sh6nNxivfg,492
|
|
521
521
|
cumulusci/tasks/salesforce/UninstallLocalBundles.py,sha256=eG4yoDJdjruo9kwfcQU-i5_AVt473uWF7SvLD7IQoSw,759
|
|
522
522
|
cumulusci/tasks/salesforce/UninstallLocalNamespacedBundles.py,sha256=KgM6TPSkczAdeM10fOAtijs4uszJ_f219lGgVNwJ1eM,2210
|
|
@@ -538,14 +538,14 @@ cumulusci/tasks/salesforce/network_member_group.py,sha256=sWkRr4A6Zm_Iv_7uzPmiNj
|
|
|
538
538
|
cumulusci/tasks/salesforce/nonsourcetracking.py,sha256=kKaQGEOErCIaE53A_TO4Hc5Afhv2aIi97UjPAN-4cQM,8720
|
|
539
539
|
cumulusci/tasks/salesforce/org_settings.py,sha256=0Xg_voNeHV94husGpo7HTpA0QpqQ1NBJKqBsvLM24NA,7105
|
|
540
540
|
cumulusci/tasks/salesforce/package_upload.py,sha256=AKrguElY4cTprmReq4s5BtIuG-QoxeaP9-YT8385Hzo,13024
|
|
541
|
-
cumulusci/tasks/salesforce/profiles.py,sha256
|
|
541
|
+
cumulusci/tasks/salesforce/profiles.py,sha256=nW1UIx0wPdLOgpfXFh7VZqCMzIJYz357hU77Xwf-IL0,3852
|
|
542
542
|
cumulusci/tasks/salesforce/promote_package_version.py,sha256=2mD_iOzkbelaglH_NJKfR_MJoJOVpnqPuaGmnRTL5Go,15186
|
|
543
543
|
cumulusci/tasks/salesforce/retrieve_profile.py,sha256=VTO--xWQJ7sidMMkvrfvgd2fSUaumQWJK25Aqa0oSNU,7798
|
|
544
544
|
cumulusci/tasks/salesforce/salesforce_files.py,sha256=91VHtOkZzi9Tabfy0IDFWBW5bZPi8xOPb_4RPCqmFaY,9193
|
|
545
545
|
cumulusci/tasks/salesforce/sourcetracking.py,sha256=-JaZt1NNlA_dEzYsIHvFKZ9va-MMA2JOPIplFN1g2EM,18797
|
|
546
546
|
cumulusci/tasks/salesforce/trigger_handlers.py,sha256=cs6pDHhvi_eu0Vr8sLtfH2nrhlsF8TPrkKezjciy79o,4932
|
|
547
547
|
cumulusci/tasks/salesforce/uninstall_packaged_incremental.py,sha256=9-_3S0PaVm-K6t44McBHSfRTB7KVzkHUMii4-p5PkS0,5673
|
|
548
|
-
cumulusci/tasks/salesforce/update_dependencies.py,sha256=
|
|
548
|
+
cumulusci/tasks/salesforce/update_dependencies.py,sha256=BE-ey6eH_x75jC4D6kSa-aR0JaCuPbzvN5MlhxlKAkU,12153
|
|
549
549
|
cumulusci/tasks/salesforce/update_profile.py,sha256=P8TQeWEjzXFI4hN5cUk9zMCweBerqNP08seIuYEo-RI,15163
|
|
550
550
|
cumulusci/tasks/salesforce/tests/__init__.py,sha256=zEUlLU8eRXUU1HAcYdHtdAgHbdlAPPj39rcWRPEu2H4,57
|
|
551
551
|
cumulusci/tasks/salesforce/tests/test_CreateCommunity.py,sha256=aepyVVrM6zfmT2UJ_pKKdgwv7DsU66F_eiwmE4EfVUo,8720
|
|
@@ -583,12 +583,12 @@ cumulusci/tasks/salesforce/tests/test_install_package_version.py,sha256=f_hHO83v
|
|
|
583
583
|
cumulusci/tasks/salesforce/tests/test_network_member_group.py,sha256=N0ZXcy74nNQdpmGrBnkVzY6mALW4KxoYhQtARrZJ578,13968
|
|
584
584
|
cumulusci/tasks/salesforce/tests/test_nonsourcetracking.py,sha256=14yjidvGa0Q85n8uoWXwMeFsOWYJGqvFShevAbidfbU,9154
|
|
585
585
|
cumulusci/tasks/salesforce/tests/test_org_settings.py,sha256=SRpqihPzRy29WEinOlU-l-DU8viyFP1guIzjfROTK7A,13532
|
|
586
|
-
cumulusci/tasks/salesforce/tests/test_profiles.py,sha256=
|
|
586
|
+
cumulusci/tasks/salesforce/tests/test_profiles.py,sha256=3BTUOCFh3h7QbrjYrRDlQgnDULF14vzjh-lIGDRyGUg,10540
|
|
587
587
|
cumulusci/tasks/salesforce/tests/test_retrieve_profile.py,sha256=Ujbt1k34CmN6-CvcKhTY_vgVp-OtpvGb0NDXS-vGYSQ,9858
|
|
588
588
|
cumulusci/tasks/salesforce/tests/test_salesforce_files.py,sha256=eBeyanF7ygldukf9TQrPSXmeTU5sLQi_vNHVplx8dd0,8005
|
|
589
589
|
cumulusci/tasks/salesforce/tests/test_sourcetracking.py,sha256=n9dyJ21OZs8P574Ds3uzVESCVl6fK0_RYv2bKI1dm3E,12540
|
|
590
590
|
cumulusci/tasks/salesforce/tests/test_trigger_handlers.py,sha256=IpqnCKgGVWU0XUP4LDB10HG1LLj5VvsSfxMBa26EScs,10567
|
|
591
|
-
cumulusci/tasks/salesforce/tests/test_update_dependencies.py,sha256=
|
|
591
|
+
cumulusci/tasks/salesforce/tests/test_update_dependencies.py,sha256=C7Zu115-Bi585Fu7tWy3TF9ZKDcKiu1zXzqJiOhA0L0,14679
|
|
592
592
|
cumulusci/tasks/salesforce/tests/util.py,sha256=YbeHOKyKNhKNYtd1g467a4sQ07W3SvyMAuT0E3bL6Js,2543
|
|
593
593
|
cumulusci/tasks/salesforce/users/permsets.py,sha256=EMFX7QhSbVd1LM0ognYlaXUhYcpSY-0CbWOARRVORM0,9326
|
|
594
594
|
cumulusci/tasks/salesforce/users/photos.py,sha256=67-fQk0m9w4bf1N2WSWfsn-kwtmIuLtSpyJCqa8Cr1w,5745
|
|
@@ -613,9 +613,7 @@ cumulusci/tasks/tests/test_pushfails.py,sha256=9JG9D0iD4dR-1fKheaRN7BEy3lzzuOKeR
|
|
|
613
613
|
cumulusci/tasks/tests/test_salesforce.py,sha256=yCGtuHapxyAEmXQhuF2g2fh2naknTu7Md4OfEJQvGAA,2594
|
|
614
614
|
cumulusci/tasks/tests/test_sfdx.py,sha256=oUbHo28d796m5RuskXMLitJw2rCLjjXIfxggzr4gsso,3545
|
|
615
615
|
cumulusci/tasks/tests/test_util.py,sha256=D1T0QnvPTS0PHeZWo2xiVgE1jVTYcLzGTGHwEIoVmxk,7296
|
|
616
|
-
cumulusci/tasks/utility/data_management.py,sha256=7DbK0uxMxj_e4WuH08gWFVxr_ZBMrvHvumHnM_oi2YM,443
|
|
617
616
|
cumulusci/tasks/utility/env_management.py,sha256=hJX6ySEiXD2oFW38JqbGQKMj89ucxdSBsPwytSdkgO8,6591
|
|
618
|
-
cumulusci/tasks/utility/tests/test_data_management.py,sha256=f3F1yFikaNEkzllMXZa67gNX0T_PCC-4zEoL8kUII_Q,1363
|
|
619
617
|
cumulusci/tasks/utility/tests/test_env_management.py,sha256=fw34meWGOe1YYZO449MMCi2O7BgSaOA_I_wScrIr1Uk,8702
|
|
620
618
|
cumulusci/tasks/vcs/__init__.py,sha256=ZzpMZnhooXZ6r_ywBVTS3UNw9uMcXW6h33LylRqTDK0,700
|
|
621
619
|
cumulusci/tasks/vcs/commit_status.py,sha256=hgPUVHeQyIfMsCuwrw2RI-ufnbjdRARc6HI3BEgdcxI,2332
|
|
@@ -742,9 +740,9 @@ cumulusci/vcs/tests/dummy_service.py,sha256=RltOUpMIhSDNrfxk0LhLqlH4ppC0sK6NC2cO
|
|
|
742
740
|
cumulusci/vcs/tests/test_vcs_base.py,sha256=9mp6uZ3lTxY4onjUNCucp9N9aB3UylKS7_2Zu_hdAZw,24331
|
|
743
741
|
cumulusci/vcs/tests/test_vcs_bootstrap.py,sha256=N0NA48-rGNIIjY3Z7PtVnNwHObSlEGDk2K55TQGI8g4,27954
|
|
744
742
|
cumulusci/vcs/utils/__init__.py,sha256=py4fEcHM7Vd0M0XWznOlywxaeCtG3nEVGmELmEKVGU8,869
|
|
745
|
-
cumulusci_plus-5.0.
|
|
746
|
-
cumulusci_plus-5.0.
|
|
747
|
-
cumulusci_plus-5.0.
|
|
748
|
-
cumulusci_plus-5.0.
|
|
749
|
-
cumulusci_plus-5.0.
|
|
750
|
-
cumulusci_plus-5.0.
|
|
743
|
+
cumulusci_plus-5.0.20.dist-info/METADATA,sha256=LrA2JGHdRQXYBOsRRppZq0qAWWCLC4Yq_AocAQ3zelc,5764
|
|
744
|
+
cumulusci_plus-5.0.20.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
745
|
+
cumulusci_plus-5.0.20.dist-info/entry_points.txt,sha256=nTtu04b9iLXhzADcTrb5PwmdXE6e2MTUAMh9OK6Z2pg,80
|
|
746
|
+
cumulusci_plus-5.0.20.dist-info/licenses/AUTHORS.rst,sha256=PvewjKImdKPhhJ6xR2EEZ4T7GbpY2ZeAeyWm2aLtiMQ,676
|
|
747
|
+
cumulusci_plus-5.0.20.dist-info/licenses/LICENSE,sha256=NFsF_s7RVXk2dU6tmRAN8wF45pnD98VZ5IwqOsyBcaU,1499
|
|
748
|
+
cumulusci_plus-5.0.20.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
from typing import Any
|
|
2
|
-
|
|
3
|
-
from cumulusci.core.tasks import BaseTask
|
|
4
|
-
from cumulusci.utils.options import CCIOptions, Field
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class GetFirstItemFromRecordListTask(BaseTask):
|
|
8
|
-
class Options(CCIOptions):
|
|
9
|
-
result: dict[str, Any] = Field(
|
|
10
|
-
None, description="The result from SF CLI operations."
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
parsed_options: Options
|
|
14
|
-
|
|
15
|
-
def _run_task(self):
|
|
16
|
-
self.return_values = self.parsed_options.result["records"][0]
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import pytest
|
|
2
|
-
|
|
3
|
-
from cumulusci.core.config import (
|
|
4
|
-
BaseProjectConfig,
|
|
5
|
-
OrgConfig,
|
|
6
|
-
TaskConfig,
|
|
7
|
-
UniversalConfig,
|
|
8
|
-
)
|
|
9
|
-
from cumulusci.tasks.utility.data_management import GetFirstItemFromRecordListTask
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@pytest.fixture
|
|
13
|
-
def a_task():
|
|
14
|
-
universal_config = UniversalConfig()
|
|
15
|
-
project_config = BaseProjectConfig(universal_config, config={"noyaml": True})
|
|
16
|
-
org_config = OrgConfig({}, "test")
|
|
17
|
-
|
|
18
|
-
def _a_task(options):
|
|
19
|
-
task_config = TaskConfig({"options": options})
|
|
20
|
-
return GetFirstItemFromRecordListTask(project_config, task_config, org_config)
|
|
21
|
-
|
|
22
|
-
return _a_task
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class TestGetFirstItemFromRecordListTask:
|
|
26
|
-
def test_returns_first_item(self, a_task):
|
|
27
|
-
"""Tests that the task returns the first item from the 'records' list."""
|
|
28
|
-
result_input = {
|
|
29
|
-
"records": [
|
|
30
|
-
{"Id": "001", "Name": "Test Account"},
|
|
31
|
-
{"Id": "002", "Name": "Another Account"},
|
|
32
|
-
]
|
|
33
|
-
}
|
|
34
|
-
task = a_task({"result": result_input})
|
|
35
|
-
task()
|
|
36
|
-
assert task.return_values == {"Id": "001", "Name": "Test Account"}
|
|
37
|
-
|
|
38
|
-
def test_empty_record_list(self, a_task):
|
|
39
|
-
"""Tests that an IndexError is raised for an empty 'records' list."""
|
|
40
|
-
result_input = {"records": []}
|
|
41
|
-
task = a_task({"result": result_input})
|
|
42
|
-
with pytest.raises(IndexError):
|
|
43
|
-
task()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|