Skip to content

Commit 80e6435

Browse files
authored
Merge pull request #239 from watson-developer-cloud/hotfix-outdatedServices
Hotfix outdated services
2 parents ad55987 + 3235a00 commit 80e6435

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

Config.json.enc

496 Bytes
Binary file not shown.

Scripts/Services/Discovery/v1/DataModels.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ public class DiskUsage
9898
/// <summary>
9999
/// Number of bytes used on the environment's disk capacity.
100100
/// </summary>
101-
public uint used_bytes { get; set; }
101+
public long used_bytes { get; set; }
102102
/// <summary>
103103
/// Total number of bytes available in the environment's disk capacity.
104104
/// </summary>
105-
public uint total_bytes { get; set; }
105+
public long total_bytes { get; set; }
106106
/// <summary>
107107
/// Amount of disk capacity used, in KB or GB format.
108108
/// </summary>
@@ -126,11 +126,11 @@ public class MemoryUsage
126126
/// <summary>
127127
/// Number of bytes used in the environment's memory capacity.
128128
/// </summary>
129-
public uint used_bytes { get; set; }
129+
public long used_bytes { get; set; }
130130
/// <summary>
131131
/// Total number of bytes available in the environment's memory capacity.
132132
/// </summary>
133-
public uint total_bytes { get; set; }
133+
public long total_bytes { get; set; }
134134
/// <summary>
135135
/// Amount of memory capacity used, in KB or GB format.
136136
/// </summary>

Scripts/Services/VisualRecognition/VisualRecognition.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,6 @@ private void OnCheckService(GetClassifiersPerClassifierVerbose classifier, strin
23622362
m_GetClassifierCount -= 1;
23632363
if (classifier != null)
23642364
{
2365-
Log.Debug("VisualRecognition", "classifier status: {0}", classifier.status);
23662365
if (classifier.status == "unavailable" || classifier.status == "failed")
23672366
{
23682367
Log.Debug("VisualRecognition", "Status of classifier {0} came back as {1}.", classifier.classifier_id, classifier.status);

Scripts/UnitTests/TestDiscovery.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class TestDiscovery : UnitTest
2929

3030
// Environment
3131
private string m_CreatedEnvironmentName = "unity-sdk-integration-test";
32-
private string m_CreatedEnvironmentDescription = "Integration test running for Unity SDK. Please do not delete this environment until 10 minutes after the status is 'active'. The test should delete this environment.";
32+
private string m_CreatedEnvironmentDescription = "Integration test running for Unity SDK. Please do not delete this environment until 10 minutes after the status is active. The test should delete this environment.";
3333
private string m_CreatedEnvironmentID;
3434
private bool m_IsEnvironmentActive = false;
3535

@@ -133,7 +133,7 @@ public override IEnumerator RunTest()
133133

134134
Test(!string.IsNullOrEmpty(resp.environment_id));
135135
m_AddEnvironmentsTested = true;
136-
}, m_CreatedEnvironmentName, m_CreatedEnvironmentDescription, 0))
136+
}, m_CreatedEnvironmentName, m_CreatedEnvironmentDescription, 1))
137137
Log.Debug("ExampleDiscoveryV1", "Failed to add environment");
138138

139139
while (!m_AddEnvironmentsTested)

Scripts/UnitTests/TestRetrieveAndRank.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ public class TestRetrieveAndRank : UnitTest
9696

9797
public override IEnumerator RunTest()
9898
{
99+
LogSystem.InstallDefaultReactors();
100+
99101
m_IntegrationTestClusterConfigPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/RetrieveAndRank/cranfield_solr_config.zip";
100102
m_IntegrationTestRankerTrainingPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/RetrieveAndRank/ranker_training_data.csv";
101103
m_IntegrationTestRankerAnswerDataPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/RetrieveAndRank/ranker_answer_data.csv";

0 commit comments

Comments
 (0)