Add test folder to the smo package installation
[it/dep.git] / smo-install / test / pythonsdk / src / oransdk / a1sim / a1sim.py
diff --git a/smo-install/test/pythonsdk/src/oransdk/a1sim/a1sim.py b/smo-install/test/pythonsdk/src/oransdk/a1sim/a1sim.py
new file mode 100644 (file)
index 0000000..19bbe6b
--- /dev/null
@@ -0,0 +1,23 @@
+#!/usr/bin/env python3
+# -*- coding: utf-8 -*-
+# SPDX-License-Identifier: Apache-2.0
+"""Oran A1 Simulator module."""
+
+from onapsdk.onap_service import OnapService
+
+class A1sim(OnapService):
+
+    @classmethod
+    def check_version(cls, url) -> str:
+        """
+        Return ric version.
+
+        Returns:
+            the ric version
+
+        """
+        url = f"{url}/counter/interface"
+        version = cls.send_message('GET',
+                                   'Get ric version',
+                                    url)
+        return version