-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Copy HOME from standard environment * Add dependency on protobuf 3.6.0 * Install knc * Install protocols to /usr/local/lib/... * Use locally installed knc * Force service name to be aquilon * Set keytab location Change-Id: I3dabb9e17d9ad4686a19336e121b1aceb925cf0d
- Loading branch information
Showing
6 changed files
with
199 additions
and
7 deletions.
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 -f --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
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 |