Kerberos realms are case sensitive

Use plain String instead of AqStr to preserve the correct case.

Change-Id: I102faa2efda3d6ce3e2d0064742a11689164a87b
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
Reviewed-by: Nathan Dimmock <Nathan.Dimmock@morganstanley.com>
Generalize the parsing of klist output

Heimdal's klist prints "Principal:" instead of "Default principal:", and
it's also indented.

Change-Id: Ifd17b0a210533061ffc57003ada86a2cd0578653
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
Reviewed-by: Nathan Dimmock <Nathan.Dimmock@morganstanley.com>
Remove hardcoded realm references

Use the realm we detected at the beginning instead of hardcoding
is1.morgan.

Change-Id: I2f9bebcc0e598a643274b398c14874a022c0a589
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
Cache the location parent dictionary

Change-Id: I1d878e9754f6a3075ee613c2da6734c906b34012
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Unittest: add helpers for DSDB campus operations

Change-Id: Id043a71ad2065d3e001a518351b96198162b4297
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Convert Location.children to a backref

Change-Id: I7577c8ff470243dfca83565341901fdbea4afa4b
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Drop class CampusDiffStruct

It is not useful anymore.

Change-Id: I0b41b375a4fcb8ca3c2fbc98103ebd93249bc352
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
New commands: add_desk/del_desk/show_desk

This is in preparation of killing the add_location, show_location and
del_location commands.

Change-Id: I955ccfef2c6026f6adadaa98464aff8ed4f44644
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Drop the add_location command

Move the checks for possible parent types to the model. Introduce the
add_location() helper in dbwrappers/location.

Change-Id: I221c3ddc10c727b5ba5d76e068ba5e7b60fa0b31
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Drop generic locaiton manipulation commands

Change-Id: Idd73474fe6faaba2274817ef1c3dc91444e5d427
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Move location setup out of unittest.dump

Creating the locations in unittest.dump misses steps like DSDB updates.
The planned separation of organizational and physical location types
will also make location setup more complex, and will require location
creation going through the broker.

Change-Id: If90a518f3bae1bd1fa0d9eab55e35085e2a8f91f
Reviewed-by: Zoltan Sebestyen <Zoltan.Sebestyen@morganstanley.com>
Name of the dependency file changed

Starting with panc 9.4, the profile extension is not included anymore.
The broker should support both the old and the new name for some time to
be able to clean up the old dependency files, but the unit test does not
have to care about the old name anymore.

Change-Id: I2c47af0f0f362c24fbd36fd74e95024b7b9e2256
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
Rename advertise_gzip_as_xml to transparent_gzip

This configuration item is not limited to XML only, it would work with
JSON profiles as well.

Change-Id: Iaa1d209bc25cbfcf890201225b25f7bd2d26eb64
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
Refactor the profile index generator code

This is in preparation for the next commit.

Change-Id: I449a0368103bdd74199d3593c1f940b1b59652b2
Reviewed-by: Priya Joshi <Priya.Joshi@morganstanley.com>
test fixes to make jenkins happy

* sybase-test added to avoid errors at usecase-database
* Threshold check dropped.

Change-Id: I3c82e2491465f8dace3076689c8ccc539a61718f
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
host/personality - grn relation now has label attribute.

 - (un)map_grn tests added with label
 - host - grn relation is now many to many.
 - add_host/add_personality now has label support, covered with tests.
 - also, personality / host formatter show label.

 Addresses-Issue: Jira/AQUILON-960

Change-Id: I0316255c1a19bf66b566a308c1808014c1f67a7d
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
fix to enable test outside runtests

Change-Id: I8417bd744249b4a0f9af2c7dc8faa196ea9f7120
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Target validation added.

Only targets specified in broker configuration file are accepted. Valid
targets must be specified at archetype sections, separately for hosts
and personalities.

Change-Id: I5f0aa9fb20602454c079be6b0b0eaf596931b5b1
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Added per target eon_ids export under /system/eon_id_maps.

- Added per target eon_ids export under /system/eon_id_maps.
- values for /systen/eon_ids are restricted to default_grn_target. This behavior
is the same as the one before introducing targets, /system/eon_ids is to report
data to ESP via dw.

Change-Id: If3c6b50aca6610373dc734f3ac34385076aaa765
Reviewed-by: Gabor Gombas <Gabor.Gombas@morganstanley.com>
Merge remote-tracking branch 'origin/for_next/map_grn_label'