summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app/shared/services/utilityService/utility.service.spec.ts12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/app/shared/services/utilityService/utility.service.spec.ts b/src/app/shared/services/utilityService/utility.service.spec.ts
index e35bfed..4054a89 100644
--- a/src/app/shared/services/utilityService/utility.service.spec.ts
+++ b/src/app/shared/services/utilityService/utility.service.spec.ts
@@ -18,8 +18,6 @@ distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-
-ECOMP is a trademark and service mark of AT&T Intellectual Property.
============LICENSE_END============================================
*/
@@ -73,4 +71,14 @@ describe('UtilityService', () => {
let result = { output: {status: {code: '400'}}};
service.processApiSubscribe(result, 'getArtifact', '');
}));
+
+ it('should set warning message on status 401 and artifact upload', inject([UtilityService], (service: UtilityService) => {
+ let result = { output: {status: {code: '401'}}};
+ service.processApiSubscribe(result, 'uploadArtifact', '');
+ }));
+
+ it('should set suceess message on status 400 and artifact upload', inject([UtilityService], (service: UtilityService) => {
+ let result = { output: {status: {code: '400'}}};
+ service.processApiSubscribe(result, 'uploadArtifact', '');
+ }));
});