mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
odo init filters devfile stacks by supported architectures (#7004)
* Add --architecture flag * Ask architecture during interactive mode * Display architectures of detected Devfile * Fix integration tests * Fix automated doc * Fix e2e tests * Ignore empty lines on doc automation tests * Update pkg/odo/cli/registry/registry.go Co-authored-by: Armel Soro <armel@rm3l.org> * Fix Architectures field in API * Change "select architectures" prompt --------- Co-authored-by: Armel Soro <armel@rm3l.org>
This commit is contained in:
@@ -52,14 +52,15 @@ func TestOdoAlizer(t *testing.T) {
|
||||
alizerClient := alizer.NewMockClient(ctrl)
|
||||
path := "/"
|
||||
alizerClient.EXPECT().DetectFramework(gomock.Any(), path).
|
||||
Return(
|
||||
model.DevFileType{
|
||||
Return(alizer.DetectedFramework{
|
||||
Type: model.DevFileType{
|
||||
Name: "framework-name",
|
||||
},
|
||||
"1.1.1",
|
||||
api.Registry{
|
||||
DefaultVersion: "1.1.1",
|
||||
Registry: api.Registry{
|
||||
Name: "TheRegistryName",
|
||||
},
|
||||
},
|
||||
nil,
|
||||
)
|
||||
alizerClient.EXPECT().DetectPorts(path).Return([]int{8080, 3000}, nil)
|
||||
@@ -92,14 +93,15 @@ func TestOdoAlizer(t *testing.T) {
|
||||
alizerClient := alizer.NewMockClient(ctrl)
|
||||
path := "/"
|
||||
alizerClient.EXPECT().DetectFramework(gomock.Any(), path).
|
||||
Return(
|
||||
model.DevFileType{
|
||||
Return(alizer.DetectedFramework{
|
||||
Type: model.DevFileType{
|
||||
Name: "framework-name",
|
||||
},
|
||||
"1.1.1",
|
||||
api.Registry{
|
||||
DefaultVersion: "1.1.1",
|
||||
Registry: api.Registry{
|
||||
Name: "TheRegistryName",
|
||||
},
|
||||
},
|
||||
nil,
|
||||
)
|
||||
alizerClient.EXPECT().DetectPorts(path).Return([]int{8080, 3000}, nil)
|
||||
|
||||
Reference in New Issue
Block a user