ISC Test Case Runner
ISC Test Case Runner connects VS Code to your SailPoint Identity Security Cloud (ISC) tenant. It lets you:
- Test: run ISC test cases (
*.isctf.json) against a tenant and see the results in VS Code.
- Manage configuration as code: import ISC objects into your project as JSON files, compare them with the tenant, and post them back.
- Back up and build: take full backups of a tenant, keep secrets out of the files with tokens, and compile a validated build for deployment to another tenant.
The extension runs the ISCAT Java library, which it downloads into your project.
Features
- Test cases
- Run a whole test case with the play button (▶) in the editor title bar of a
*.isctf.json file.
- Run a single command from a test case with its inline CodeLens button or the editor context menu (ISC: Run Single Command).
- Test case files,
connection-properties.json and *tokens.json files get validation and auto-completion from the schemas in the ISCAT library.
- ISC objects
- Import from ISC: right-click a folder in the Explorer to download objects from the tenant into it. You can download one object or every object of a type.
- Compare with ISC server: opens a diff of a local file against the current version of the object in ISC.
- Update from ISC: overwrites a local file with the current version from ISC. Right-click one or more folders to update every object file in them in one go.
- Post to ISC: creates or updates the object in ISC from a local file.
- Preview post: shows the object exactly as Post to ISC would send it, without sending it.
- Tasks (
iscCli task type)
- Full tenant backups (
get-full) with allow and ignore lists.
- Compiling a build (
compile-build) that is validated against the target tenant.
- Any other ISC CLI operation.
- Tokens: environment-specific values such as secrets, client IDs and domains are stored in the files as
%%token%% placeholders and replaced per tenant.
- Multiple tenants: define several connections and pick one each time you run.
Requirements
Java 17 or later, available on your PATH. Check it with:
java -version
A JFrog Artifactory access token with read access to iscat-generic-iscatLibsWithDep-release-local. The ISCAT library is downloaded from there.
An ISC API client (client ID and secret) for each tenant you want to connect to.
Setup
1. Initialize the project
Open your project folder in VS Code, then run ISCAT: Initialize Project in one of these ways:
- From the Command Palette (
Ctrl+Shift+P).
- By right-clicking the workspace root folder in the Explorer.
- From the Get started with ISCAT walkthrough (Help → Welcome, or Welcome: Open Walkthrough...).
The extension does nothing in a project until it is initialized. Initializing:
- marks the workspace as an ISCAT project by setting
javaFileExecutor.enabled in .vscode/settings.json;
- creates these files in the workspace root (files that already exist are left alone):
connection-properties.json: your ISC connections, with placeholder values. Its tokenFile already points at your-tenant-name.tokens.json by absolute path.
your-tenant-name.tokens.json: a sample tokens file with one placeholder token.
backup-allow.txt and backup-ignore.txt: sample backup rules, all commented out.
- downloads the ISCAT library into
lib/. If no Artifactory token is set yet, you're asked for one. If your project uses git, you're also offered to add lib/ to .gitignore.
Running the command again only restores missing files.
To set or replace the token later, run ISCAT: Set Artifactory Token. The token is stored in VS Code's secret storage, not in your settings.
2. Add your ISC connections
Replace the placeholders in connection-properties.json:
{
"connections": [
{
"name": "main",
"iscUrl": "https://<your-tenant>.api.identitynow.com",
"clientId": "<your-client-id>",
"clientSecret": "<your-client-secret>",
"tokenFile": "C:/path/to/<your-tenant>.tokens.json"
}
]
}
| Field |
Description |
name |
A label for the connection, e.g. main(mandatory), user2, prod. |
iscUrl |
Your ISC tenant's API base URL. |
clientId |
OAuth client ID with the required scopes. |
clientSecret |
OAuth client secret. |
tokenFile |
Optional. The tokens file for this tenant (see Tokens). Use an absolute path. |
You can add as many connections as you need. When there is more than one, you pick the connection each time you run.
The file is validated against the ISCAT library's connection schema, so VS Code flags unknown fields and offers completion as you type. Validation starts once the library is downloaded. One connection must be named main, because it is used by default.
Proxy
If your network reaches ISC through an HTTP proxy, add proxyHost and proxyPort at the top level of the file, next to connections:
{
"proxyHost": "proxy.example.com",
"proxyPort": 8080,
"connections": [
...
]
}
| Field |
Description |
proxyHost |
Proxy host name or IP address. |
proxyPort |
Proxy port, a number from 1 to 65535. |
The proxy is used only when both fields are set. Leave them out to connect directly. It applies to all connections in the file.
Warning: this file holds client secrets. Keep it out of version control.
Run a test case
- Open a
*.isctf.json test case file.
- Click the play button (▶) in the editor title bar to run the whole test case.
- To run a single command instead, click its CodeLens button, or right-click inside the command and choose ISC: Run Single Command.
- The results appear in the Java Executor output channel.
Work with ISC objects
Each ISC object is stored as a JSON file named <objectType>-<name>.json, for example source-Active Directory.json or transform-Lowercase.json. The extension works out the object type and name from the file name, so keep this naming.
| Command |
Where to find it |
What it does |
| Import from ISC |
Explorer context menu on a folder |
Choose an object type and an object, or all objects of the type, and download them into the folder. For child objects (a source's schema or provisioning policy, an identity profile's lifecycle state), you choose the parent first. |
| Compare with ISC server |
Editor and Explorer context menu on a JSON file |
Fetches the object from ISC and opens a diff against your local file. Nothing is changed. |
| Update from ISC |
Editor and Explorer context menu on a JSON file |
Overwrites the local file with the current version from ISC. |
| Update from ISC (folders) |
Explorer context menu on one or more selected folders |
Updates every ISC object file directly in each folder (not in subfolders), one file at a time, from the connection you pick. You confirm once before anything is overwritten, and you can cancel from the progress notification. Files whose name doesn't start with a known object type are skipped. A failed file doesn't stop the others, and failures are listed in the "Java Executor" output. Unsaved changes in those files are saved first, after you agree. |
| Post to ISC |
Editor and Explorer context menu on a JSON file |
Creates the object in ISC, or updates it if it exists. ISC always writes workflows disabled. If the file has "enabled": true, you're asked whether to enable the workflow after posting. storage_parameter can only be updated, not created. |
| Preview post |
Editor and Explorer context menu on a JSON file |
Prepares the object exactly as Post to ISC would, with tokens applied, and opens it in a read-only tab instead of sending it. Nothing is changed in ISC, and the result is never written to disk. |
Supported object types are source, schema, provisioning_policy, correlation_config, attribute_sync_config, account_deletion_config, machine_account_deletion_config, native_change_detection_config, transform, workflow, form, launcher, identity_attribute, identity_profile, lifecycle_state, segment, saved_search and storage_parameter.
Tokens
Some values differ from tenant to tenant or must not be committed, such as connector secrets, client IDs and domain names. Tokens replace those values in your files with placeholders like %%entra-client-secret%%.
You define tokens in a tokens file and point to it from a connection's tokenFile. Name the file so it ends in tokens.json (for example my-tenant.tokens.json) to get validation and completion from the tokens schema:
{
"tokens": [
{
"name": "entra-client-secret",
"value": "<the real secret for this tenant>",
"paths": [
{
"objectType": "source",
"objectName": "Entra",
"jsonPath": "$.connectorAttributes.clientSecret"
}
]
}
]
}
- Reading from ISC (import, update,
get-full): the value at each jsonPath is replaced with %%name%%. objectType is required. objectName is optional, and when it's left out the token applies to every object of that type.
- Writing to ISC (post,
compile-build): each %%name%% is replaced with the value from the target connection's tokens file.
Give each tenant its own tokens file with the same token names. The same configuration files then deploy to any tenant. Keep tokens files out of version control.
Tasks: backups and builds
The extension adds an iscCli task type that runs an ISC CLI operation. Define tasks in .vscode/tasks.json and run them with Terminal → Run Task...:
{
"version": "2.0.0",
"tasks": [
{
"label": "Full backup",
"type": "iscCli",
"operation": "get-full",
"ignoreFile": "backup-ignore.txt",
"includeFile": "backup-allow.txt",
"overWriteAction": "askUser"
},
{
"label": "Compile build",
"type": "iscCli",
"operation": "compile-build",
"connection": "main"
}
]
}
These are the main task properties:
| Property |
Description |
operation |
Required. The operation to run, e.g. get, get-all, get-full, post or compile-build. |
connection |
The connection name. If it isn't set here or in the defaults, you're asked when the task runs. |
objectType, objectName, fileName |
The object to work on, for single-object operations. |
includeFile, ignoreFile |
The allow and ignore lists (see below). Relative paths resolve from the workspace root. |
overWriteAction |
get-full only. Set it to overWrite or askUser to control what happens when a file already exists. |
continueOnError |
Keep going after a failure and report all failures at the end. |
verbose |
Show detailed CLI output. |
VS Code's IntelliSense in tasks.json lists every property. Values that most of your tasks share can go in the javaFileExecutor.iscCli.defaults setting, and each task inherits any property it doesn't set itself:
"javaFileExecutor.iscCli.defaults": {
"connection": "main",
"ignoreFile": "backup-ignore.txt",
"includeFile": "backup-allow.txt"
}
Full backup (get-full)
get-full downloads every supported object from the tenant into config/<type>/, with tokens applied. Two files control what is included:
backup-ignore.txt excludes objects.
backup-allow.txt brings back objects that the ignore list excluded. An allow rule always wins over an ignore rule.
Each rule takes one line:
objectType,objectName # a top-level object, e.g. source,Active Directory
parentType,parentName,childType,childName # a child object, e.g. source,Active Directory,schema,account
* matches any name.
- Names are case-sensitive.
- Lines starting with
# are comments.
Excluding a parent doesn't exclude its children (for example the schemas under a source), so they need rules of their own. A common pattern is to ignore everything (source,*, transform,*, ...) and then allow back only the objects you want. The generated sample files show this pattern.
Build (compile-build)
compile-build is the first step in deploying configuration to a tenant. It doesn't write anything to ISC. It works like this:
- It reads the files in
config/, honoring includeFile and ignoreFile. You can use these to build only part of the configuration.
- It processes the objects in dependency order. For example, a source comes before its schemas, and identity attributes come before the identity profiles that use them.
- For each object, it replaces the tokens with the target connection's values.
- It checks that every dependency is satisfied: either the dependency already exists in the target tenant, or it is earlier in the same build. A source's owner, for example, must exist in the tenant.
- It writes each validated object, fully detokenized, to
build/deploy/.
- If everything passes, it writes
build/deploy/deployment-content.txt, which lists the files in the order they must be deployed.
By default, the build stops at the first unsatisfied dependency. With continueOnError, it reports all of them. deployment-content.txt is written only when there are no failures, so if that file exists, the build is valid. build/deploy/ is cleaned at the start of every build.
build/deploy/ holds real secrets, so keep it out of version control.
Settings
| Setting |
Description |
javaFileExecutor.enabled |
Marks the workspace as an ISCAT project. Set by ISCAT: Initialize Project. |
javaFileExecutor.iscCli.defaults |
Defaults shared by all iscCli tasks. |
javaFileExecutor.jvmArgs |
Extra JVM arguments, e.g. -D options for logging. |
javaFileExecutor.classPathDirs |
For development only. Uses a local ISCAT build from these folders instead of the downloaded library. |
Project structure
<workspace root>/
├── .vscode/
│ ├── settings.json ← javaFileExecutor.enabled and other settings
│ └── tasks.json ← your iscCli tasks
├── connection-properties.json ← ISC connections (keep out of git)
├── backup-allow.txt ← get-full allow list
├── backup-ignore.txt ← get-full ignore list
├── config/<type>/*.json ← ISC objects (from get-full or Import from ISC)
├── build/deploy/ ← compile-build output (keep out of git)
├── lib/ ← ISCAT library, downloaded automatically (keep out of git)
└── *.isctf.json ← your test cases (can be stored in dedicated subdirectory))