Skip to content

Add bot service sdk to support microsoft.botservice#2328

Merged
lmazuel merged 15 commits intoAzure:masterfrom
swagatmishra2007:master
Apr 3, 2018
Merged

Add bot service sdk to support microsoft.botservice#2328
lmazuel merged 15 commits intoAzure:masterfrom
swagatmishra2007:master

Conversation

@swagatmishra2007
Copy link
Contributor

the swagger is at - https://github.com/Azure/azure-rest-api-specs/tree/master/specification/botservice/resource-manager
i have added tests for most of the channels. only directline, msteams and skype are disabled due to the main service having a bug, which prevents me from running the tests live.
i will add those in soon, but i need to merge in the python sdk first, as my cli sdk PR depends on this.

@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

1 similar comment
@azuresdkci
Copy link
Contributor

Can one of the admins verify this patch?

@@ -0,0 +1,37 @@
{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove this file from your PR

channel_properties = channel
)

# @ResourceGroupPreparer(name_prefix='pythonsdkbot')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the test is currently failing in live because of issues with skype and teams channel services. i plan to uncomment them once those services are fixed and i can run the test . Or would you rather have this removed and added in a separate pr?

@@ -0,0 +1,178 @@
from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer
from azure.mgmt.botservice import AzureBotService
from azure.mgmt.botservice.models import Bot, BotProperties,sku,BotChannel,ErrorException
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You import twice the same thing

def tearDown(self):
super(BotServiceChannelsTestCase, self).tearDown()
self.client.bots.delete(
resource_group_name = self.resource_group_name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you don't need that, that's the role of the preparer

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i dont have a bot preparer right now. i will add one in my next review when i enable the skype, teams tests.

@codecov-io
Copy link

Codecov Report

Merging #2328 into master will increase coverage by 0.09%.
The diff coverage is 71.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2328      +/-   ##
==========================================
+ Coverage   52.81%   52.91%   +0.09%     
==========================================
  Files        5670     5719      +49     
  Lines      134499   135213     +714     
==========================================
+ Hits        71034    71542     +508     
- Misses      63465    63671     +206
Impacted Files Coverage Δ
...ervice/azure/mgmt/botservice/models/bot_channel.py 100% <100%> (ø)
...ervice/azure/mgmt/botservice/models/sms_channel.py 100% <100%> (ø)
...e/mgmt/botservice/models/sms_channel_properties.py 100% <100%> (ø)
...e-mgmt-botservice/azure/mgmt/botservice/version.py 100% <100%> (ø)
...t/botservice/models/telegram_channel_properties.py 100% <100%> (ø)
.../mgmt/botservice/models/azure_bot_service_enums.py 100% <100%> (ø)
...t-botservice/azure/mgmt/botservice/models/error.py 100% <100%> (ø)
...gmt-botservice/azure/mgmt/botservice/models/bot.py 100% <100%> (ø)
...e/azure/mgmt/botservice/models/telegram_channel.py 100% <100%> (ø)
azure-mgmt-botservice/azure/__init__.py 100% <100%> (ø)
... and 88 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9946c03...2ec9c24. Read the comment docs.

@lmazuel lmazuel merged commit e49cf5e into Azure:master Apr 3, 2018
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