mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Deprecating the job template feature (#2798)
* deprecating the job template feature * removing the code * format
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# Declarative Job Templates
|
# Declarative Job Templates -- Deprecated
|
||||||
|
|
||||||
Provide the ability to maintain job templates, akin to `onefuzz template
|
Provide the ability to maintain job templates, akin to `onefuzz template
|
||||||
libfuzzer basic` at the service level. The templates include a job
|
libfuzzer basic` at the service level. The templates include a job
|
@ -1,4 +1,4 @@
|
|||||||
# Managing Declarative Job Templates
|
# Managing Declarative Job Templates -- Deprecated
|
||||||
|
|
||||||
[Declarative Job Templates](declarative-templates.md), currently a preview
|
[Declarative Job Templates](declarative-templates.md), currently a preview
|
||||||
feature, allow a user to define a reusable fuzzing pipeline as a template.
|
feature, allow a user to define a reusable fuzzing pipeline as a template.
|
@ -1794,9 +1794,6 @@ class Onefuzz:
|
|||||||
self.instance_config = InstanceConfigCmd(self)
|
self.instance_config = InstanceConfigCmd(self)
|
||||||
self.validate_scriban = ValidateScriban(self)
|
self.validate_scriban = ValidateScriban(self)
|
||||||
|
|
||||||
if self._backend.is_feature_enabled(PreviewFeature.job_templates.name):
|
|
||||||
self.job_templates = JobTemplates(self)
|
|
||||||
|
|
||||||
# these are externally developed cli modules
|
# these are externally developed cli modules
|
||||||
self.template = Template(self, self.logger)
|
self.template = Template(self, self.logger)
|
||||||
self.debug = Debug(self, self.logger)
|
self.debug = Debug(self, self.logger)
|
||||||
@ -1830,9 +1827,6 @@ class Onefuzz:
|
|||||||
if tenant_domain is not None:
|
if tenant_domain is not None:
|
||||||
self._backend.config.tenant_domain = tenant_domain
|
self._backend.config.tenant_domain = tenant_domain
|
||||||
|
|
||||||
if self._backend.is_feature_enabled(PreviewFeature.job_templates.name):
|
|
||||||
self.job_templates._load_cache()
|
|
||||||
|
|
||||||
def licenses(self) -> object:
|
def licenses(self) -> object:
|
||||||
"""Return third-party licenses used by this package"""
|
"""Return third-party licenses used by this package"""
|
||||||
data = pkgutil.get_data("onefuzz", "data/licenses.json")
|
data = pkgutil.get_data("onefuzz", "data/licenses.json")
|
||||||
@ -1860,9 +1854,6 @@ class Onefuzz:
|
|||||||
# actuates the login process
|
# actuates the login process
|
||||||
self.info.get()
|
self.info.get()
|
||||||
|
|
||||||
# TODO: once job templates are out of preview, this should be enabled
|
|
||||||
if self._backend.is_feature_enabled(PreviewFeature.job_templates.name):
|
|
||||||
self.job_templates.refresh()
|
|
||||||
return "succeeded"
|
return "succeeded"
|
||||||
|
|
||||||
def config(
|
def config(
|
||||||
@ -1922,6 +1913,5 @@ class Onefuzz:
|
|||||||
|
|
||||||
|
|
||||||
from .debug import Debug # noqa: E402
|
from .debug import Debug # noqa: E402
|
||||||
from .job_templates.main import JobTemplates # noqa: E402
|
|
||||||
from .status.cmd import Status # noqa: E402
|
from .status.cmd import Status # noqa: E402
|
||||||
from .template import Template # noqa: E402
|
from .template import Template # noqa: E402
|
||||||
|
Reference in New Issue
Block a user