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: enable TeamsInfo methods to work with CloudAdapter #3830

Merged
merged 5 commits into from
Jun 30, 2021

Conversation

mdrichardson
Copy link
Contributor

#minor

Description

Many of the TeamsInfo methods fail with "This method requires a connector client." when using CloudAdapter. This is because most of them have a check for adapter.createConnectorClient(), which doesn't exist in CloudAdapter.

Specific Changes

Align JS TeamsInfo with .NET by having the adapter get pulled from the TurnState.

Testing

This also required a lot of testing changes since the adapter didn't exist on the TurnState in the tests. The JS tests now manually add the adapter to the TurnState, as also done in .NET.

@mdrichardson mdrichardson requested a review from a team as a code owner June 30, 2021 15:10
@coveralls
Copy link

coveralls commented Jun 30, 2021

Pull Request Test Coverage Report for Build 987633141

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.0003%) to 84.332%

Totals Coverage Status
Change from base Build 987530002: 0.0003%
Covered Lines: 19629
Relevant Lines: 22078

💛 - Coveralls

@mdrichardson mdrichardson merged commit a0aeee0 into microsoft:main Jun 30, 2021
@mdrichardson mdrichardson deleted the teamsConnectorClientFix branch June 30, 2021 20:23
joshgummersall pushed a commit that referenced this pull request Jun 30, 2021
* port: orchestrator package changes (#3824)

Fixes #3782

* chore: tests for cloud adapter (#3833)

* chore: tests for cloud adapter base

* chore: tests for cloud adapter

* fix: assert error messages

* fix: enable TeamsInfo methods to work with CloudAdapter (#3830)

* fix: trigger github workflows on 4.14

Co-authored-by: Michael Richardson <40401643+mdrichardson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants