Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • autosubmit autosubmit
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 338
    • Issues 338
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 21
    • Merge requests 21
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • autosubmitautosubmit
  • Issues
  • #1334
Closed
Open
Issue created Jun 28, 2024 by dbeltran@dbeltranMaintainer

[test] Add a pytest to test the default template directives

Hello @bdepaula , fyi: @agayayav

I think we are missing an important test, that it is just one that checks the default hpc directives that will be added in the job template.

In 4.1.8 ( patched ), I added the exclusive directive and tested when it is Exclusive: " and when it is Exclusive: True; this was not enough when the exclusive parameter is not defined.

So, to never forget that case for other parameters, I would just create a basic test that contains %jobs.job.a.platform%=(slurm,pjm...), check its template ( I would do the full process, so it includes the conversion of the values into the directives ) , and compare it with the expected default values. So it works in a general way.

Edited Jun 28, 2024 by dbeltran
Assignee
Assign to
Time tracking