GithubHelp home page GithubHelp logo

isabella232 / azure-signalr-test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from azure/azure-signalr-test

0.0 0.0 0.0 183 KB

Azure SignalR Service E2E Tests

License: MIT License

Shell 2.81% C# 52.25% PowerShell 0.52% TypeScript 41.97% Dockerfile 2.46%

azure-signalr-test's Introduction

Azure SignalR Test

The project to provide automation E2E test on SignalR sdk and service runtime.

How to build and run

First check the SDK version needed. Each SDKVerison will build a separate docker image and the tag is the sdk version.

declare -a SDKVersion=("1.5.0" "1.5.1")

Run tests for Server SDK

./build-sdk-image.sh

Then you can run the test with Azure SignalR Service

docker run -e Azure__SignalR__ConnectionString="<your connection string>" signalr-test:<sdk version>

Run tests with app server AAD Auth

This test case is for a specific scenario, in which our customer used AAD Auth to authenticate their incoming requests.

Our SDK will simply pass most of the claims in the given JWT Token (for accessing their app server) to the newly generated JWT Token (for connecting to our service).

However, there are still some internal claims that will not be passed.

This test is to check if any of these unpassed claims will cause problems while connecting to ASRS.

docker run -e Azure__SignalR__ConnectionString="<your connection string>" -e signalr-test:<sdk version> -e clientId="<clientId>" -e clientSecret="<clientSecret>" -e tenantId="<tenantId>" run-server-aad.sh

The clientId, clientSecret, tenantId here could be any valid AAD Application.

Run tests for Management SDK

./build-management-image.sh

Then you can run the test with Azure SignalR Service

docker run -e Azure__SignalR__ConnectionString="<your connection string>" signalr-management-sdk-test:<sdk version>

How to upload images to private container registry

az login // use microsoft account
az acr login -n genevadev

Then docker push <image>

Test Coverage

  • Connect / Echo / Broadcast / AllExcept
  • Group join / leave
  • Send Group / Groups / Group Except / OthersInGroup
  • Send User / Users
  • JWT Auth
  • Generic hub / 128 character length hub name support

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

azure-signalr-test's People

Contributors

archangelsdy avatar chenkennt avatar juniwang avatar lgdoor avatar microsoftopensource avatar msftgits avatar terencefan avatar vwxyzh avatar xscript avatar zackliu avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.