File tree Expand file tree Collapse file tree 16 files changed +16
-15
lines changed Expand file tree Collapse file tree 16 files changed +16
-15
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ README.md.meta
53
53
Travis.meta
54
54
exclude-filter.txt
55
55
exclude-filter.txt.meta
56
+ etc.meta
56
57
/Travis /UnityTestProject /Assets /StreamingAssets /Config.json
57
58
/Travis /UnityTestProject /Assets /StreamingAssets /Config.json.meta
58
59
/Travis /UnityTestProject /Assets /StreamingAssets /Config.json.enc.meta
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public override IEnumerator RunTest()
137
137
throw new WatsonException ( r . FormattedMessages ) ;
138
138
139
139
// Set credentials from imported credntials
140
- Credential credential = vcapCredentials . VCAP_SERVICES [ "alchemy_api" ] [ TestCredentialIndex ] . Credentials ;
140
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "alchemy_api" ] ;
141
141
_apikey = credential . Apikey . ToString ( ) ;
142
142
_url = credential . Url . ToString ( ) ;
143
143
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public override IEnumerator RunTest()
72
72
throw new WatsonException ( r . FormattedMessages ) ;
73
73
74
74
// Set credentials from imported credntials
75
- Credential credential = vcapCredentials . VCAP_SERVICES [ "conversation" ] [ TestCredentialIndex ] . Credentials ;
75
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "conversation" ] ;
76
76
_username = credential . Username . ToString ( ) ;
77
77
_password = credential . Password . ToString ( ) ;
78
78
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ public override IEnumerator RunTest()
101
101
throw new WatsonException ( r . FormattedMessages ) ;
102
102
103
103
// Set credentials from imported credntials
104
- Credential credential = vcapCredentials . VCAP_SERVICES [ "discovery" ] [ TestCredentialIndex ] . Credentials ;
104
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "discovery" ] ;
105
105
_username = credential . Username . ToString ( ) ;
106
106
_password = credential . Password . ToString ( ) ;
107
107
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public override IEnumerator RunTest()
69
69
throw new WatsonException ( r . FormattedMessages ) ;
70
70
71
71
// Set credentials from imported credntials
72
- Credential credential = vcapCredentials . VCAP_SERVICES [ "document_conversion" ] [ TestCredentialIndex ] . Credentials ;
72
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "document_conversion" ] ;
73
73
_username = credential . Username . ToString ( ) ;
74
74
_password = credential . Password . ToString ( ) ;
75
75
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public override IEnumerator RunTest()
79
79
throw new WatsonException ( r . FormattedMessages ) ;
80
80
81
81
// Set credentials from imported credntials
82
- Credential credential = vcapCredentials . VCAP_SERVICES [ "language_translator" ] [ TestCredentialIndex ] . Credentials ;
82
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "language_translator" ] ;
83
83
_username = credential . Username . ToString ( ) ;
84
84
_password = credential . Password . ToString ( ) ;
85
85
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public override IEnumerator RunTest()
87
87
throw new WatsonException ( r . FormattedMessages ) ;
88
88
89
89
// Set credentials from imported credntials
90
- Credential credential = vcapCredentials . VCAP_SERVICES [ "natural_language_classifier" ] [ TestCredentialIndex ] . Credentials ;
90
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "natural_language_classifier" ] ;
91
91
_username = credential . Username . ToString ( ) ;
92
92
_password = credential . Password . ToString ( ) ;
93
93
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public override IEnumerator RunTest()
68
68
throw new WatsonException ( r . FormattedMessages ) ;
69
69
70
70
// Set credentials from imported credntials
71
- Credential credential = vcapCredentials . VCAP_SERVICES [ "natural_language_understanding" ] [ TestCredentialIndex ] . Credentials ;
71
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "natural_language_understanding" ] ;
72
72
_username = credential . Username . ToString ( ) ;
73
73
_password = credential . Password . ToString ( ) ;
74
74
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public override IEnumerator RunTest()
75
75
throw new WatsonException ( r . FormattedMessages ) ;
76
76
77
77
// Set credentials from imported credntials
78
- Credential credential = vcapCredentials . VCAP_SERVICES [ "personality_insights" ] [ TestCredentialIndex ] . Credentials ;
78
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "personality_insights" ] ;
79
79
_username = credential . Username . ToString ( ) ;
80
80
_password = credential . Password . ToString ( ) ;
81
81
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public override IEnumerator RunTest()
114
114
throw new WatsonException ( r . FormattedMessages ) ;
115
115
116
116
// Set credentials from imported credntials
117
- Credential credential = vcapCredentials . VCAP_SERVICES [ "retrieve_and_rank" ] [ TestCredentialIndex ] . Credentials ;
117
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "retrieve_and_rank" ] ;
118
118
_username = credential . Username . ToString ( ) ;
119
119
_password = credential . Password . ToString ( ) ;
120
120
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ public override IEnumerator RunTest()
115
115
throw new WatsonException ( r . FormattedMessages ) ;
116
116
117
117
// Set credentials from imported credntials
118
- Credential credential = vcapCredentials . VCAP_SERVICES [ "speech_to_text" ] [ TestCredentialIndex ] . Credentials ;
118
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "speech_to_text" ] ;
119
119
_username = credential . Username . ToString ( ) ;
120
120
_password = credential . Password . ToString ( ) ;
121
121
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public override IEnumerator RunTest()
90
90
throw new WatsonException ( r . FormattedMessages ) ;
91
91
92
92
// Set credentials from imported credntials
93
- Credential credential = vcapCredentials . VCAP_SERVICES [ "text_to_speech" ] [ TestCredentialIndex ] . Credentials ;
93
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "text_to_speech" ] ;
94
94
_username = credential . Username . ToString ( ) ;
95
95
_password = credential . Password . ToString ( ) ;
96
96
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ public override IEnumerator RunTest()
69
69
throw new WatsonException ( r . FormattedMessages ) ;
70
70
71
71
// Set credentials from imported credntials
72
- Credential credential = vcapCredentials . VCAP_SERVICES [ "tone_analyzer" ] [ TestCredentialIndex ] . Credentials ;
72
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "tone_analyzer" ] ;
73
73
_username = credential . Username . ToString ( ) ;
74
74
_password = credential . Password . ToString ( ) ;
75
75
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public override IEnumerator RunTest()
68
68
throw new WatsonException ( r . FormattedMessages ) ;
69
69
70
70
// Set credentials from imported credntials
71
- Credential credential = vcapCredentials . VCAP_SERVICES [ "tradeoff_analytics" ] [ TestCredentialIndex ] . Credentials ;
71
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "tradeoff_analytics" ] ;
72
72
_username = credential . Username . ToString ( ) ;
73
73
_password = credential . Password . ToString ( ) ;
74
74
_url = credential . Url . ToString ( ) ;
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public override IEnumerator RunTest()
91
91
throw new WatsonException ( r . FormattedMessages ) ;
92
92
93
93
// Set credentials from imported credntials
94
- Credential credential = vcapCredentials . VCAP_SERVICES [ "visual_recognition" ] [ TestCredentialIndex ] . Credentials ;
94
+ Credential credential = vcapCredentials . VCAP_SERVICES [ "visual_recognition" ] ;
95
95
_apikey = credential . Apikey . ToString ( ) ;
96
96
_url = credential . Url . ToString ( ) ;
97
97
}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public bool HasApiKey()
127
127
[ fsObject ]
128
128
public class VcapCredentials
129
129
{
130
- public Dictionary < string , List < VcapCredential > > VCAP_SERVICES { get ; set ; }
130
+ public Dictionary < string , Credential > VCAP_SERVICES { get ; set ; }
131
131
}
132
132
133
133
[ fsObject ]
You can’t perform that action at this time.
0 commit comments