conquering the testing challenges of serverless
play

Conquering the Testing Challenges of Serverless Applications - PDF document

W2 DevOps & The Cloud Wednesday, October 2nd, 2019 11:30 AM Conquering the Testing Challenges of Serverless Applications Presented by: Peter Varhol


  1. W2 ¡ DevOps ¡& ¡The ¡Cloud ¡ Wednesday, ¡October ¡2nd, ¡2019 ¡11:30 ¡AM ¡ Conquering ¡the ¡Testing ¡Challenges ¡of ¡ Serverless ¡Applications ¡ Presented ¡by: ¡ Peter ¡Varhol ¡ & Gerie Owen Technology ¡Strategy ¡Research ¡ Brought ¡to ¡you ¡by: ¡ ¡ 888 -­‑-­‑-­‑ 268 -­‑-­‑-­‑ 8770 ¡ ·√·√ ¡904 -­‑-­‑-­‑ 278 -­‑-­‑-­‑ 0524 ¡-­‑ ¡info@techwell.com ¡-­‑ ¡http://www.starwest.techwell.com/ ¡

  2. Peter Varhol Peter ¡Varhol ¡is ¡a ¡software ¡strategist ¡and ¡evangelist ¡who ¡closely ¡observes ¡the ¡testing ¡ industry ¡and ¡uses ¡his ¡knowledge ¡and ¡experience ¡to ¡identify ¡new ¡technologies ¡and ¡ help ¡companies ¡respond ¡to ¡those ¡trends. ¡His ¡diverse ¡technical ¡background ¡enables ¡ him ¡to ¡seamlessly ¡integrate ¡new ¡technologies ¡into ¡his ¡practices ¡and ¡provides ¡him ¡ with ¡a ¡unique ¡vision ¡of ¡how ¡to ¡adapt ¡and ¡succeed. ¡His ¡areas ¡of ¡research ¡and ¡practice ¡ include ¡team ¡communication, ¡machine ¡learning, ¡DevOps, ¡testing ¡and ¡test ¡ automation, ¡and ¡development ¡tools. ¡His ¡efforts ¡aim ¡to ¡use ¡the ¡latest ¡and ¡best ¡ technologies ¡to ¡address ¡real-­‑world ¡problems. ¡Peter ¡speaks ¡frequently ¡at ¡ conferences, ¡local ¡meetups, ¡and ¡webinars ¡on ¡software ¡development, ¡testing, ¡ machine ¡learning, ¡and ¡DevOps ¡topics. ¡Peter ¡blogs ¡at ¡Cutting ¡Edge ¡Computing, ¡and ¡ can ¡be ¡found ¡on ¡Twitter. ¡He ¡has ¡master's ¡degrees ¡in ¡computer ¡science, ¡applied ¡ mathematics, ¡and ¡psychology, ¡along ¡with ¡doctoral ¡work ¡in ¡information ¡systems. ¡ Gerie Owen Gerie Owen is Testing Strategist and Evangelist at Technology Strategy Research. She is a Certified Scrum Master, Conference Presenter and Author on technology and testing topics. She enjoys mentoring new QA Leads and brings a cohesive team approach to testing. Gerie is the author of many articles on technology including Agile and DevOps topics. She recently developed a curriculum for DevOps 101 training. Gerie chooses her presentation topics based on her experiences in technology, what she has learned from them and what she would like to do to improve them. Gerie can be reached through her website, her blog, Testing in the Trenches, @GerieOwen on Twitter, and on LinkedIn.

  3. Tes$ng ¡Serverless ¡ Applica$ons ¡ Peter ¡Varhol ¡and ¡Gerie ¡Owen ¡

  4. About ¡me • Interna$onal ¡speaker ¡and ¡writer • Graduate ¡degrees ¡in ¡Math, ¡CS, ¡Psychology • Technology ¡communicator • Former ¡university ¡professor, ¡tech ¡journalist • Cat ¡owner ¡and ¡distance ¡runner • peter@petervarhol.com

  5. Gerie Owen ¡ • QA ¡Evangelist, ¡test ¡manager • Subject ¡maIer ¡expert ¡on ¡tes$ng ¡for ¡ TechTarget’s ¡SearchSoLwareQuality.com • Interna$onal ¡and ¡domes$c ¡conference ¡ presenter ¡ • Marathon ¡runner ¡& ¡running ¡coach ¡ gowen@qualitestgroup.com ¡ 3 ¡

  6. Agenda • What ¡the ¡heck ¡is ¡serverless? ¡ • Why ¡serverless ¡means ¡DevOps ¡ • What ¡do ¡we ¡test? ¡ • ShiB ¡leB ¡and ¡shiB ¡right ¡ • TesDng ¡strategies ¡for ¡a ¡new ¡architecture ¡ • Summary ¡

  7. What ¡the ¡Heck ¡is ¡Serverless? • A ¡cloud-­‑compuDng ¡execuDon ¡model ¡ • You ¡supply ¡the ¡code ¡ • Generally ¡back-­‑end ¡processing ¡ • Prompted ¡by ¡an ¡event ¡from ¡the ¡UI ¡or ¡other ¡funcDon ¡ • The ¡runDme ¡manages ¡resources ¡ • OBen ¡event-­‑driven ¡ • It ¡doesn’t ¡have ¡to ¡be ¡a ¡full ¡applicaDon ¡

  8. What ¡the ¡Heck ¡is ¡Serverless? • “Serverless” ¡is ¡a ¡misnomer ¡ • You ¡actually ¡do ¡use ¡servers ¡ • You ¡just ¡don’t ¡provision ¡servers ¡and ¡manage ¡infrastructure ¡ • Other ¡names ¡are ¡more ¡appropriate ¡ • FuncDon ¡as ¡a ¡Service ¡(FaaS) ¡is ¡one ¡name ¡ • Event-­‑driven ¡compuDng ¡is ¡beUer ¡ • What ¡do ¡we ¡mean ¡by ¡runDme? ¡ • JVM ¡and ¡.NET ¡CLR ¡are ¡runDmes ¡ • But ¡serverless ¡runDmes ¡do ¡much ¡less ¡

  9. About ¡Those ¡Run$mes • Most ¡serverless ¡vendors ¡offer ¡compute ¡runDmes ¡ • ¡Execute ¡applicaDon ¡logic ¡but ¡do ¡not ¡store ¡data ¡ • Examples ¡of ¡runDmes ¡ • Amazon ¡Lambda ¡ • IBM ¡OpenWhisk ¡ • Azure ¡FuncDons ¡ • RunDmes ¡only ¡execute ¡when ¡an ¡event ¡occurs ¡ • Only ¡charged ¡when ¡the ¡runDme ¡is ¡execuDng ¡

  10. Language ¡Support ¡Depends ¡on ¡Run$me • AWS ¡Lambda ¡ • AWS ¡Lambda ¡naDvely ¡supports ¡Java, ¡Go, ¡PowerShell, ¡Node.js, ¡C#, ¡Python, ¡and ¡ Ruby ¡code ¡ • Provides ¡a ¡RunDme ¡API ¡which ¡allows ¡you ¡to ¡use ¡any ¡addiDonal ¡programming ¡ languages ¡to ¡author ¡your ¡funcDons. ¡ • Azure ¡FuncDons ¡ • C#, ¡JavaScript, ¡F#, ¡Java ¡supported ¡ • Bash, ¡PowerShell, ¡Python, ¡PHP ¡experimental ¡

  11. Why ¡Serverless ¡Means ¡DevOps • Cloud-­‑only ¡ • On-­‑prem ¡may ¡be ¡possible ¡depending ¡on ¡the ¡runDme ¡ • But ¡it ¡may ¡not ¡make ¡technical ¡sense ¡ • ContainerizaDon ¡and ¡workflow ¡ • FuncDons ¡and ¡runDme ¡can ¡be ¡encapsulated ¡into ¡Docker ¡containers ¡ • Microservices ¡ • Sizing ¡funcDons ¡can ¡be ¡a ¡challenge ¡ • Cost ¡versus ¡service ¡definiDon ¡

  12. What ¡is ¡Different? • You ¡only ¡pay ¡when ¡your ¡code ¡is ¡execuDng ¡ • There ¡is ¡an ¡economic ¡model ¡with ¡serverless ¡ • Serverless ¡is ¡rarely ¡a ¡complete ¡applicaDon ¡ • Back-­‑end ¡only ¡ • No ¡UI, ¡no ¡database ¡ • Serverless ¡is ¡stateless ¡ • No ¡state ¡to ¡reset ¡between ¡tests ¡ • Test ¡data ¡confined ¡to ¡sample ¡transacDons ¡ • Workflow ¡means ¡all ¡data ¡is ¡elsewhere ¡

  13. Run$mes ¡Can ¡Execute ¡at ¡the ¡Edge • Limited-­‑purpose ¡runDmes ¡can ¡execute ¡small ¡amounts ¡of ¡code ¡on ¡IoT ¡ devices ¡ • Real ¡Dme ¡compuDng ¡may ¡be ¡possible ¡ • Data ¡collected ¡at ¡the ¡edge ¡ • Then ¡sent ¡to ¡a ¡central ¡store ¡ • Good ¡for ¡distributed ¡data ¡systems ¡(DDS) ¡

  14. Tes$ng ¡Strategies ¡for ¡Serverless ¡Applica$ons • Understand ¡the ¡relaDonship ¡between ¡the ¡code ¡and ¡the ¡runDme ¡ • More ¡on ¡the ¡runDme ¡ • ShiB ¡leB ¡ • IntegraDon ¡tesDng ¡ • ConDnuous ¡tesDng ¡ • Performance ¡and ¡load ¡tesDng ¡ • Security ¡tesDng ¡

  15. Understand ¡the ¡Rela$onship ¡Between ¡the ¡ Code ¡and ¡the ¡Run$me • The ¡cloud ¡vendor ¡provisions ¡the ¡servers ¡and ¡provides ¡the ¡runDme ¡ • The ¡OS ¡doesn’t ¡maUer ¡ • The ¡cloud ¡vendor ¡provides ¡security ¡up ¡to ¡the ¡runDme ¡ • The ¡code ¡is ¡all ¡yours ¡ • The ¡runDme ¡kicks ¡off ¡your ¡code ¡ • And ¡does ¡nothing ¡else ¡

  16. Run$me ¡Implica$ons ¡to ¡Tes$ng • Only ¡code ¡needs ¡to ¡be ¡tested ¡ • No ¡interacDons ¡with ¡runDme ¡ • Everything ¡else ¡is ¡standard ¡ • No ¡calls ¡into ¡runDme ¡or ¡OS ¡ • Does ¡the ¡funcDon ¡work ¡with ¡other ¡funcDons? ¡ • And ¡database, ¡UI ¡

  17. ShiL ¡LeL • Planning ¡and ¡design ¡ • Understand ¡the ¡applicaDon ¡architecture ¡ • Make ¡suggesDons ¡on ¡testability ¡ • Unit ¡tesDng ¡ • Depending ¡on ¡the ¡funcDon, ¡it ¡may ¡also ¡be ¡a ¡single ¡unit ¡ • Map ¡out ¡integraDon ¡points ¡

  18. Integra$on ¡Tes$ng • All ¡funcDons ¡intended ¡to ¡execute ¡under ¡serverless ¡ • All ¡services ¡used ¡by ¡the ¡serverless ¡funcDons ¡ • Database, ¡UI, ¡Web ¡services ¡ • Test ¡API ¡operaDon ¡ • Send ¡and ¡receive ¡data ¡through ¡funcDon ¡APIs ¡ • Compare ¡inputs ¡and ¡outputs ¡for ¡accuracy ¡ • Full ¡system ¡test ¡with ¡simulated ¡workflows ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend