Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uprade cadl ranch version to v0.16.1 #2907

Merged
merged 4 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
122 changes: 27 additions & 95 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/typespec-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@
"license": "MIT",
"devDependencies": {
"@azure-rest/core-client": "^2.3.1",
"@azure-tools/cadl-ranch-expect": "^0.15.5",
"@azure-tools/cadl-ranch-specs": "^0.38.0",
"@azure-tools/cadl-ranch": "^0.15.0",
"@azure-tools/cadl-ranch-expect": "^0.15.6",
"@azure-tools/cadl-ranch-specs": "^0.39.2",
"@azure-tools/cadl-ranch": "^0.16.1",
"@azure-tools/cadl-ranch-api": "^0.5.0",
"@azure-tools/typespec-autorest": ">=0.48.0 <1.0.0",
"@azure-tools/typespec-azure-core": ">=0.48.0 <1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/typespec-ts/test/commands/cadl-ranch-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ export const rlcTsps = [
outputPath: "versioning/madeOptional",
inputPath: "versioning/madeOptional"
},
{
outputPath: "versioning/removed",
inputPath: "versioning/removed"
},
// {
v-jiaodi marked this conversation as resolved.
Show resolved Hide resolved
// outputPath: "versioning/removed",
// inputPath: "versioning/removed"
// },
MaryGao marked this conversation as resolved.
Show resolved Hide resolved
{
outputPath: "versioning/renamedFrom",
inputPath: "versioning/renamedFrom"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe("Azure Arm Resources Rest Client", () => {
)
.patch({
body: {
location: "eastus2",
location: "eastus",
properties: {
description: "valid2"
}
Expand All @@ -146,7 +146,7 @@ describe("Azure Arm Resources Rest Client", () => {
assert.strictEqual(result.body.id, validSingletonResource.id);
assert.strictEqual(result.body.name, validSingletonResource.name);
assert.strictEqual(result.body.type, validSingletonResource.type);
assert.strictEqual(result.body.location, "eastus2");
assert.strictEqual(result.body.location, "eastus");
MaryGao marked this conversation as resolved.
Show resolved Hide resolved
assert.strictEqual(result.body.properties?.description, "valid2");
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/publicOperation/noDecoratorInPublic"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
MaryGao marked this conversation as resolved.
Show resolved Hide resolved
} catch (err) {
assert.fail(err as string);
}
Expand All @@ -35,9 +35,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/publicOperation/publicDecoratorInPublic"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
} catch (err) {
assert.fail(err as string);
}
Expand All @@ -49,9 +49,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/internalOperation/noDecoratorInInternal"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
} catch (err) {
assert.fail(err as string);
}
Expand All @@ -63,9 +63,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/internalOperation/internalDecoratorInInternal"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
} catch (err) {
assert.fail(err as string);
}
Expand All @@ -77,9 +77,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/internalOperation/publicDecoratorInInternal"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
} catch (err) {
assert.fail(err as string);
}
Expand All @@ -91,9 +91,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/sharedModelInOperation/public"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
} catch (err) {
assert.fail(err as string);
}
Expand All @@ -105,9 +105,9 @@ describe("Access Client", () => {
.path(
"/azure/client-generator-core/access/sharedModelInOperation/internal"
)
.get({ queryParameters: { name: "myname" } });
.get({ queryParameters: { name: "sample" } });
assert.strictEqual(result.status, "200");
assert.strictEqual(result.body.name, "myname");
assert.strictEqual(result.body.name, "sample");
} catch (err) {
assert.fail(err as string);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe("Azure Arm Resources Rest Client", () => {

it("should update singleton tracked resources", async () => {
const result = await client.singleton.update("test-rg", {
location: "eastus2",
location: "eastus",
properties: {
description: "valid2"
}
Expand All @@ -87,7 +87,7 @@ describe("Azure Arm Resources Rest Client", () => {
assert.strictEqual(result.id, validSingletonResource.id);
assert.strictEqual(result.name, validSingletonResource.name);
assert.strictEqual(result.type, validSingletonResource.type);
assert.strictEqual(result.location, "eastus2");
assert.strictEqual(result.location, "eastus");
assert.strictEqual(result.properties?.description, "valid2");
});

Expand Down
Loading
Loading