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

[Batch] update tests #11836

Merged
merged 4 commits into from
Oct 15, 2020
Merged

[Batch] update tests #11836

merged 4 commits into from
Oct 15, 2020

Conversation

deyaaeldeen
Copy link
Member

@deyaaeldeen deyaaeldeen commented Oct 15, 2020

Fix compile errors in the batch test suite after regenerating using the latest swagger. The test suite runs all green now.

sdk/batch/batch/sample.env Outdated Show resolved Hide resolved
sdk/batch/batch/sample.env Outdated Show resolved Hide resolved
sdk/batch/batch/sample.env Outdated Show resolved Hide resolved
sdk/batch/batch/test/batchClient.spec.ts Outdated Show resolved Hide resolved
result = await client.pool.get("nodesdktestpool1");
metadata = result.metadata![0];
if (result.allocationState === "resizing") {
await wait(10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

You should not wait. You should probably poll the expected state and then timeout if it doesn't reach it in the specified time.

Copy link
Member Author

Choose a reason for hiding this comment

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

@bgklein I missed your comment somehow. @xingwu1 did you consider updating the swagger to provide LROs instead? I think that would make calling the APIs much cleaner.

@deyaaeldeen deyaaeldeen merged commit 97458f0 into Azure:master Oct 15, 2020
@deyaaeldeen deyaaeldeen deleted the batch-tests branch October 15, 2020 18:17
@ramya-rao-a
Copy link
Contributor

@xingwu1 Can you do a run of the tests for this package and confirm that we are good to go? After that we can look into releasing this package.

openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-js that referenced this pull request Dec 8, 2020
Add new DevOps API swagger (Azure#11836)

* Add new DevOps API swagger

* Fix SDK error

* updating swagger version 2020-08-01-preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants