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:
Tomas Hozza 2021-07-19 15:14:07 +02:00 committed by Ondřej Budai
parent 234c51e562
commit 2be664de38
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
package osbuild2
type AuthselectStageOptions struct {
Profile string `json:"profile_id"`
Profile string `json:"profile"`
Features []string `json:"features,omitempty"`
}

View file

@ -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"]}}`),
},
},
{