File: package.py

package info (click to toggle)
python-dcos 0.2.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,440 kB
  • sloc: python: 8,196; sh: 194; makefile: 36
file content (145 lines) | stat: -rw-r--r-- 4,485 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
from dcos.package import HttpSource, IndexEntries


def package_fixture():
    """ DCOS package fixture.

    :rtype: dict
    """

    return {
        "apps": [
            "/helloworld"
        ],
        "command": {
            "name": "helloworld"
        },
        "description": "Example DCOS application package",
        "maintainer": "support@mesosphere.io",
        "name": "helloworld",
        "packageSource":
        "https://github.com/mesosphere/universe/archive/master.zip",
        "postInstallNotes": "A sample post-installation message",
        "preInstallNotes": "A sample pre-installation message",
        "releaseVersion": "0",
        "tags": [
            "mesosphere",
            "example",
            "subcommand"
        ],
        "version": "0.1.0",
        "website": "https://github.com/mesosphere/dcos-helloworld"
    }


def search_result_fixture():
    """ DCOS package search result fixture.

    :rtype: dict
    """

    return IndexEntries(
        HttpSource(
            "https://github.com/mesosphere/universe/archive/master.zip"),
        [
            {
                "currentVersion": "0.1.0-SNAPSHOT-447-master-3ad1bbf8f7",
                "description": "Apache Cassandra running on Apache Mesos",
                "framework": True,
                "name": "cassandra",
                "tags": [
                    "mesosphere",
                    "framework"
                ],
                "versions": [
                    "0.1.0-SNAPSHOT-447-master-3ad1bbf8f7"
                ]
            },
            {
                "currentVersion": "2.3.4",
                "description": ("A fault tolerant job scheduler for Mesos " +
                                "which handles dependencies and ISO8601 " +
                                "based schedules."),
                "framework": True,
                "name": "chronos",
                "tags": [
                    "mesosphere",
                    "framework"
                ],
                "versions": [
                    "2.3.4"
                ]
            },
            {
                "currentVersion": "0.1.1",
                "description": ("Hadoop Distributed File System (HDFS), " +
                                "Highly Available"),
                "framework": True,
                "name": "hdfs",
                "tags": [
                    "mesosphere",
                    "framework",
                    "filesystem"
                ],
                "versions": [
                    "0.1.1"
                ]
            },
            {
                "currentVersion": "0.1.0",
                "description": "Example DCOS application package",
                "framework": False,
                "name": "helloworld",
                "tags": [
                    "mesosphere",
                    "example",
                    "subcommand"
                ],
                "versions": [
                    "0.1.0"
                ]
            },
            {
                "currentVersion": "0.9.0-beta",
                "description": "Apache Kafka running on top of Apache Mesos",
                "framework": True,
                "name": "kafka",
                "tags": [
                    "mesosphere",
                    "framework",
                    "bigdata"
                ],
                "versions": [
                    "0.9.0-beta"
                ]
            },
            {
                "currentVersion": "0.8.1",
                "description": ("A cluster-wide init and control system for " +
                                "services in cgroups or Docker containers."),
                "framework": True,
                "name": "marathon",
                "tags": [
                    "mesosphere",
                    "framework"
                ],
                "versions": [
                    "0.8.1"
                ]
            },
            {
                "currentVersion": "1.4.0-SNAPSHOT",
                "description": ("Spark is a fast and general cluster " +
                                "computing system for Big Data"),
                "framework": True,
                "name": "spark",
                "tags": [
                    "mesosphere",
                    "framework",
                    "bigdata"
                ],
                "versions": [
                    "1.4.0-SNAPSHOT"
                ]
            }
        ]).as_dict()