예제 #1
0
 def test_create_manifest(self):
     input_manifests = InputManifests("test")
     input_manifest = input_manifests.create_manifest("1.2.3", [])
     self.assertEqual(
         input_manifest.to_dict(),
         {
             "schema-version": "1.0",
             "build": {
                 "name": "test",
                 "version": "1.2.3"
             },
             "ci": {
                 "image": {
                     "name":
                     "opensearchstaging/ci-runner:centos7-x64-arm64-jdkmulti-node10.24.1-cypress6.9.1-20211028"
                 }
             },
         },
     )
예제 #2
0
 def test_create_manifest_opensearch_dashboards(self) -> None:
     input_manifests = InputManifests("opensearch-dashboards")
     input_manifest = input_manifests.create_manifest("1.2.3", [])
     self.assertEqual(
         input_manifest.to_dict(),
         {
             "schema-version": "1.0",
             "build": {
                 "name": "opensearch-dashboards",
                 "version": "1.2.3"
             },
             "ci": {
                 "image": {
                     "name":
                     "opensearchstaging/ci-runner:ci-runner-centos7-opensearch-dashboards-build-v2"
                 }
             },
         },
     )