Plaza 365
Plaza 365

No results found for your search

RegisterLog in

4

Visit article

#apitesting

#azuredevops

#basicauthentication

#dockercontainer

#pipeline

Dynamics 365 Business Central

Category

Jun 3, 2022

Published date

Text

Article Type


AI Summary

  • The article titled "Time for another addendum to my book: simplifying API testing" discusses the process of testing incoming calls to APIs in Microsoft Business Central.
  • The author follows Microsoft's approach of setting up the Business Central environment to use Windows authentication and removing user-related data from the database before running tests.
  • However, the drawback of this approach is that it requires the NST (Navision Server Tier) to be set up with Windows authentication, which can be challenging when running tests in a pipeline outside of the user's domain.
  • A suggestion by Arend-Jan Kauffmann is to use basic authentication in a docker container for testing APIs. This involves adding an extension to introduce a table in Business Central to store the password and designing API tests to utilize this password.
  • The author recorded this suggestion as an issue on GitHub and Arthur van de Vondervoort added to it, proposing the creation of a small extension with an event subscriber to add BasicAuthentication to the API call.
  • Eventually, Arthur was able to successfully test APIs using basic authentication and shared the details with the author.
  • The author adopted the suggested codeunits, created a new branch, and set up a new test suite and pipelines to run the tests.
  • The challenge was to have both the original tests running with test isolation and the added API tests without isolation, and the author provides additional information on this in the GitHub issue and .yml file.

Registered users can view the full text for FREE!

Sign In Now!

Cookies Consent

We use cookies to enhance your browsing experience, serve personalized ads or content, and analyze our traffic. By clicking "Accept All", you consent to our use of cookies.