{"modulePath":"github.com/smartcontractkit/cre-cli","version":"v1.42.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package multi_command_flows\n\n## Constants\n\n```go\nconst MockDerivedWorkflowOwnerHex = \"ab12cd34ef56ab12cd34ef56ab12cd34ef56ab12\"\n```\nMockDerivedWorkflowOwnerHex is the raw address (no 0x) in getCreOrganizationInfo.derivedWorkflowOwners in tests. The canonical checksummed form is privateRegistryOwnerAddress.\n\n```go\nconst VaultPublicKeyHex = \"7b2247726f7570223a2250323536222c22475f626172223a22424d704759487a2b33333432596436582f2b6d4971396d5468556c6d2f317355716b51783333343564303373472b2f2f307257494d39795a70454b44566c6c2b616f36586c513743366546452b665472356568785a4f343d222c2248223a22424257546f7638394b546b41505a7566474454504e35626f456d6453305368697975696e3847336e58517774454931536333394453314b41306a595a6576546155476775444d694431746e6e4d686575373177574b57593d222c22484172726179223a5b22424937726649364c646f7654413948676a684b5955516a4744456a5a66374f30774378466c432f2f384e394733464c796247436d6e54734236632b50324c34596a39477548555a4936386d54342b4e77786f794b6261513d222c22424736634369395574317a65433753786b4c442b6247354751505473717463324a7a544b4c726b784d496e4c36484e7658376541324b6167423243447a4b6a6f76783570414c6a74523734537a6c7146543366746662513d222c224245576f7147546d6b47314c31565a53655874345147446a684d4d2b656e7a6b426b7842782b484f72386e39336b51543963594938486f513630356a65504a732f53575866355a714534564e676b4f672f643530395a6b3d222c22424a31552b6e5344783269567a654177475948624e715242564869626b74466b624f4762376158562f3946744c6876314b4250416c3272696e73714171754459504e2f54667870725a6e655259594a2b2f453162536a673d222c224243675a623770424d777732337138577767736e322b6c4d665259343561347576445345715a7559614e2f356e64744970355a492f4a6f454d372b36304a6338735978682b535365364645683052364f57666855706d453d222c2242465a5942524a336d6647695644312b4f4b4e4f374c54355a6f6574515442624a6b464152757143743268492f52757832756b7166794c6c364d71566e55613557336e49726e71506132566d5345755758546d39456f733d222c22424f716b662f356232636c4d314a78615831446d6a76494c4437334f6734566b42732f4b686b6e4d6867435772552f30574a36734e514a6b425462686b4a5535576b48506342626d45786c6362706a49743349494632303d225d7d\"\n```\nVaultPublicKeyHex is a hex-encoded tdh2easy.PublicKey blob used in secrets integration tests.\n\n## Variables\n\n```go\nvar CLIPath = os.TempDir() + string(os.PathSeparator) + \"cre\" + func() string {\n\tif os.PathSeparator == '\\\\' {\n\t\treturn \".exe\"\n\t}\n\treturn \"\"\n}()\n```\nCLI path for testing\n\n## Functions\n\n```go\nfunc CreateTestBearerCredentialsHome(t *testing.T) string\n```\nCreateTestBearerCredentialsHome writes JWT bearer credentials under the CLI config directory for subprocess CLI tests.\n\n```go\nfunc RunAccountHappyPath(t *testing.T, tc TestConfig, testEthURL, chainName string)\n```\nRunAccountHappyPath runs the complete account happy path workflow: Link -\u003e List -\u003e Unlink -\u003e List (verify unlinked)\n\n```go\nfunc RunHappyPath1Workflow(t *testing.T, tc TestConfig)\n```\nRunHappyPath1Workflow runs the complete happy path 1 workflow: Deploy -\u003e Pause -\u003e Activate -\u003e Delete\n\n```go\nfunc RunHappyPath2Workflow(t *testing.T, tc TestConfig)\n```\nRunHappyPath2Workflow runs the complete happy path 2 workflow: Deploy -\u003e Deploy update with config\n\n```go\nfunc RunHappyPath3aWorkflow(t *testing.T, tc TestConfig, projectName, ownerAddress, ethUrl string)\n```\nRunHappyPath3aWorkflow runs happy path 3a: Init → Deploy with unlinked key (tests auto-link initiation) This test validates the auto-link flow is triggered but uses --unsigned to avoid contract verification\n\n```go\nfunc RunHappyPath3bWorkflow(t *testing.T, tc TestConfig)\n```\nRunHappyPath3bWorkflow runs happy path 3b: Deploy with linked key + config This test validates successful deployment with config when the key is already linked Note: The workflow directory is created with config-path already set by createWorkflowDirectory\n\n```go\nfunc RunPrivateRegistryAuthAndSettingsFinalize(t *testing.T, envPath, blankWorkflowDir string)\n```\nRunPrivateRegistryAuthAndSettingsFinalize asserts .env has no private key, runs auth validation against a minimal GraphQL mock (getCreOrganizationInfo), then loads settings from disk and finalizes org-derived workflow owner for deployment-registry reg-test.\n\n```go\nfunc RunPrivateRegistryE2E(t *testing.T, tc TestConfig, envPath, blankWorkflowDir string)\n```\nRunPrivateRegistryE2E runs auth/settings finalize (no private key) then the full CLI private-registry lifecycle (deploy, pause, activate, delete) with httptest GraphQL mocks.\n\n```go\nfunc RunSecretsHappyPath(t *testing.T, tc TestConfig, chainName string, capRegAddress string)\n```\nRunSecretsHappyPath runs the complete secrets happy path workflow: Create -\u003e Update -\u003e List -\u003e Delete\n\n```go\nfunc RunSecretsListMsig(t *testing.T, tc TestConfig, chainName string)\n```\nRunSecretsListMsig on unsigned\n\n```go\nfunc RunSimulationHappyPath(t *testing.T, tc TestConfig, projectDir string)\n```\nSimulates a workflow\n\n```go\nfunc RunWorkflowActivatePrivateRegistryHappyPath(t *testing.T, tc TestConfig)\n```\nRunWorkflowActivatePrivateRegistryHappyPath runs the workflow activate happy path for private registry.\n\n```go\nfunc RunWorkflowDeletePrivateRegistryHappyPath(t *testing.T, tc TestConfig)\n```\nRunWorkflowDeletePrivateRegistryHappyPath runs the workflow delete happy path for private registry.\n\n```go\nfunc RunWorkflowPausePrivateRegistryHappyPath(t *testing.T, tc TestConfig)\n```\nRunWorkflowPausePrivateRegistryHappyPath runs the workflow pause happy path for private registry.\n\n```go\nfunc RunWorkflowPrivateRegistryHappyPath(t *testing.T, tc TestConfig)\n```\nRunWorkflowPrivateRegistryHappyPath runs the workflow deploy happy path for private registry.\n\n```go\nfunc StripANSI(s string) string\n```\nStripANSI strips the ANSI escape codes from the output\n\n## Types\n\n```go\ntype TestConfig interface {\n\tGetCliEnvFlag() string\n\tGetProjectRootFlag() string\n}\n```\nTestConfig represents test configuration\n\n","path":"github.com/smartcontractkit/cre-cli/test/multi_command_flows","name":"multi_command_flows","synopsis":"","isRedistributable":true}
