Skip to content

Commit

Permalink
DEVPROD-1661 add mountpoints to the distro mutation (#7256)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybrill authored Nov 20, 2023
1 parent 222395a commit b31d6ef
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 36 deletions.
45 changes: 11 additions & 34 deletions graphql/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion graphql/schema/types/distro.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ input DistroInput {
userSpawnAllowed: Boolean!
validProjects: [String!]!
workDir: String!
mountpoints: [String]
}

input BootstrapSettingsInput {
Expand Down Expand Up @@ -306,7 +307,7 @@ type Distro {
userSpawnAllowed: Boolean!
validProjects: [String]!
workDir: String!
mountpoints: [String]!
mountpoints: [String]
}

type BootstrapSettings {
Expand Down
3 changes: 3 additions & 0 deletions graphql/tests/mutation/saveDistro/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"arch": "linux_ppc64le",
"disabled": false,
"work_dir": "/data/mci",
"mountpoints": ["/"],
"provider": "static",
"provider_settings": [
{
Expand Down Expand Up @@ -118,6 +119,7 @@
],
"arch": "linux_ppc64le",
"work_dir": "/data/mci",
"mountpoints": ["/"],
"provider": "static",
"provider_settings": [
{
Expand Down Expand Up @@ -220,6 +222,7 @@
],
"arch": "linux_ppc64le",
"work_dir": "/data/mci",
"mountpoints": ["/"],
"provider": "static",
"provider_settings": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mutation {
authorizedKeysFile: "",
containerPool: "",
workDir: "/data/mci",
mountpoints: ["/"],
disabled: true,
provider: EC2_ON_DEMAND,
providerSettingsList: [
Expand Down
1 change: 1 addition & 0 deletions graphql/tests/mutation/saveDistro/queries/save.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ mutation {
containerPool: "",
disabled: true,
workDir: "/data/mci",
mountpoints: ["/"],
provider: EC2_ON_DEMAND,
providerSettingsList: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ mutation {
distro: {
name: "rhel71-power8-large"
workDir: "",

mountpoints: ["/"],
aliases: [
"new-alias"
],
Expand Down

0 comments on commit b31d6ef

Please sign in to comment.