-
Notifications
You must be signed in to change notification settings - Fork 193
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
Feature/event factory #32
Conversation
This is truly awesome. Thank you. I don't have a Marathon server handy at the moment, but my friend @pez5001 ran the tests and got the following: paul-/tmp/marathon-python(feature/event_factory)$ python -m unittest -v
----------------------------------------------------------------------
Ran 0 tests in 0.000s
OK Any idea why that might be? |
Hmmm... pretty weird but it seems outside of my IDE (PyCharm) the unit tests don't load under Python2.. but from my IDE they run fine on both Python2 and Python3. I can take a closer look later today. From CLI I just tested with a new virtualenv: cd marathon-python
virtualenv -p `which python3` ~/.py34
source ~/.py34/bin/activate
python setup.py develop
python -m unittest -v
From my IDE with Python 2.7:
|
Just took a look at this and you just need to add the "discover" argument. @pez5001 Let me know if this works for you. Thanks! cd marathon-python
python -m unittest discover
|
It looks like these tests only work if the test machine and marathon machine are in the same network... a callback URL of http://192.168.99.1:9999 isn't going to work on an ec2-hosted mesos+marathon cluster if I run the tests from my laptop inside my home or work network, right? |
No you would need to expose the callback interface to the internet, perhaps you could forward via SSH? |
I ran the tests... it launched a test app in mesos, then died with this error:
|
Maybe you're running a different version of Marathon? Mine is 0.8.1 |
That could be it... I'm on 0.8.2-RC3 |
For reference, the error mentioned above about |
That fixed it for me. Tests passing now 👍 |
👍 👍 👍 |
Heya --
I have added support for Marathon's EventBus as well as adding a few integration tests. Unfortunately I need Python3 support and I can't seem to get the existing setup.py configuration to work for me. I ran 2to3 directly against the repo and then made a few import changes. I tested running with Python2 and Python3 and it seems to work ok.
Thank you for all your work on this library!
Kevin