aboutsummaryrefslogtreecommitdiff
path: root/unit-test.sh
AgeCommit message (Collapse)Author
2022-03-11llp: install build reqs for python-ldapKelley Spoon
We're using python-ldap=3.3.1 now, which must be build from source since the latest supported version is 2.2.4. Let's apt-get the build requirements in the unit-test.sh script so Jenkins can be useful instead of always erroring on the ldap build failure. Change-Id: I582d2d1480e185b705153f50367ea51e4b61d953 Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org> Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40741
2022-01-31llp: remove crowd and openid support in favor of ldap authKelley Spoon
In order to remove the final piece of Crowd usage in our infrastructure, let's migrate LLP to using ldap for both authentication and group look ups. We also need to update the views, urls, and tests to no longer rely upon crowd/openid and instead mock up the LDAP lookups. Change-Id: I254d7bbffff97ffa8ebe5f5be72e763e77a6c45d Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org> Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40275
2021-12-18staticfiles: rename root static dir and add missing filesKelley Spoon
By adding 'static' to the gitignore file, the pattern match was also applied to 'license-protected-downloads/static' and the missing admin, jquery, and css files were left out of the repo. Let's rename the top level directory where the collected files are to be put to 'staticroot' so that it can safely be added to the gitignore file and restore the missing files. Change-Id: Ie051df5c26ab83df96af5a8453648b0db9f3cbcd Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40226 Reviewed-by: Kelley Spoon <kelley.spoon@linaro.org>
2021-12-18staticfiles: get control of the static files once againKelley Spoon
Fix staticfiles so that they are correctly generated by 'collectstatic' regardless of where or how this app is deployed. In this change, let's concentrate all static files in 'license_protected_downloads/static' so that we can clear out STATIC_ROOT ('static') and rebuild it reliably with 'collectstatic'. We also restore the contents of the 'license_protected_downloads/static' directory, and update the unit-test.sh script to call 'collectstatic' on a freshly installed STATIC_ROOT before it runs. Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org> Change-Id: Ice720b4794a48540c3753f4a6efba027cbc29040 Reviewed-on: https://review.linaro.org/c/infrastructure/linaro-license-protection/+/40206
2016-03-23unit-test: define python versionBen Copeland
Due to some OS'es having virtualenv set to Python 3 by default, virtualenv has now been updated with the Python version Change-Id: Iebcf1cf9cdc49377f075bddb540e0c0669de19a1 Reviewed-on: https://review.linaro.org/10892 Reviewed-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
2016-02-10django 1.8: be explicit about django settings moduleAndy Doan
New versions of Django don't default to "settings", so this explicitly sets what to use. This change is compatible with both Django 1.6 and 1.8 Change-Id: I635206470dd6355042aa4cfda4f09f2b4b5a1b75 Reviewed-on: https://review.linaro.org/10364 Reviewed-by: Ben Copeland <ben.copeland@linaro.org> Reviewed-by: pfalcon Sokolovsky <paul.sokolovsky@linaro.org>
2015-10-15Add requirement for "longerusername"Andy Doan
It turns out we've always "required" this. However, sqlite must not enforce proper username constraints. When running this application against a postgres database, I ran into issue with usernames being too long. This requires a corresponding change to ansible to make sure we install the requirement. I also had to update unit-test.sh. The new docker slaves in CI are missing python-virtualenv. Change-Id: I1a17029b3e0c45364d9a0f87fa83b38f48ca8115
2015-07-20add a unit-test scriptAndy Doan
can be used for development as well as CI: https://ci.linaro.org/job/infrastructure-linaro-license-protection/ Change-Id: Ic83a6f04edc16b04db53782d9f7e9dde9151d130