mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 23:45:15 +00:00
The license code currently has a Licensee implementation per feature, which is updated by the license service. This meant maintaining a listener type feature for the license service, and having an abstract listener and such. The licensee class also mixed in stuff only needed by the license service (acknowledgement messages). This change collapses all the methods from licensees into XPackLicenseState. The naming was inconsistent across licensee implementations, so here it is standardized on `is*Allowed()`. There are also a number of tests which should be consolidated for testing the license service but that is left for a future change. I also removed collector tests that were testing license: that is better left for the direct tests of the license state in XPackLicenseStateTests. Original commit: elastic/x-pack-elasticsearch@734871e870