рабочий вариант, но скороть 10 МБит
This commit is contained in:
@@ -18,9 +18,9 @@ func TestProjectAdminRuntimeReturnsReadOnlyManifest(t *testing.T) {
|
||||
req := httptest.NewRequest(http.MethodPost, "/clusters/cluster-1/nodes/node-1/admin-runtime/projection", bytes.NewReader([]byte(`{
|
||||
"schema_version":"rap.web_ingress.control_api_projection_request.v1",
|
||||
"method":"GET",
|
||||
"path":"/platform-admin/ui-manifest",
|
||||
"path":"/admin/ui-manifest",
|
||||
"scope":"platform",
|
||||
"service_class":"platform_admin"
|
||||
"service_class":"admin-ingress"
|
||||
}`)))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
@@ -72,9 +72,9 @@ func TestProjectAdminRuntimeRejectsMutations(t *testing.T) {
|
||||
req := httptest.NewRequest(http.MethodPost, "/clusters/cluster-1/nodes/node-1/admin-runtime/projection", bytes.NewReader([]byte(`{
|
||||
"schema_version":"rap.web_ingress.control_api_projection_request.v1",
|
||||
"method":"POST",
|
||||
"path":"/platform-admin/nodes",
|
||||
"path":"/admin/nodes",
|
||||
"scope":"platform",
|
||||
"service_class":"platform_admin"
|
||||
"service_class":"admin-ingress"
|
||||
}`)))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
@@ -106,7 +106,7 @@ func TestProjectAdminRuntimeReturnsHealthProjection(t *testing.T) {
|
||||
"method":"GET",
|
||||
"path":"/readyz",
|
||||
"scope":"platform",
|
||||
"service_class":"platform_admin"
|
||||
"service_class":"admin-ingress"
|
||||
}`)))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
@@ -147,9 +147,9 @@ func TestProjectAdminRuntimeBlocksUnknownReadProjection(t *testing.T) {
|
||||
req := httptest.NewRequest(http.MethodPost, "/clusters/cluster-1/nodes/node-1/admin-runtime/projection", bytes.NewReader([]byte(`{
|
||||
"schema_version":"rap.web_ingress.control_api_projection_request.v1",
|
||||
"method":"GET",
|
||||
"path":"/platform-admin/nodes",
|
||||
"path":"/admin/nodes",
|
||||
"scope":"platform",
|
||||
"service_class":"platform_admin"
|
||||
"service_class":"admin-ingress"
|
||||
}`)))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
@@ -181,9 +181,9 @@ func TestProjectAdminRuntimeRejectsScopeClassMismatch(t *testing.T) {
|
||||
req := httptest.NewRequest(http.MethodPost, "/clusters/cluster-1/nodes/node-1/admin-runtime/projection", bytes.NewReader([]byte(`{
|
||||
"schema_version":"rap.web_ingress.control_api_projection_request.v1",
|
||||
"method":"GET",
|
||||
"path":"/platform-admin/ui-manifest",
|
||||
"path":"/admin/ui-manifest",
|
||||
"scope":"organization",
|
||||
"service_class":"platform_admin"
|
||||
"service_class":"admin-ingress"
|
||||
}`)))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
@@ -217,7 +217,7 @@ func TestProjectAdminRuntimeRejectsInvalidSchema(t *testing.T) {
|
||||
"method":"GET",
|
||||
"path":"/readyz",
|
||||
"scope":"platform",
|
||||
"service_class":"platform_admin"
|
||||
"service_class":"admin-ingress"
|
||||
}`)))
|
||||
rec := httptest.NewRecorder()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user