-
Notifications
You must be signed in to change notification settings - Fork 20
Initial support for chronos 3.x for #33 #35
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
bde6de0
Initial support for chronos 3.x for #33
a68659e
Make warnings throw an exception instead
ccc48a9
Line breaking < 120c and default to v1
538d9bb
Chronos API removed PUT method here
5adc62d
async is no longer a valid attribute
1a3bc93
Should account for whatever prefix client has
25f2c8d
Simplify the test environment by a lot
c8a337c
Put all the test requirements in a single file
2a4a3e7
Using the docker service provided by travis
de0188e
Update to chronos 3.0.2
97e90d4
Update the docker images before building if needed
1f91834
Trying to bring back legacy support
5a37d15
Revert "Chronos API removed PUT method here"
c31e8ae
Working legacy support back in
da54db4
We need to raise a proper exception on http errors
4795d0b
Work in environment variables to control behavior
103fb95
Use travis' matrix support
496aac7
Use behave's tag support to only run some tests
65cf3ac
3xx are potentially good status codes
1ba92a9
Adding a test for all known status codes
34ee57f
Small update to docs
c378464
I think this is causing travis failures
3abaa15
For flake8's sake
f0c3405
Fixing typo in {env} and passing CHRONOSVERSION
787ddd8
Using the environment is kind of feeble I think
2d598b2
s/scheduler_version/scheduler_api_version/
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,29 @@ | ||
| env: | ||
| - CHRONOSVERSION: 2.4.0 | ||
|
|
||
| language: python | ||
| python: | ||
| - 2.7 | ||
| - 3.5 | ||
| sudo: true | ||
| matrix: | ||
| include: | ||
| - os: linux | ||
| sudo: required | ||
| services: docker | ||
| python: 2.7 | ||
| env: CHRONOSVERSION=2.4.0 | ||
| - os: linux | ||
| sudo: required | ||
| services: docker | ||
| python: 3.5 | ||
| env: CHRONOSVERSION=2.4.0 | ||
| - os: linux | ||
| sudo: required | ||
| services: docker | ||
| python: 2.7 | ||
| env: CHRONOSVERSION=3.0.2 | ||
| - os: linux | ||
| sudo: required | ||
| services: docker | ||
| python: 3.5 | ||
| env: CHRONOSVERSION=3.0.2 | ||
| before_install: | ||
| - docker-compose -f itests/docker-compose.yml pull | ||
| install: | ||
| - pip install tox | ||
| script: | ||
| - ./itests/install-chronos.sh | ||
| - ./itests/start-chronos.sh | ||
| - make test && make itests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,77 @@ | ||
| --- | ||
| chronos: | ||
| build: . | ||
| ports: | ||
| - 4400 | ||
| version: "2" | ||
|
|
||
| services: | ||
| zookeeper: | ||
| image: zookeeper:3.4.9 | ||
| container_name: zookeeper | ||
| environment: | ||
| ZOO_MY_ID: 1 | ||
| ZK_INIT_LIMIT: 10 | ||
| ZK_SYNC_LIMIT: 5 | ||
|
|
||
| master: | ||
| image: mesosphere/mesos-master:1.0.3 | ||
| container_name: mesos-master | ||
| environment: | ||
| MESOS_ZK: zk://zookeeper:2181/mesos | ||
| MESOS_QUORUM: 1 | ||
| MESOS_CLUSTER: chronos-python | ||
| MESOS_REGISTRY: in_memory | ||
| MESOS_HOSTNAME: localhost | ||
| ports: | ||
| - 5050:5050 | ||
| depends_on: | ||
| - zookeeper | ||
| links: | ||
| - zookeeper | ||
|
|
||
| agent: | ||
| image: mesosphere/mesos-slave:1.0.3 | ||
| container_name: mesos-agent | ||
| pid: host | ||
| environment: | ||
| MESOS_MASTER: zk://zookeeper:2181/mesos | ||
| MESOS_WORK_DIR: /tmp/mesos | ||
| MESOS_PORT: 5051 | ||
| MESOS_RESOURCES: ports(*):[11000-11999] | ||
| MESOS_CONTAINERIZERS: mesos | ||
| MESOS_HOSTNAME: localhost | ||
| ports: | ||
| - 5051:5051 | ||
| volumes: | ||
| - /sys/fs/cgroup:/sys/fs/cgroup | ||
| depends_on: | ||
| - zookeeper | ||
| links: | ||
| - zookeeper | ||
| - master | ||
|
|
||
| chronos-2.4.0: | ||
| image: mesosphere/chronos:chronos-2.4.0-0.1.20150828104228.ubuntu1404-mesos-0.27.0-0.2.190.ubuntu1404 | ||
| container_name: chronos-2.4.0 | ||
| command: '/usr/bin/chronos run_jar --http_port 4400 --zk_hosts zookeeper:2181 --master zk://zookeeper:2181/mesos' | ||
| ports: | ||
| - 4400:4400 | ||
| depends_on: | ||
| - zookeeper | ||
| - master | ||
| links: | ||
| - zookeeper | ||
| - master | ||
|
|
||
| chronos-3.0.2: | ||
| image: mesosphere/chronos:v3.0.2 | ||
| container_name: chronos-3.0.2 | ||
| command: '--zk_hosts zookeeper:2181 --master zk://zookeeper:2181/mesos' | ||
| environment: | ||
| PORT0: 4400 | ||
| PORT1: 8080 | ||
| ports: | ||
| - 4400:4400 | ||
| depends_on: | ||
| - zookeeper | ||
| - master | ||
| links: | ||
| - zookeeper | ||
| - master | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment re < 3. You're not really allowing for backwards compat here.