Search in sources :

Example 1 with UserDataConfig

use of org.jenkinsci.test.acceptance.plugins.openstack.UserDataConfig in project acceptance-test-harness by jenkinsci.

the class OpenstackCloudPluginTest method configureCloudInit.

private void configureCloudInit(String cloudInitName) {
    ConfigFileProvider fileProvider = new ConfigFileProvider(jenkins);
    UserDataConfig cloudInit = fileProvider.addFile(UserDataConfig.class);
    cloudInit.name(CLOUD_INIT_NAME);
    cloudInit.content(resource("/openstack_plugin/" + cloudInitName).asText());
    cloudInit.save();
}
Also used : UserDataConfig(org.jenkinsci.test.acceptance.plugins.openstack.UserDataConfig) ConfigFileProvider(org.jenkinsci.test.acceptance.plugins.config_file_provider.ConfigFileProvider)

Aggregations

ConfigFileProvider (org.jenkinsci.test.acceptance.plugins.config_file_provider.ConfigFileProvider)1 UserDataConfig (org.jenkinsci.test.acceptance.plugins.openstack.UserDataConfig)1