Add more tests & checks for the existence of a Premium license in Geo

I have a Geo setup with a primary and a secondary running GitLab 11.0.2-ee. On the primary, I removed the Premium license from /admin/license and no backup licenses exist on the instance. The Geo Nodes screen (on the primary and secondary) recognizes this and states You need a different license to enable Geo replication. So replication should have stopped.

Then I created a test project in the Primary instance and added a file. However, this was correctly transferred over to the Secondary. The project existed AND the git file transferred over.

As per a Slack conversation, we should test against this scenario and check for a valid license in ee/app/workers/geo/scheduler/scheduler_worker.rb and/or the log cursor loop.

/cc @nick.thomas @brodock @stanhu

Assignee Loading
Time tracking Loading