support/testing: add python-django test
authorAdam Duskett <aduskett@greenlots.com>
Wed, 4 Dec 2019 20:06:29 +0000 (12:06 -0800)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 5 Dec 2019 22:02:14 +0000 (23:02 +0100)
commit8583b2c6d878ea890081d354170f90c564d7d846
treeb8093be1459e0b807213337b1396cda6058bc0e0
parentf58ffc49ce5d0988549575ef18033ddda17bc809
support/testing: add python-django test

This test comprises of four simple steps:
  1: Start a new simple project called testsite.
  2: Run ./manage.py migrate on the new testsite.
  3: Run ./manage.py runserver 0.0.0.0:1234 & sleep 30
    - The sleep 30 is necessary as it may take several seconds for
      the django server to fully start.
  4: Run netstat to ensure the server opened port 1234.

Signed-off-by: Adam Duskett <aduskett@greenlots.com>
[Thomas: use self.assertRunOk() when appropriate]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
.gitlab-ci.yml
support/testing/tests/package/sample_python_django.py [new file with mode: 0644]
support/testing/tests/package/test_python_django.py [new file with mode: 0644]