Skip to content

Commit e649fb3

Browse files
Merge pull request #333 from salesforcecli/er/uncomment-nut
W-21293412: uncomment test
2 parents 569162b + ff2ebd9 commit e649fb3

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"@inquirer/prompts": "^7.10.1",
1212
"@oclif/core": "^4",
1313
"@oclif/multi-stage-output": "^0.8.29",
14-
"@salesforce/agents": "^0.23.0",
14+
"@salesforce/agents": "^0.23.1",
1515
"@salesforce/core": "^8.25.1",
1616
"@salesforce/kit": "^3.2.4",
1717
"@salesforce/sf-plugins-core": "^12.2.6",

test/nuts/agent.test.create.nut.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import { join, normalize } from 'node:path';
1818
import { existsSync } from 'node:fs';
19-
import * as os from 'node:os';
2019
import { expect } from 'chai';
2120
import { genUniqueString, TestSession } from '@salesforce/cli-plugins-testkit';
2221
import { execCmd } from '@salesforce/cli-plugins-testkit';
@@ -32,11 +31,7 @@ describe('agent test create', function () {
3231
this.timeout(30 * 60 * 1000); // 30 minutes for setup
3332
session = await getTestSession();
3433
});
35-
// this NUT is failing on windows due to an invalid api name, but it seems valid to me, passes on unix
36-
// Error: Unexpected exit code for command: agent test create --api-name Test_Agent_5096f046f91f34e7 --spec "...\agent-generate-template\specs\testSpec.yaml" --target-org test-relsveqne0do@example.com --json. Expected: 0 Actual: 1
37-
// Message: "Name: The AI Evaluation Definition API Name can only contain underscores and alphanumeric characters. It must be unique, begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores.",
38-
// Test_Agent_5096f046f91f34e7 only contains underscores, and alphanumeric characters...
39-
(os.platform() === 'win32' ? it.skip : it)('should create test from test spec file', async function () {
34+
it('should create test from test spec file', async function () {
4035
// Increase timeout to 30 minutes since deployment can take a long time
4136
this.timeout(30 * 60 * 1000);
4237
const testApiName = genUniqueString('Test_Agent_%s');

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,10 +1743,10 @@
17431743
resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8"
17441744
integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==
17451745

1746-
"@salesforce/agents@^0.23.0":
1747-
version "0.23.0"
1748-
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.23.0.tgz#6e2738ca8cc8d1e29e77f91f93ed98c442184368"
1749-
integrity sha512-C2a/ndRk+Vpi8B09e1YbECXbd3N8BRVq1PNW563+I3iNYgls41Rpf2SU2T2Pbl61r6lijI+RXT1YQ4gOrGqi8A==
1746+
"@salesforce/agents@^0.23.1":
1747+
version "0.23.1"
1748+
resolved "https://registry.yarnpkg.com/@salesforce/agents/-/agents-0.23.1.tgz#a570619c92eb9103fc3b0280e8895e1cc41d6812"
1749+
integrity sha512-mQ140OBRbjIpf7/rgpMuMS4s5O0n8bkS16EdDFK6VZ87R66/m5sLb+T2VzSU7d9fS99O8ZC4/yy1X0UcbLDGPg==
17501750
dependencies:
17511751
"@salesforce/core" "^8.25.1"
17521752
"@salesforce/kit" "^3.2.4"

0 commit comments

Comments
 (0)