Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmeggle committed Jul 29, 2021
2 parents 29eca5b + 6417e87 commit 2528510
Show file tree
Hide file tree
Showing 9 changed files with 72 additions and 57 deletions.
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
"contributions": [
"bug"
]
},
{
"login": "NimVek",
"name": "NimVek",
"avatar_url": "https://avatars.githubusercontent.com/u/6333118?v=4",
"profile": "https://github.com/NimVek",
"contributions": [
"bug"
]
}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
],
"python.testing.unittestEnabled": false,
"python.testing.nosetestsEnabled": false,
"python.testing.pytestEnabled": true
"python.testing.pytestEnabled": true,
"files.eol": "\n"
}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.1.1 - 2021-07-29

* Fixed CRLF bug, thanks @NimVek (#146)

## 1.1.1-beta - 2021-07-25

### Fixed
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Robotmk
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-4-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

*A complete solution to integrate **Robot Framework** End2End tests into **Checkmk***
Expand Down Expand Up @@ -313,6 +313,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center"><a href="http://kleinski.de"><img src="https://avatars.githubusercontent.com/u/3239736?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marcus Klein</b></sub></a><br /><a href="https://github.com/simonmeggle/robotmk/issues?q=author%3Akleinski" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://burntfen.com"><img src="https://avatars.githubusercontent.com/u/910753?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Richard Littauer</b></sub></a><br /><a href="#mentoring-RichardLitt" title="Mentoring">🧑‍🏫</a></td>
<td align="center"><a href="https://github.com/a-lohmann"><img src="https://avatars.githubusercontent.com/u/9255272?v=4?s=100" width="100px;" alt=""/><br /><sub><b>A. Lohmann</b></sub></a><br /><a href="https://github.com/simonmeggle/robotmk/issues?q=author%3Aa-lohmann" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/NimVek"><img src="https://avatars.githubusercontent.com/u/6333118?v=4?s=100" width="100px;" alt=""/><br /><sub><b>NimVek</b></sub></a><br /><a href="https://github.com/simonmeggle/robotmk/issues?q=author%3ANimVek" title="Bug reports">🐛</a></td>
</tr>
</table>

Expand Down
102 changes: 51 additions & 51 deletions agents_plugins/robotmk-runner.py
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
#!/usr/bin/env python3
# (c) 2020 Simon Meggle <[email protected]>

# This file is part of Robotmk, a module for the integration of Robot
# framework test results into Checkmk.
# https://robotmk.org
# https://github.com/simonmeggle/robotmk
# https://robotframework.org/#tools

# Robotmk is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation in version 3. This file is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more de-
# ails. You should have received a copy of the GNU General Public
# License along with GNU Make; see the file COPYING. If not, write
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.

try:
# Import the main Robotmk functions from the same directory (Windows)
from robotmk import robotmk, RMKPlugin, RMKrunner, test_for_modules
except ImportError:
# If the import fails, try to import robotmk form the parent directory (Linux)
# This is the case when the runner gets scheduled asynchronously on Linux where
# it is saved in a subfolder
import sys, os
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from robotmk import robotmk, RMKPlugin, RMKrunner, test_for_modules


def main():
test_for_modules()
RMKPlugin.get_args()
rmk = RMKrunner()
cmdline_suites='all' # TBD: start suites from cmdline
rmk.start_suites(cmdline_suites)
rmk.loginfo("... Quitting Runner, bye. ---")
# It is important to write at least one byte to the agent so that it can save this
# as a state with a cache_time.
print('')

if __name__ == '__main__':
main()
else:
# when imported as module
import mergedeep
import robot
import yaml
from dateutil import parser
#!/usr/bin/env python3
# (c) 2020 Simon Meggle <[email protected]>

# This file is part of Robotmk, a module for the integration of Robot
# framework test results into Checkmk.
# https://robotmk.org
# https://github.com/simonmeggle/robotmk
# https://robotframework.org/#tools

# Robotmk is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation in version 3. This file is distributed
# in the hope that it will be useful, but WITHOUT ANY WARRANTY; with-
# out even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the GNU General Public License for more de-
# ails. You should have received a copy of the GNU General Public
# License along with GNU Make; see the file COPYING. If not, write
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.

try:
# Import the main Robotmk functions from the same directory (Windows)
from robotmk import robotmk, RMKPlugin, RMKrunner, test_for_modules
except ImportError:
# If the import fails, try to import robotmk form the parent directory (Linux)
# This is the case when the runner gets scheduled asynchronously on Linux where
# it is saved in a subfolder
import sys, os
sys.path.insert(1, os.path.join(sys.path[0], '..'))
from robotmk import robotmk, RMKPlugin, RMKrunner, test_for_modules


def main():
test_for_modules()
RMKPlugin.get_args()
rmk = RMKrunner()
cmdline_suites='all' # TBD: start suites from cmdline
rmk.start_suites(cmdline_suites)
rmk.loginfo("... Quitting Runner, bye. ---")
# It is important to write at least one byte to the agent so that it can save this
# as a state with a cache_time.
print('')

if __name__ == '__main__':
main()
else:
# when imported as module
import mergedeep
import robot
import yaml
from dateutil import parser
2 changes: 1 addition & 1 deletion agents_plugins/robotmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@


local_tz = datetime.utcnow().astimezone().tzinfo
ROBOTMK_VERSION = 'v1.1.1-beta'
ROBOTMK_VERSION = 'v1.1.1'

#<robotmk-keywordlibrary
# Imported from https://raw.githubusercontent.com/simonmeggle/robotframework-robotmk/
Expand Down
2 changes: 1 addition & 1 deletion bakery/v2/robotmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.

ROBOTMK_VERSION = 'v1.1.1-beta'
ROBOTMK_VERSION = 'v1.1.1'

from typing import Iterable, TypedDict, List
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion checks/v1/robotmk
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ except:

utc = pytz.utc

ROBOTMK_VERSION = 'v1.1.1-beta'
ROBOTMK_VERSION = 'v1.1.1'

DEFAULT_SVC_PREFIX = 'Robot Framework E2E $SUITEID$SPACE-$SPACE'

Expand Down
2 changes: 1 addition & 1 deletion checks/v2/robotmk.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

# UTC = pytz.utc

ROBOTMK_VERSION = 'v1.1.1-beta'
ROBOTMK_VERSION = 'v1.1.1'

DEFAULT_SVC_PREFIX = 'Robot Framework E2E $SUITEID$SPACE-$SPACE'

Expand Down

0 comments on commit 2528510

Please sign in to comment.