first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
import type { INodeType, INodeTypeDescription } from 'n8n-workflow';
|
||||
import { NodeConnectionTypes } from 'n8n-workflow';
|
||||
|
||||
import { actionFields, actionOperations } from './descriptions/ActionDescription';
|
||||
import { instanceFields, instanceOperations } from './descriptions/InstanceDescription';
|
||||
import { projectFields, projectOperations } from './descriptions/ProjectDescription';
|
||||
import { runFields, runOperations } from './descriptions/RunDescription';
|
||||
import { signatureFields, signatureOperations } from './descriptions/SignatureDescription';
|
||||
import { specFileFields, specFileOperations } from './descriptions/SpecFileDescription';
|
||||
import { testFields, testOperations } from './descriptions/TestDescription';
|
||||
import { testResultFields, testResultOperations } from './descriptions/TestResultDescription';
|
||||
import { listSearch } from './methods';
|
||||
|
||||
export class Currents implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'Currents',
|
||||
name: 'currents',
|
||||
icon: 'file:currents.svg',
|
||||
group: ['transform'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Interact with the Currents API for test orchestration and analytics',
|
||||
defaults: {
|
||||
name: 'Currents',
|
||||
},
|
||||
usableAsTool: true,
|
||||
inputs: [NodeConnectionTypes.Main],
|
||||
outputs: [NodeConnectionTypes.Main],
|
||||
credentials: [
|
||||
{
|
||||
name: 'currentsApi',
|
||||
required: true,
|
||||
},
|
||||
],
|
||||
requestDefaults: {
|
||||
baseURL: 'https://api.currents.dev/v1',
|
||||
headers: {
|
||||
Accept: 'application/json',
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
arrayFormat: 'brackets',
|
||||
},
|
||||
properties: [
|
||||
{
|
||||
displayName: 'Resource',
|
||||
name: 'resource',
|
||||
type: 'options',
|
||||
noDataExpression: true,
|
||||
options: [
|
||||
{
|
||||
name: 'Action',
|
||||
value: 'action',
|
||||
description: 'Test action rules (skip, quarantine, tag)',
|
||||
},
|
||||
{
|
||||
name: 'Instance',
|
||||
value: 'instance',
|
||||
description: 'Spec file execution instance',
|
||||
},
|
||||
{
|
||||
name: 'Project',
|
||||
value: 'project',
|
||||
description: 'Test project',
|
||||
},
|
||||
{
|
||||
name: 'Run',
|
||||
value: 'run',
|
||||
description: 'Test run',
|
||||
},
|
||||
{
|
||||
name: 'Signature',
|
||||
value: 'signature',
|
||||
description: 'Generate unique test signatures',
|
||||
},
|
||||
{
|
||||
name: 'Spec File',
|
||||
value: 'specFile',
|
||||
description: 'Spec file performance metrics',
|
||||
},
|
||||
{
|
||||
name: 'Test',
|
||||
value: 'test',
|
||||
description: 'Individual test performance metrics',
|
||||
},
|
||||
{
|
||||
name: 'Test Result',
|
||||
value: 'testResult',
|
||||
description: 'Historical test execution results',
|
||||
},
|
||||
],
|
||||
default: 'run',
|
||||
},
|
||||
|
||||
// Action
|
||||
...actionOperations,
|
||||
...actionFields,
|
||||
|
||||
// Instance
|
||||
...instanceOperations,
|
||||
...instanceFields,
|
||||
|
||||
// Project
|
||||
...projectOperations,
|
||||
...projectFields,
|
||||
|
||||
// Run
|
||||
...runOperations,
|
||||
...runFields,
|
||||
|
||||
// Signature
|
||||
...signatureOperations,
|
||||
...signatureFields,
|
||||
|
||||
// Spec File
|
||||
...specFileOperations,
|
||||
...specFileFields,
|
||||
|
||||
// Test
|
||||
...testOperations,
|
||||
...testFields,
|
||||
|
||||
// Test Result
|
||||
...testResultOperations,
|
||||
...testResultFields,
|
||||
],
|
||||
};
|
||||
|
||||
methods = {
|
||||
listSearch,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user