test: add WOPI collaboration test suite to k8s CI pipeline (#12018)

This commit is contained in:
Pradip Subedi
2026-03-03 16:49:43 +05:45
committed by GitHub
parent 5e508e530a
commit e081ce390b
4 changed files with 143 additions and 33 deletions

View File

@@ -168,7 +168,7 @@ Feature: check file info with different wopi apps
"const": "textfile0.txt"
},
"PostMessageOrigin": {
"const": "https://localhost:9200"
"const": "%base_url%"
},
"DisablePrint": {
"const": false
@@ -566,7 +566,7 @@ Feature: check file info with different wopi apps
"const": "textfile0.txt"
},
"PostMessageOrigin": {
"const": "https://localhost:9200"
"const": "%base_url%"
},
"DisablePrint": {
"const": <disable-print>
@@ -676,7 +676,7 @@ Feature: check file info with different wopi apps
"const": "textfile0.txt"
},
"PostMessageOrigin": {
"const": "https://localhost:9200"
"const": "%base_url%"
},
"DisablePrint": {
"const": false
@@ -1062,7 +1062,7 @@ Feature: check file info with different wopi apps
"const": "renamedfile.txt"
},
"PostMessageOrigin": {
"const": "https://localhost:9200"
"const": "%base_url%"
},
"DisablePrint": {
"const": false
@@ -1409,7 +1409,7 @@ Feature: check file info with different wopi apps
"const": "text.txt"
},
"PostMessageOrigin": {
"const": "https://localhost:9200"
"const": "%base_url%"
},
"DisablePrint": {
"const": false
@@ -1795,7 +1795,7 @@ Feature: check file info with different wopi apps
"const": "text.txt"
},
"PostMessageOrigin": {
"const": "https://localhost:9200"
"const": "%base_url%"
},
"DisablePrint": {
"const": <disable-print>

View File

@@ -27,7 +27,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"
@@ -73,7 +73,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"
@@ -115,7 +115,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"
@@ -163,7 +163,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"
@@ -214,7 +214,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"
@@ -315,7 +315,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"
@@ -366,9 +366,9 @@ Feature: collaboration (wopi)
}
"""
Examples:
| app-endpoint | url-query |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice | app=FakeOffice& |
| /app/open-with-web?file_id=<<FILEID>> | app=FakeOffice& |
| app-endpoint | url-query |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice | app=FakeOffice& |
| /app/open-with-web?file_id=<<FILEID>> | app=(FakeOffice\|Collabora\|OnlyOffice)& |
Scenario: open text file using open-with-web with app name in url query (MIME type not registered in app-registry)
@@ -408,7 +408,7 @@ Feature: collaboration (wopi)
"properties": {
"uri": {
"type": "string",
"pattern": "%base_url%/external\\?app=FakeOffice&contextRouteName=files-spaces-personal&fileId=%uuidv4_pattern%%24%uuidv4_pattern%%21%uuidv4_pattern%$"
"pattern": "%base_url%/external\\?app=(FakeOffice|Collabora|OnlyOffice)&contextRouteName=files-spaces-personal&fileId=%uuidv4_pattern%%24%uuidv4_pattern%%21%uuidv4_pattern%$"
}
}
}
@@ -441,9 +441,9 @@ Feature: collaboration (wopi)
}
"""
Examples:
| app-endpoint | url-query |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice | app=FakeOffice& |
| /app/open-with-web?file_id=<<FILEID>> | app=FakeOffice& |
| app-endpoint | url-query |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice | app=FakeOffice& |
| /app/open-with-web?file_id=<<FILEID>> | app=(FakeOffice\|Collabora\|OnlyOffice)& |
Scenario Outline: sharee open file with .odt extension (open-with-web)
@@ -473,9 +473,9 @@ Feature: collaboration (wopi)
}
"""
Examples:
| app-endpoint | url-query |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice | app=FakeOffice& |
| /app/open-with-web?file_id=<<FILEID>> | app=FakeOffice& |
| app-endpoint | url-query |
| /app/open-with-web?file_id=<<FILEID>>&app_name=FakeOffice | app=FakeOffice& |
| /app/open-with-web?file_id=<<FILEID>> | app=(FakeOffice\|Collabora\|OnlyOffice)& |
Scenario Outline: open file with .odt extension with different view mode (open-with-web)
@@ -1108,7 +1108,7 @@ Feature: collaboration (wopi)
"properties": {
"app_url": {
"type": "string",
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}$"
"pattern": "^.*\\?WOPISrc=.*wopi%2Ffiles%2F[a-fA-F0-9]{64}"
},
"method": {
"const": "POST"

View File

@@ -103,6 +103,43 @@ features:
quotas:
default: "1000000000"
max: "0"
appsIntegration:
enabled: false
wopiIntegration:
officeSuites:
- name: "Collabora"
uri: "https://collabora:9980"
wopiSrc: "http://ocis-server:9300"
product: "Collabora"
enabled: true
insecure: true
disableProof: true
secureViewEnabled: false
disableChat: true
ingress:
enabled: false
- name: "FakeOffice"
uri: "http://fakeoffice:8080"
wopiSrc: "http://ocis-server:9301"
product: "FakeOffice"
enabled: true
insecure: true
disableProof: true
secureViewEnabled: false
disableChat: true
ingress:
enabled: false
- name: "OnlyOffice"
uri: "https://onlyoffice"
wopiSrc: "http://ocis-server:9302"
product: "OnlyOffice"
enabled: true
insecure: true
disableProof: true
secureViewEnabled: false
disableChat: true
ingress:
enabled: false
http:
cors: