Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4e361c9
Initial API changes for Node JS SDK for calling server
ravithanneeru Sep 22, 2021
6975f3a
First test case
cochi2 Sep 24, 2021
39bc546
Adding live testing?
cochi2 Sep 27, 2021
faa26b6
ServerCall Recording test
cochi2 Sep 27, 2021
8ada00e
Adding recording to the live testing
cochi2 Sep 28, 2021
85c70c1
Recording live testing completed
cochi2 Sep 29, 2021
09bc929
Refactored Live Testing
cochi2 Sep 29, 2021
11dda37
Download part 1
cochi2 Oct 1, 2021
6e4546e
First download test working!
cochi2 Oct 1, 2021
4274699
First download test working!
cochi2 Oct 1, 2021
b86a918
Merge branch 'fmorales/recording_apis' of https://github.com/cochi2/a…
cochi2 Oct 1, 2021
2caa07b
First test complete complete
cochi2 Oct 1, 2021
fb2bd8a
Adding new test for download
cochi2 Oct 2, 2021
d4f3ec6
Fixing tests
cochi2 Oct 4, 2021
1177fe3
Call recording APIs initial check in
ravithanneeru Oct 5, 2021
1eaf4e5
Fixes based on E2E validation from samples and API document update
ravithanneeru Oct 6, 2021
e045ccd
Merge remote-tracking branch 'ravi/v-ratann/CallAutomationAPIs-100520…
cochi2 Oct 6, 2021
681b534
Misc
cochi2 Oct 7, 2021
79f71c2
Added startRecording attributes
cochi2 Oct 11, 2021
c1ff60a
CHanging test to be a group call
cochi2 Oct 11, 2021
a562399
Live test fixed
cochi2 Oct 11, 2021
896787c
Finalized testing
cochi2 Oct 12, 2021
5a1a98e
Adding redirection test case
cochi2 Oct 12, 2021
d9666b3
Fixing communication-common lint errors
cochi2 Oct 12, 2021
5d03808
Fixing ContentDownloader lint issues
cochi2 Oct 12, 2021
c599aa9
Lint autofix
cochi2 Oct 12, 2021
ad17b48
Remove getCall method
cochi2 Oct 12, 2021
0fc8a65
Fixing CallingServerClient lint issues
cochi2 Oct 12, 2021
926cd46
Fixing models lint issues
cochi2 Oct 12, 2021
b1165b5
Fix RetriableReadableStream lint issues
cochi2 Oct 12, 2021
ed01e94
Fixing specs lint issues
cochi2 Oct 12, 2021
7fe90a8
Fixing testUtils lint issues
cochi2 Oct 12, 2021
9460bc8
Ran rushx format
cochi2 Oct 12, 2021
2e82888
Run rushx format in communication-common
cochi2 Oct 12, 2021
36ccc09
Adding Changelog file
cochi2 Oct 12, 2021
4d7862a
Running api-extractor
cochi2 Oct 13, 2021
c6383b3
Merge remote-tracking branch 'upstream/feature/communication-CallingS…
cochi2 Oct 13, 2021
df4c3ff
Formatting
cochi2 Oct 13, 2021
34aca13
Adding review folder
cochi2 Oct 13, 2021
fd1fe34
Api extractor after merge
cochi2 Oct 13, 2021
1a8d8a1
Rebuilding
cochi2 Oct 13, 2021
7ac492a
Attempting to make readable to work
cochi2 Oct 13, 2021
436f6d3
Fixing Readable issue
cochi2 Oct 14, 2021
67b8c6a
Fixed one browser test
cochi2 Oct 14, 2021
5ab9080
Removing things from karma
cochi2 Oct 14, 2021
fcacf39
Merge remote-tracking branch 'upstream/feature/communication-CallingS…
cochi2 Oct 14, 2021
8f5e29a
Browser test #1
cochi2 Oct 14, 2021
c485a39
Fixed testing
cochi2 Oct 15, 2021
3bbc8bc
Fixing format
cochi2 Oct 15, 2021
a47f63f
Removing comments
cochi2 Oct 15, 2021
112c108
Running API_EXTRACTOR
cochi2 Oct 15, 2021
22cae77
Changing api file
cochi2 Oct 15, 2021
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
1,177 changes: 586 additions & 591 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion sdk/communication/communication-callingserver/.nycrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
{
"include": ["dist-esm/src/**/*.js"],
"exclude": ["**/*.d.ts", "dist-esm/src/generated/*"],
"exclude": [
"**/*.d.ts",
"dist-esm/src/generated/*",
"dist-esm/src/RepeatableContentDownloadResponse.browser.js"
],
"reporter": ["text-summary", "html", "cobertura"],
"exclude-after-remap": false,
"sourceMap": true,
Expand Down
9 changes: 9 additions & 0 deletions sdk/communication/communication-callingserver/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Release History
## 1.0.0-beta.1 (2021-12-15)

The first preview of the Azure Communication CallingServer Client has the following features:

- create/get/update/delete a call
- add participants
- start/stop/pause/resume a recording of the call
- download the recording content
137 changes: 137 additions & 0 deletions sdk/communication/communication-callingserver/karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
// https://github.com/karma-runner/karma-chrome-launcher
process.env.CHROME_BIN = require("puppeteer").executablePath();
require("dotenv").config();
const {
jsonRecordingFilterFunction,
isPlaybackMode,
isSoftRecordMode,
isRecordMode
} = require("@azure-tools/test-recorder");

module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: "./",

// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ["mocha"],

plugins: [
"karma-mocha",
"karma-mocha-reporter",
"karma-chrome-launcher",
"karma-edge-launcher",
"karma-firefox-launcher",
"karma-ie-launcher",
"karma-env-preprocessor",
"karma-coverage",
"karma-sourcemap-loader",
"karma-junit-reporter",
"karma-json-to-file-reporter",
"karma-json-preprocessor"
],

// list of files / patterns to load in the browser
files: ["dist-test/index.browser.js"].concat(
isPlaybackMode() || isSoftRecordMode() ? ["recordings/browsers/**/*.json"] : []
),

// list of files / patterns to exclude
exclude: [],

// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
"**/*.js": ["sourcemap", "env"],
"recordings/browsers/**/*.json": ["json"]
// IMPORTANT: COMMENT following line if you want to debug in your browsers!!
// Preprocess source file to calculate code coverage, however this will make source file unreadable
//"dist-test/index.browser.js": ["coverage"]
},

// inject following environment values into browser testing with window.__env__
// environment values MUST be exported or set with same console running "karma start"
// https://www.npmjs.com/package/karma-env-preprocessor
envPreprocessor: ["TEST_MODE", "COMMUNICATION_LIVETEST_DYNAMIC_CONNECTION_STRING", "BASE_URL"],

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ["mocha", "coverage", "junit", "json-to-file"],

coverageReporter: {
// specify a common output directory
dir: "coverage-browser/",
reporters: [
{ type: "json", subdir: ".", file: "coverage.json" },
{ type: "lcovonly", subdir: ".", file: "lcov.info" },
{ type: "html", subdir: "html" },
{ type: "cobertura", subdir: ".", file: "cobertura-coverage.xml" }
]
},

junitReporter: {
outputDir: "", // results will be saved as $outputDir/$browserName.xml
outputFile: "test-results.browser.xml", // if included, results will be saved as $outputDir/$browserName/$outputFile
suite: "", // suite will become the package name attribute in xml testsuite element
useBrowserName: false, // add browser name to report and classes names
nameFormatter: undefined, // function (browser, result) to customize the name attribute in xml testcase element
classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element
properties: {} // key value pair of properties to add to the <properties> section of the report
},

jsonToFileReporter: {
filter: jsonRecordingFilterFunction,
outputPath: "."
},

// web server port
port: 9876,

// enable / disable colors in the output (reporters and logs)
colors: true,

// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
// 'ChromeHeadless', 'Chrome', 'Firefox', 'Edge', 'IE'
browsers: ["HeadlessChrome"],

customLaunchers: {
HeadlessChrome: {
base: "ChromeHeadless",
flags: ["--no-sandbox", "--disable-web-security"]
}
},

// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: true,

// Concurrency level
// how many browser should be started simultaneous
concurrency: 1,

browserNoActivityTimeout: 600000,
browserDisconnectTimeout: 10000,
browserDisconnectTolerance: 3,
browserConsoleLogOptions: {
terminal: !isRecordMode()
},

client: {
mocha: {
// change Karma's debug.html to the mocha web reporter
reporter: "html",
timeout: "600000"
}
}
});
};
12 changes: 9 additions & 3 deletions sdk/communication/communication-callingserver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"module": "dist-esm/src/index.js",
"browser": {
"stream": "./node_modules/stream-browserify/index.js",
"./dist-esm/src/credentials/cryptoUtils.js": "./dist-esm/src/credentials/cryptoUtils.browser.js"
"./dist-esm/src/credentials/cryptoUtils.js": "./dist-esm/src/credentials/cryptoUtils.browser.js",
"./dist-esm/src/RepeatableContentDownloadResponse.js": "./dist-esm/src/RepeatableContentDownloadResponse.browser.js",
"./dist-esm/test/public/utils/index.js": "./dist-esm/test/public/utils/index.browser.js"
},
"types": "types/communication-callingserver.d.ts",
"scripts": {
Expand Down Expand Up @@ -72,7 +74,8 @@
"@azure/core-tracing": "1.0.0-preview.13",
"@azure/logger": "^1.0.0",
"events": "^3.0.0",
"tslib": "^2.2.0"
"tslib": "^2.2.0",
"uuid": "^8.3.0"
},
"devDependencies": {
"@azure/dev-tool": "^1.0.0",
Expand All @@ -90,7 +93,9 @@
"@types/chai": "^4.1.6",
"@types/mocha": "^7.0.2",
"@types/node": "^12.0.0",
"@types/node-fetch": "^2.5.0",
"@types/sinon": "^9.0.4",
"@types/uuid": "^8.0.0",
"assert": "^1.4.1",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -121,7 +126,8 @@
"sinon": "^9.0.2",
"typescript": "~4.2.0",
"util": "^0.12.1",
"typedoc": "0.15.2"
"typedoc": "0.15.2",
"tslib": "^2.2.0"
},
"//metadata": {
"constantPaths": [
Expand Down

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

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

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

Loading