Example #1
0
        public void QuerySchemaEndpointForSchemaTest()
        {
            RallyRestApi restApi = RallyRestApiTest.GetRallyRestApi(wsapiVersion: "v2.0");
            long         oid     = 1155237251;

            CacheableQueryResult results = restApi.GetTypes(String.Format("/schema/{0}", oid));

            Assert.IsNotNull(results);
            Assert.IsFalse(results.IsCachedResult);

            results = restApi.GetTypes(String.Format("/schema/{0}", oid));
            Assert.IsNotNull(results);
            Assert.IsTrue(results.IsCachedResult);
        }
Example #2
0
        public void QuerySchemaEndpointForWorkspaceTest()
        {
            RallyRestApi restApi = RallyRestApiTest.GetRallyRestApi(wsapiVersion: "v2.0");
            long         oid     = 14949797488;

            CacheableQueryResult results = restApi.GetTypes(String.Format("/workspace/{0}", oid));

            Assert.IsNotNull(results);
            Assert.IsFalse(results.IsCachedResult);

            results = restApi.GetTypes(String.Format("/workspace/{0}", oid));
            Assert.IsNotNull(results);
            Assert.IsTrue(results.IsCachedResult);
        }
        public void QuerySchemaEndpointForSchemaTest()
        {
            RallyRestApi restApi = RallyRestApiTest.GetRallyRestApi(wsapiVersion: "v2.0");

            CookieAwareCacheableWebClient.ClearOldCacheFilesFromDisk(true);
            long oid = 1155237251;

            CacheableQueryResult results = restApi.GetTypes(String.Format("/schema/{0}", oid));

            Assert.IsNotNull(results);
            Assert.IsFalse(results.IsCachedResult);

            results = restApi.GetTypes(String.Format("/schema/{0}", oid));
            Assert.IsNotNull(results);
            Assert.IsTrue(results.IsCachedResult);
        }
        public void QuerySchemaEndpointBadWsapiVersionTest()
        {
            RallyRestApi restApi = RallyRestApiTest.GetRallyRestApi(wsapiVersion: "1.43");

            restApi.GetTypes("");
        }