Skip to content
#

blocking

Here are 75 public repositories matching this topic...

persuader
persuader commented Mar 24, 2016

the script coulnd get all the ip addresses of the server interfaces when running xen dom0.
ifconfig does not show aliases for the bridge interface xenbr0 so server blocks his own ip-s.

i changed the line

SERVER_IP_LIST=ifconfig | grep "inet " | awk '{print $2}' | sed "s/addr://g" | xargs | sed -e 's/ /|/g'

to
SERVER_IP_LIST=`( hostname -I ; echo 127.0.0.1 ) | cat | sed ':a;N;$!ba;s/\n/ /g'

fallenreaper
fallenreaper commented Feb 4, 2020

Big fan of the product. I was writing some tests though, and i am failing my tests.
I thought the easy way to do is to make a mock provider for the classes for testing, but it seems that is not the right way. I was curious what is the right way.


class MockBlockUIService extends BlockUIService {}
class MockBlockUIInstanceService extends BlockUIInstanceService {}

...
beforeEach

Improve this page

Add a description, image, and links to the blocking topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the blocking topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.