-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the test folder and add license headers
- Loading branch information
Showing
4 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
plugins/nf-nomad/src/main/nextflow/nomad/models/JobConstraints.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,28 @@ | ||
/* | ||
* Copyright 2023-, Stellenbosch University, South Africa | ||
* Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package nextflow.nomad.models | ||
|
||
/** | ||
* Nomad Job Constraint Spec | ||
* | ||
* @author Jorge Aguilera <[email protected]> | ||
*/ | ||
|
||
class JobConstraints { | ||
|
||
List<JobConstraintsNode> nodeSpecs = [] | ||
|
24 changes: 24 additions & 0 deletions
24
plugins/nf-nomad/src/main/nextflow/nomad/models/JobConstraintsAttr.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
/* | ||
* Copyright 2023-, Stellenbosch University, South Africa | ||
* Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
package nextflow.nomad.models | ||
|
||
/** | ||
* Nomad Job Constraint Spec | ||
* | ||
* @author Jorge Aguilera <[email protected]> | ||
*/ | ||
|
||
class JobConstraintsAttr { | ||
|
||
private String arch = null | ||
|
24 changes: 24 additions & 0 deletions
24
plugins/nf-nomad/src/main/nextflow/nomad/models/JobConstraintsNode.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
/* | ||
* Copyright 2023-, Stellenbosch University, South Africa | ||
* Copyright 2024, Evaluacion y Desarrollo de Negocios, Spain | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
|
||
package nextflow.nomad.models | ||
|
||
/** | ||
* Nomad Job Constraint Spec | ||
* | ||
* @author Jorge Aguilera <[email protected]> | ||
*/ | ||
|
||
class JobConstraintsNode { | ||
|
||
private String id = null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,14 @@ | |
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package nextflow.nomad.executor | ||
|
||
package nextflow.nomad.models | ||
|
||
import groovy.json.JsonOutput | ||
import groovy.json.JsonSlurper | ||
import nextflow.executor.Executor | ||
import nextflow.nomad.config.NomadConfig | ||
import nextflow.nomad.executor.NomadService | ||
import nextflow.processor.TaskBean | ||
import nextflow.processor.TaskConfig | ||
import nextflow.processor.TaskProcessor | ||
|
@@ -39,7 +41,7 @@ import java.nio.file.Path | |
* | ||
* @author : Jorge Aguilera <[email protected]> | ||
*/ | ||
class NomadServiceJobConstraints extends Specification{ | ||
class JobConstraintsSpec extends Specification{ | ||
|
||
MockWebServer mockWebServer | ||
|
||
|