osbuild2: rename profile_id to profile in authselect stage
Reflect https://github.com/osbuild/osbuild/pull/729 in osbuild-composer. Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
234c51e562
commit
2be664de38
2 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
package osbuild2
|
||||
|
||||
type AuthselectStageOptions struct {
|
||||
Profile string `json:"profile_id"`
|
||||
Profile string `json:"profile"`
|
||||
Features []string `json:"features,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ func TestStage_UnmarshalJSON(t *testing.T) {
|
|||
},
|
||||
},
|
||||
args: args{
|
||||
data: []byte(`{"type":"org.osbuild.authselect","options":{"profile_id":"sssd"}}`),
|
||||
data: []byte(`{"type":"org.osbuild.authselect","options":{"profile":"sssd"}}`),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -75,7 +75,7 @@ func TestStage_UnmarshalJSON(t *testing.T) {
|
|||
},
|
||||
},
|
||||
args: args{
|
||||
data: []byte(`{"type":"org.osbuild.authselect","options":{"profile_id":"nis","features":["with-ecryptfs","with-mkhomedir"]}}`),
|
||||
data: []byte(`{"type":"org.osbuild.authselect","options":{"profile":"nis","features":["with-ecryptfs","with-mkhomedir"]}}`),
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue