Files
nomad/enos/enos-quality.hcl
Juana De La Cuesta 3861c40220 func: add initial enos skeleton (#24787)
* func: add initial enos skeleton

* style: add headers

* func: change the variables input to a map of objects to simplify the workloads creation

* style: formating

* Add tests for servers and clients

* style: separate the tests in diferent scripts

* style: add missing headers

* func: add tests for allocs

* style: improve output

* func: add step to copy remote upgrade version

* style: hcl formatting

* fix: remove the terraform nomad provider

* fix: Add clean token to remove extra new line added in provision

* fix: Add clean token to remove extra new line added in provision

* fix: Add clean token to remove extra new line added in provision

* fix: add missing license headers

* style: hcl fmt

* style: rename variables and fix format

* func: remove the template step on the workloads module and chop the noamd token output on the provide module

* fix: correct the jobspec path on the workloads module

* fix: add missing variable definitions on job specs for workloads

* style: formatting

* fix: rename variable in health test
2025-01-30 16:37:55 +01:00

48 lines
1.7 KiB
HCL

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
quality "nomad_agent_info" {
description = "A GET call to /v1/agent/members returns the correct number of running servers and they are all alive"
}
quality "nomad_agent_info_self" {
description = "A GET call to /v1/agent/self against every server returns the same last_log_index for all of them"
}
quality "nomad_nodes_status" {
description = "A GET call to /v1/nodes returns the correct number of clients and they are all eligible and ready"
}
quality "nomad_node_eligibility" {
description = "A GET call to /v1/node/:node-id returns the same node.SchedulingEligibility before and after a server upgrade"
}
quality "nomad_node_metadata" {
description = "A GET call to /v1/node/:node-id returns the same node.Meta for each server before and after a server upgrade"
}
quality "nomad_job_status" {
description = "A GET call to /v1/jobs returns the correct number of jobs and they are all running"
}
quality "nomad_register_job" {
description = "A POST call to /v1/jobs results in a new job running and allocations being started accordingly"
}
quality "nomad_reschedule_alloc" {
description = "A POST / PUT call to /v1/allocation/:alloc_id/stop results in the stopped allocation being rescheduled"
}
quality "nomad_restore_snapshot" {
description = "A node can be restored from a snapshot built on a previous version"
}
quality "nomad_allocs_status" {
description = "A GET call to /v1/allocs returns the correct number of allocations and they are all running"
}
quality "nomad_alloc_reconect" {
description = "A GET call to /v1/alloc/:alloc_id will return the same alloc.CreateTime for each allocation before and after a client upgrade"
}