Stubbing and few other testing tidbits for python

It’s been sometime since I wrote some python, and ended doing a bit of testing for a couple of routines which I ended up implementing. This post is more about me just condensing those ideas for python and how to do it in python, but the ideas are also a carryover from my other testing experiences, while using other languages and how my ideas for testing have progressed over time comparing some testing which I had done in some projects some years back. You can find a couple of more posts under https://www.tasdikrahman.com/blog/tag/testing/ where I have delved more into these topics. ...

April 15, 2022 · 7 min · Tasdik Rahman

Trip to Taiwan, 2017

Dum Chai had become one of my favorites, thanks to the after work-hour chill time with colleagues. That day being no different, we were in our usual routine. But I was in for a surprise. I was getting my VISA finally after much hassles that day. All the mindless haggling and tireless procedures with the paperwork which I had to run through at the last moment. Oh man, that was something. ...

October 7, 2017 · 11 min · Tasdik Rahman

GSoC 2017 with oVirt - Ending Notes

Start of Coding Period This was also the time when I started my first contributions to oVirt. I surely remember getting just started with Ansible which was to be used in the project with oVirt. Lukas was very patient to help me with understanding the parts which would be used by me in the project and was very patient in every step. Right from the application period of March, 2017. Every week has been a new learning experience for me. ...

September 3, 2017 · 3 min · Tasdik Rahman

Second Phase - GSoC, work on 3 VM setup of oVirt installation

It has been a week since the Phase 2 results are out. And we proceed to the last and final Phase of the GSoC. I couldn’t blog regularly in the last phase due to many reasons, which I want to change this Phase. But anyhow, this was collectively the output of my work in Phase 2 Setup This approach will follow a 3 box VM setup. For clarity sake, the VM’s can be assumed for now as ...

July 30, 2017 · 12 min · Tasdik Rahman

Week 3 and 4, GSoC 2017 - dozens of cloud vm's, ansibling, finding bugs, testing

At last I have got a hold of IRC’s and I declare my love for irssi. The combination of tmux and irssi is a boon for me. I tried different clients like weechat,Epic but I found irssi to be more appealing, quite frankly use any of these two if you are looking for something using which you can chat on irc’s on the terminal. My current installation of irssi is there on my VPC hosted on linode. For logging my chat’s and conversations, I have setup logrotate daemon to log the channels and private chats in their respective directories. ...

June 28, 2017 · 20 min · Tasdik Rahman

Week 1 and 2, GSoC 2017 - Travel, Code, Good food

So it’s quite some time since I wrote a thing or two about the things which I have doing over the last 2 weeks. This month has been a roller coaster ride if you ask me. Many reasons to it. Some being that I travelled to PyCon Taiwan which marked my first international trip and also my first PyCon talk. Got my uni results. Fingers crossed but heck. I scored a perfect 10 in the last sem! The final version of trumporate’s UI is almost done and me and Rituraj have to just put some final touches to (blogpost for the whole development process is pending. You can find the first one here) ...

June 13, 2017 · 9 min · Tasdik Rahman

PyCon Taiwan 2017, Taipei

I have been going to PyCon India since the 2014 edition and have only missed PyCon Pune, the new regional PyCon that we have which was held at the start of this year. Every year? Yes. But why? I dunno, maybe because I love python too much? Also partly because it’s the only time in the year where I get to meet all my friends in the Python community. But this year was a little different. ...

June 12, 2017 · 5 min · Tasdik Rahman

Implementing Role Based Access Control

You can find the python module for implementing RBAC0 here at https://github.com/tasdikrahman/easyrbac Main Idea behind it If I have some 100 users in my system and for each user. I need to have some form of ACL using which the system makes choices whether they should be having authorisation for different actions on resources. Meaning, only the actors should be able to perform only those actions for which they are having authorisation. ...

June 1, 2017 · 4 min · Tasdik Rahman

Making of Trumporate: Building markovipy - Part 1

Do you even read comics? Kiddin. Between, I love reading Calvin and Hobbes. It’s something which I keep re-reading their well worn collections, maybe for the n-th time. The thing which keeps me hooked to it maybe the blunt truthfulness of strip. Haven’t read any? I like this one because of its simplicity. This one makes me smile all the time. xkcd is the only thing that comes close in comic strips which I visit frequently. ...

May 6, 2017 · 6 min · Tasdik Rahman

Testing your ansible roles using travis-CI

NOTE: The ansible playbook written here can be found at tasdikrahman/ansible-bootstrap-server Continous Integration Simply put with each commit that you are making to shared repository, which is then verified by an automated build. This helps in detection of errors early on. If you are new to this development style. There are plenty of places which explain will help you understand. This practice in itself is quite old. CI/CD anyone? But I am not writing this to explain what is CI right? ...

April 6, 2017 · 5 min · Tasdik Rahman