Skip to content

Latest commit

 

History

History
58 lines (43 loc) · 2.58 KB

README.md

File metadata and controls

58 lines (43 loc) · 2.58 KB

faux-mono-repo

Fake mono repo for testing variables. This was made so we can test different scenarios manually while working on the Variable Editor project. If you want to make changes, it is best to first fork this repository so you can try things out as well.

Resources

First Scenario

Default Workspace creation that uses the root directory.

A. General Set Up

  • fork this repo and make it public
  • in TFC add create 2 varsets in your org's settings:
    • 1 globally applied varset with a global_varset variable
    • 1 specific workspace(s) applied varset with a workspace_variable
    • image

B. Creating a New Workspace

Setup

  • Select Version Control Workflow
  • Choose this repository
  • Don't open up advanced options & create workspace
  • Even after the editor is re-added, you will still need to create an environment_variable in order to see it in the output
  • you will also need to apply the workspace varset

Result

Your variable config should look like this: image

Key things to note: The environment variable,a nd the global varset var should not come up as pending variables.

The output of a run should look like this: image

Second Scenario

Select a different working directory

  • Select Version Control Workflow
  • Again choose this repository
  • You'll want to rename the workspace because it won't let you have 2 with the same name
  • Open up the advanced options
    • image
    • select a different working directory, either /project_a or /project_b
    • Even after the editor is re-added, you will still need to create an environment_variable in order to see it in the output
    • Make sure you've added all of the other variables

Result Key things to note:

  • The environment variable and the global varset var should not come up as pending variables.
  • The auto var from the root directory should also not come up as a pending variable
  • The output should only contain variables and values attached to the project_a (or b if you picked b)