Disabling these tests - poorly written, and no longer viable as a concept

This commit is contained in:
2023-06-16 09:36:15 -05:00
parent 54bf5bed8f
commit 1ed51e0a35
2 changed files with 5 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import com.kingsrook.qqq.backend.core.exceptions.QException;
import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
import com.kingsrook.qqq.backend.core.utils.JsonUtils;
import com.kingsrook.qqq.backend.module.filesystem.TestUtils;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.junit.jupiter.api.Assertions.assertTrue;
@ -36,6 +37,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
/*******************************************************************************
** Unit test for FilesystemBackendMetaData
*******************************************************************************/
@Disabled("This concept doesn't seem right any more. We will want/need custom JSON/YAML serialization, so, let us disable this test, at least for now, and maybe permanently")
class FilesystemBackendMetaDataTest
{
@ -52,7 +54,7 @@ class FilesystemBackendMetaDataTest
System.out.println(JsonUtils.prettyPrint(json));
System.out.println(json);
String expectToContain = """
"local-filesystem":{"basePath":"/tmp/filesystem-tests/0","backendType":"filesystem","name":"local-filesystem","usesVariants":false}""";
"local-filesystem":{"disabledCapabilities":["QUERY_STATS"],"basePath":"/tmp/filesystem-tests/0","backendType":"filesystem","name":"local-filesystem","usesVariants":false}""";
assertTrue(json.contains(expectToContain));
}

View File

@ -28,6 +28,7 @@ import com.kingsrook.qqq.backend.core.model.metadata.QInstance;
import com.kingsrook.qqq.backend.core.utils.JsonUtils;
import com.kingsrook.qqq.backend.module.rdbms.BaseTest;
import com.kingsrook.qqq.backend.module.rdbms.TestUtils;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.junit.jupiter.api.Assertions.assertTrue;
@ -36,6 +37,7 @@ import static org.junit.jupiter.api.Assertions.assertTrue;
/*******************************************************************************
** Unit test for RDBMSBackendMetaData
*******************************************************************************/
@Disabled("This concept doesn't seem right any more. We will want/need custom JSON/YAML serialization, so, let us disable this test, at least for now, and maybe permanently")
class RDBMSBackendMetaDataTest extends BaseTest
{