-
Notifications
You must be signed in to change notification settings - Fork 20
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
Test TravisCI #95
Draft
jrha
wants to merge
7
commits into
quattor:upstream
Choose a base branch
from
jrha:travis
base: upstream
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Test TravisCI #95
Changes from 3 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d3275b9
Test travis config
jrha 185c8e7
Don't fail fast
jrha 59ece30
Catch import errors as per @urbonegi's suggestion
jrha 1e84317
Inspect virtualenv
jrha c0066e8
Inspect scratch directory and fake DSDB logs
jrha 9b9af10
Fudge the environment passed to git
jrha 7c83bb7
Test fake DSDB
jrha 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 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: python | ||
python: | ||
- "2.7" | ||
before_script: | ||
- curl https://raw.githubusercontent.com/jrha/krb5-travis/master/install_krb5 | sudo bash | ||
- curl https://raw.githubusercontent.com/jrha/krb5-travis/master/install_knc | bash | ||
- wget https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip -O /tmp/protoc.zip && cd /tmp && unzip /tmp/protoc.zip && sudo cp bin/protoc /usr/bin/ && sudo chmod ugo+x /usr/bin/protoc | ||
- cd /tmp && git clone https://github.com/quattor/aquilon-protocols.git && cd aquilon-protocols && git checkout upstream && ./setup.py build && sudo ./setup.py install --install-lib /usr/local/lib/aquilon/protocols/lib/python | ||
- cd $TRAVIS_BUILD_DIR/tools/bootstrap_ms && python setup.py install | ||
script: | ||
- cd $TRAVIS_BUILD_DIR && tests/runtests.py -c tests/unittest.conf.travis --assume_yes | ||
after_script: | ||
- tail -n 64 /var/tmp/travis/aqtest/quattor/logs/aqd.log | ||
addons: | ||
hosts: | ||
- travis.dev | ||
packages: | ||
- libkrb5-dev |
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Twisted >= 12.2.0 | ||
coverage | ||
ipaddress | ||
jsonschema | ||
lxml | ||
mako | ||
psycopg2 >= 2.5.1 | ||
python-dateutil | ||
six >= 1.7.3 | ||
sqlalchemy >= 0.9.7 | ||
zope-interface | ||
protobuf >= 3.6.0 |
This file contains 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 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 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 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 |
---|---|---|
@@ -0,0 +1,156 @@ | ||
# This file provides the default for the unittests. To test against | ||
# an oracle database (or otherwise change the parameters), copy this | ||
# file and modify as needed. | ||
# | ||
# The config file etc/aqd.conf.defaults always gets read first, and the | ||
# values below override those. To nullify a value from the defaults, | ||
# it must be explicitly set to an empty value here. | ||
|
||
[DEFAULT] | ||
basedir = /var/tmp/%(user)s/aqtest | ||
quattordir = %(basedir)s/quattor | ||
|
||
# By default takes the sqlite section from aqd.conf.defaults. | ||
[database] | ||
database_section = database_sqlite | ||
|
||
[database_sqlite] | ||
# We do not really care if the host crashes during the unittest... | ||
disable_fsync = yes | ||
|
||
[broker] | ||
servername = %(hostname)s | ||
umask = 0022 | ||
kncport = 6902 | ||
openport = 6903 | ||
git_port = 9419 | ||
# Testing the case when bind_address is set is more interesting than when it's not... | ||
# It would be better to use localhost (to make sure nothing goes out to the wire), but that would make Kerberos unhappy | ||
bind_address = %(hostname)s | ||
run_git_daemon = True | ||
git_author_name = travis | ||
git_author_email = travis@dev | ||
git_committer_name = travis | ||
git_committer_email = travis@dev | ||
trash_branch = unittest_trash | ||
dsdb_use_testdb = 1 | ||
server_notifications = utnotify | ||
client_notifications = False | ||
sharedata = %(srcdir)s/tests/fakebin/nasobjects/testnasobjects.cdb | ||
run_knc = True | ||
grn_to_eonid_map_location = %(srcdir)s/tests/fakebin/eon-data | ||
esx_cluster_allow_cascaded_deco = True | ||
default_max_list_size = 1000 | ||
reconfigure_max_list_size = 15 | ||
pxeswitch_max_list_size = 15 | ||
manage_max_list_size = 15 | ||
reset_advertised_status_max_list_size = 15 | ||
map_grn_max_list_size = 15 | ||
unmap_grn_max_list_size = 15 | ||
user_list_location = %(srcdir)s/tests/fakebin/user-data/passwd.byname | ||
user_delete_limit = 10 | ||
service = aquilon | ||
keytab = /etc/krb5.keytab | ||
|
||
[change_management] | ||
# The contents of --justification will not be validated externally | ||
# (syntax checking will still be performed) | ||
enable = True | ||
extra_options = --mode warn --disable_edm --edm-instance qa | ||
|
||
[tool_locations] | ||
dsdb = %(srcdir)s/tests/fakebin/fake_dsdb | ||
aii_installfe = /bin/echo | ||
vlan2net = %(srcdir)s/tests/fakebin/fake_vlan2net | ||
mean = %(srcdir)s/tests/fakebin/fake_mean | ||
qip_dump_subnetdata = %(srcdir)s/tests/fakebin/fake_qip_dump_subnetdata | ||
ssh = %(srcdir)s/tests/fakebin/fake_ssh | ||
switch_discover = %(srcdir)s/tests/fakebin/fake_switchdata | ||
get_camtable = %(srcdir)s/tests/fakebin/fake_macdata | ||
checkedm = %(srcdir)s/tests/fakebin/fake_checkedm | ||
aqd_checkedm = %(srcdir)s/tests/fakebin/fake_aqd_checkedm | ||
location_uri_validator = %(srcdir)s/tests/fakebin/location_uri_validator | ||
git = /usr/bin/git | ||
klist = /usr/bin/klist | ||
knc = /usr/local/bin/knc | ||
|
||
# Alternative tool locations outside MS | ||
git_daemon = /usr/lib/git-core/git-daemon | ||
ant_contrib_jar = /usr/share/java/ant/ant-contrib.jar | ||
|
||
[location_feeds] | ||
building_feed = %(srcdir)s/tests/fakebin/user-data/location_feed.csv | ||
|
||
[unittest] | ||
last_success_db_snapshot = %(quattordir)s/aquilondb/aquilon_last_success_snapshot.db | ||
fake_module_location = %(srcdir)s/tests/fakemodules/ | ||
scratchdir = %(basedir)s/scratch | ||
mirrordir = %(basedir)s/mirror | ||
|
||
# Update the template_king_host value | ||
template_king_host = localhost | ||
template_base = %(srcdir)s/tests/templates/ | ||
|
||
template_alternate_prod = | ||
fake_hosts_location = %(srcdir)s/tests/fakebin/dsdb.d/show_host_-host_name_ | ||
datadir = %(srcdir)s/tests/broker/data | ||
|
||
# Alternative tool locations outside MS | ||
real_panc_location = /usr/lib/panc.jar | ||
|
||
# Versions for the Linux models. These are used both for Aquilon and Aurora. | ||
linux_version_curr = 6.1-x86_64 | ||
linux_version_prev = 5.1-x86_64 | ||
|
||
hostname = travis.dev | ||
|
||
[archetype_aquilon] | ||
default_grn_target = esp | ||
default_osversion = 6.1-x86_64 | ||
default_osname = linux | ||
host_grn_targets = esp,hlmplus,atarget | ||
personality_grn_targets = esp,hlmplus,atarget | ||
|
||
[archetype_aurora] | ||
default_domain = unittest | ||
|
||
[archetype_f5] | ||
default_personality = generic | ||
|
||
[archetype_filer] | ||
default_personality = generic | ||
|
||
[archetype_metacluster] | ||
default_domain = unittest | ||
|
||
[archetype_hacluster] | ||
allow_cascaded_deco = False | ||
max_priority_order = 99 | ||
min_priority_order = 1 | ||
|
||
[archetype_netinfra] | ||
# Network devices should be compileable, but we're not quite there yet. | ||
# Stash them awain in a separate domain for now to avoid compilation | ||
# errors. | ||
default_domain = netinfra | ||
|
||
[archetype_windows] | ||
default_domain = ut-prod | ||
|
||
[panc] | ||
pan_compiler = %(basedir)s/panc-links/panc-%(version)s.jar | ||
include_pan = True | ||
|
||
[site] | ||
# Site specific settings | ||
default_hardware_label_regex = ^[a-z][a-z0-9]{,62}$ | ||
# Allow Aquilon broker generate nextip for vip/localvip type | ||
# Temporary option until we can vary API by Aquilon broker instance | ||
ipfromtype = True | ||
|
||
[protocols] | ||
# Alternative tool locations outside MS | ||
directory = /usr/local/lib/aquilon/protocols/lib/python | ||
|
||
[dsdb] | ||
enable = False |
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.
why this one is added? :)
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.
I don't know, I copied and pasted it from you?
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.
i might have copied if from somewhere else. My bad. Actually we might release this fix ourselves next week and push to github. Will let you know then we can rebase this one :)
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.
Cool