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

Fix the browser testing issue in rlc #1656

Merged
merged 5 commits into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
65 changes: 49 additions & 16 deletions common/config/rush/pnpm-lock.yaml

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

Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ module.exports = function(config) {
"AZURE_CLIENT_SECRET",
"AZURE_CLIENT_ID",
"AZURE_TENANT_ID",
"SUBSCRIPTION_ID"
"SUBSCRIPTION_ID",
"RECORDINGS_RELATIVE_PATH"
],

// test results reporter to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ module.exports = function(config) {
"AZURE_CLIENT_SECRET",
"AZURE_CLIENT_ID",
"AZURE_TENANT_ID",
"SUBSCRIPTION_ID"
"SUBSCRIPTION_ID",
"RECORDINGS_RELATIVE_PATH"
],

// test results reporter to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ module.exports = function(config) {
"AZURE_CLIENT_SECRET",
"AZURE_CLIENT_ID",
"AZURE_TENANT_ID",
"SUBSCRIPTION_ID"
"SUBSCRIPTION_ID",
"RECORDINGS_RELATIVE_PATH"
],

// test results reporter to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = function (config) {
"AZURE_CLIENT_ID",
"AZURE_TENANT_ID",
"SUBSCRIPTION_ID",
"RECORDINGS_RELATIVE_PATH",
],

// test results reporter to use
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ module.exports = function (config) {
"AZURE_CLIENT_ID",
"AZURE_TENANT_ID",
"SUBSCRIPTION_ID",
"RECORDINGS_RELATIVE_PATH",
],

// test results reporter to use
Expand Down
2 changes: 1 addition & 1 deletion packages/cadl-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"ts-node": "^10.7.0",
"typescript": "^4.6.3",
"prettier": "~2.7.1",
"@azure-tools/cadl-ranch-specs": "~0.4.1",
"@azure-tools/cadl-ranch-specs": "~0.4.3",
"@cadl-lang/versioning": "0.9.0",
"@azure-tools/cadl-ranch-expect": "~0.1.11",
"@azure-tools/cadl-ranch": "~0.2.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/cadl-typescript/test/commands/cadl-ranch-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ export interface CadlRanchConfig {

export const cadls: CadlRanchConfig[] = [
{
outputPath: "array/itemTypes",
inputPath: "array/item-types"
outputPath: "arrays/itemTypes",
inputPath: "arrays/item-types"
},
{
outputPath: "authentication/apiKey",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import ArrayItemTypesClientFactory, {
ArrayItemTypesClient
} from "./generated/array/itemTypes/src/index.js";
} from "./generated/arrays/itemTypes/src/index.js";
import { assert } from "chai";
import { matrix } from "../util/matrix.js";

Expand Down Expand Up @@ -61,7 +61,7 @@ describe("Array Item-Types Client", () => {
it(`should get a ${params.type} value`, async () => {
try {
const result = await client
.path(`/array/item-types/${params.type}` as any)
.path(`/arrays/item-types/${params.type}` as any)
.get();
assert.strictEqual(result.status, "200");
console.log("debug", result.body, params.defaultValue);
Expand All @@ -80,7 +80,7 @@ describe("Array Item-Types Client", () => {
property = params.defaultValue;
}
const result = await client
.path(`/array/item-types/${params.type}` as any)
.path(`/arrays/item-types/${params.type}` as any)
.put({
body: property
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,74 +28,74 @@ export default function createClient(
...client,
int32Value: {
get: (options) => {
return client.path("/array/item-types/int32").get(options);
return client.path("/arrays/item-types/int32").get(options);
},
put: (options) => {
return client.path("/array/item-types/int32").put(options);
return client.path("/arrays/item-types/int32").put(options);
},
},
int64Value: {
get: (options) => {
return client.path("/array/item-types/int64").get(options);
return client.path("/arrays/item-types/int64").get(options);
},
put: (options) => {
return client.path("/array/item-types/int64").put(options);
return client.path("/arrays/item-types/int64").put(options);
},
},
booleanValue: {
get: (options) => {
return client.path("/array/item-types/boolean").get(options);
return client.path("/arrays/item-types/boolean").get(options);
},
put: (options) => {
return client.path("/array/item-types/boolean").put(options);
return client.path("/arrays/item-types/boolean").put(options);
},
},
stringValue: {
get: (options) => {
return client.path("/array/item-types/string").get(options);
return client.path("/arrays/item-types/string").get(options);
},
put: (options) => {
return client.path("/array/item-types/string").put(options);
return client.path("/arrays/item-types/string").put(options);
},
},
float32Value: {
get: (options) => {
return client.path("/array/item-types/float32").get(options);
return client.path("/arrays/item-types/float32").get(options);
},
put: (options) => {
return client.path("/array/item-types/float32").put(options);
return client.path("/arrays/item-types/float32").put(options);
},
},
datetimeValue: {
get: (options) => {
return client.path("/array/item-types/datetime").get(options);
return client.path("/arrays/item-types/datetime").get(options);
},
put: (options) => {
return client.path("/array/item-types/datetime").put(options);
return client.path("/arrays/item-types/datetime").put(options);
},
},
durationValue: {
get: (options) => {
return client.path("/array/item-types/duration").get(options);
return client.path("/arrays/item-types/duration").get(options);
},
put: (options) => {
return client.path("/array/item-types/duration").put(options);
return client.path("/arrays/item-types/duration").put(options);
},
},
unknownValue: {
get: (options) => {
return client.path("/array/item-types/unknown").get(options);
return client.path("/arrays/item-types/unknown").get(options);
},
put: (options) => {
return client.path("/array/item-types/unknown").put(options);
return client.path("/arrays/item-types/unknown").put(options);
},
},
modelValue: {
get: (options) => {
return client.path("/array/item-types/model").get(options);
return client.path("/arrays/item-types/model").get(options);
},
put: (options) => {
return client.path("/array/item-types/model").put(options);
return client.path("/arrays/item-types/model").put(options);
},
},
};
Expand Down
Loading