Project

General

Profile

Download (7.44 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
b0f28c2c 05/10/2024 09:55 AM Archana Kumari

Fixes #37432 - Fix Style/GlobalStdStream cop

d62da160 02/14/2024 06:35 AM Ewoud Kohl van Wijngaarden

Refs #37102 - Read real webpack manifest in test

In some test cases (like controller tests) the real manifest isn't
needed, but in integration tests they are.

Rails has deprecated controller tests in favor of integration tests, but
Foreman still has them. This modifies the fake read_webpack_manifest to...

47288398 02/01/2024 09:23 PM Oleh Fedorenko

Refs #36849 - Enable strict keyword argument matching

89c61045 01/26/2024 10:44 AM Maria Agaphontzev

Fixes #37102 - webpack 5

b566ea8a 11/09/2023 11:06 AM Ewoud Kohl van Wijngaarden

Fixes #32848 - Support linking to docs.theforeman.org

An effort is under way to use docs.theforeman.org as the primary
documentation source. It is already the official documentation source
for Katello, but until now it wasn't easily possible to (correctly) link...

f03e699e 11/06/2023 09:02 PM Jeremy Lenz

Fixes #36867 - Add host delete & create
Add bulk modal with bulk params
add register/create buttons; fix links
address UX comments
Remove icon from delete action in the toolbar’s kebab
In the delete modal as a primary button use just “Delete”
(not delete host)...

735b4016 09/27/2023 03:11 PM Jeremy Lenz

Fixes #36715 - Speed up host fact retrieval

17ae8080 08/09/2023 10:00 AM Evgeni Golov

Fixes #36661 - remove restore_plugins from test_helper

2cadaaaa 08/08/2023 10:13 AM Evgeni Golov

Fixes #36651 - Support Minitest 5.19+

  • This reverts commit 1c3a4155f286352e0abbf0d0b298e47e81c2d6c5.
    Thus un-pinning minitest again
  • update minitest-spec-rails to 7.1+
    This contains a fix required for minitest 5.19+
  • Update mocha to 2.1+ for minitest 5.19+ compat...
339fe635 12/09/2022 05:11 PM Kamil Szubrycht

Refs #32685 - Keep modulized model name in Global ID

952e1614 09/28/2022 09:35 AM Evgeni Golov

Fixes #32685 - update graphql to 1.13.x

GrapQL 1.13.x is a large update and can break plugins, but it is Ruby 3
compatible.

Co-authored-by: Oleh Fedorenko <>

b1f03b37 12/02/2021 03:02 PM Ewoud Kohl van Wijngaarden

Fixes #26968 - Switch to minitest-reporters

ci_reporter_minitest is unmaintained and since minitest 5.1 it no longer
shows the class names. minitest-reporters does.

3f46c0d3 10/13/2020 06:55 AM Ondřej Ezr

Fixes #31016 - refresh registries after plugin testing (#8055)

Fixes #31016 - refresh registries after plugin testing

Introduce mechanisms to refresh the plugin registries.
We pollute these during plugin mechanisms testing and it never gets cleaned up.
This makes sure we clean mocks and stubs from the registries.

f707101e 04/17/2020 08:37 AM Ondřej Ezr

Fixes #29524 - association preloading in testing

6f0e3072 03/18/2020 03:21 PM Michael Moll

Fixes #29349 - Fix Layout/SpaceInsideArrayLiteralBrackets cop

c86ed9c6 03/18/2020 09:11 AM Michael Moll

Fixes #19896 - Fix Style/RedundantSelf cop

edcb23e2 03/16/2020 02:25 PM Shira Maximov

Fixes #28363 - Drop lookup key matcher length limit

64d67619 03/05/2020 02:17 PM Lukas Zapletal

Fixes #29248 - add DNS stubs for all tests

44e19b35 02/28/2020 01:14 PM Michael Moll

Fixes #19792 - Fix Layout/SpaceInsideBlockBraces cop

db6f2df9 10/31/2019 08:26 AM Lukas Zapletal

Fixes #28154 - random name/description test failure fixed

f2ee562e 07/09/2019 08:44 AM Marek Hulán

Fixes #27249 - flip the comma cop

a0591cdb 06/16/2019 10:38 AM Timo Goebel

fixes #26548 - graphql: support namespaced modules

7a717a95 05/28/2019 05:54 AM Michael Moll

Fixes #26875 - update factory_bot_rails to 5.x

f0a91d3f 04/04/2019 01:14 PM Timo Goebel

fixes #26495 - graphql: properly auth resources

87234768 03/28/2019 06:55 PM Kamil Szubrycht

Fixes #26297 - graphql: add Host queries

d1e18585 02/26/2019 08:13 AM Timo Goebel

fixes #23678 - add graphql scaffolding

7ac4870b 10/05/2018 09:28 AM Lukas Zapletal

Fixes #23336 - env variables for test retry and logs

bb93b260 10/02/2018 10:17 AM Lukas Zapletal

Fixes #24886 - fixed audit in seeds test (#6058)

7fbc4dfa 07/19/2018 11:26 AM Peter Lehwess

Fixes #24293 - Fix ability to run single tests

b5eca9b3 06/22/2018 07:53 AM Michael Moll

Fixes #23962 - Fix Style/ExpandPathArguments cop

c0823ae1 05/18/2018 10:59 AM Djebran Lezzoum

Refs #23295 - Robottelo tests reporting (#5586)

d0644ecc 04/24/2018 04:15 PM Djebran Lezzoum

Fixes #23295 - Robottelo tests reporting (#5464)

df1215f9 04/21/2018 12:34 PM Lukas Zapletal

Fixes #23254 - Utilize webmock to prevent network connection

in tests

b03dcd1b 04/05/2018 11:56 AM Michael Moll

Fixes #23081 - Fix Style/SafeNavigation cop

c5f859f7 03/21/2018 04:44 PM Djebran Lezzoum

Fixes #22930 - Port robottelo Architectures tests (#5335)

5288f163 03/19/2018 08:26 AM Djebran Lezzoum

Fixes #22793 - Port robottelo tests for organization (#5295)

f2194f0a 03/08/2018 08:27 AM Tim Wade

fixes #22575 - clean up test report

  • Replace deprecated only_path with ignore_query
  • Don't log to stdout for skipped tests

~* Don't override capture~

~While this code might be helpful for debugging, leaving it in for~
~every test run clutters up the test report.~...

52258efc 01/28/2018 09:45 AM Daniel Lobato Garcia

Fixes #22430 - Plugin permissions are cleared on tests

- Some tests are removing all plugins (plugin_test, rabl_test,
belongs_to_proxy_test) from the registry. This has, among others,
one important consequence: the plugin permissions are removed.

- Take an example. Foreman Ansible overrides the Host#form with a...

7e880437 01/15/2018 04:28 PM Michael Moll

Fixes #19877 - Fix Style/NegatedIf cop

c7c53aeb 12/11/2017 01:15 PM Shimon Shtein

Fixes #21776 - Improved fact importing to deal with names

Now the list of fact names will be calculated beforehand and saved
to the database. It will also consider that the name could be added
from other thread.

8c6bc83e 11/01/2017 09:00 AM Marek Hulán

Fixes #21424 - use factory_bot_rails

0126b62d 09/26/2017 03:40 PM Lukas Zapletal

Fixes #20559 - print rails log for test failures

7adb7fa2 08/03/2017 06:46 AM Marek Hulán

Refs #16884 - add minitest stubbing to test helper

edd5310f 04/20/2017 10:57 AM Dominic Cleal

fixes #19131 - upgrade minitest to latest 5.x

- override minitest's `_` expectation method with the gettext method
- rename `location` let helper, conflicted with a minitest method name
- fix `assert_equal nil, [..]` deprecation warnings, prefer `assert nil`...

a36689ab 03/09/2017 07:45 AM Ohad Levy

fixes #18681 - moves polymorphic subject into notification object

also adds host build, destroyed and missing owner UI notifications

5f606e11 02/22/2017 03:26 AM Daniel Lobato Garcia

Fixes #16982 - Scope properly when no taxonomies are set

The default scope for hosts and other objects did not restrict
properly by taxonomies. An user without organizations or
locations, could do anything it's permissions allow to.
The list of hosts was unrestricted and showed hosts in...

35c14172 01/26/2017 08:18 AM Ivan Necas

Refs #15779 - make background processing unavailable for now (#4217)

The original PR got vetted in the packaging phase and including
foreman-task as dependency of Foreman was refused. We need to rethink
our approach for getting the foreman-tasks functionality available...

9a4ed000 11/30/2016 05:43 AM Tomáš Strachota

Fixes #17487 - support sessions for api calls

- authenticated api calls save user to session and set
flag api_authenticated_session
- sessions with such flag allow posting requests without CSRF token
- api sessions exipre the same way as UI sessions
- api sessions don't store any additional data to keep the requests...

eb371ca3 11/25/2016 04:48 AM Marek Hulán

Fixes #15779 - make background processing available

ea98080f 09/24/2016 03:20 AM Dominic Cleal

fixes #16557 - move tests into modern Rails layout

Models, controllers, mailers and helpers are now in test/ subdirs
matching app/ subdirs. Service, miscellaneous and old test/lib/ tests
are now in test/unit/ separated from models, which obsoletes the custom...

295536d1 08/10/2016 11:31 AM Dominic Cleal

fixes #15787 - update shoulda-matchers to 3.x

Contains changes to models for the new behaviour of the uniqueness
validation test, which saves a model with one value and then attempts
to validate a second.

NestedAncestryCommon's validation now doesn't fail when the specified...

e2a57bfe 08/10/2016 06:18 AM Tomer Brisker

Fixes #12364 - Use NPM+Webpack to handle external assets

This commit introduces NPM and Webpack to handle external assets.
It also provides ES6 support and a live reload dev server that can be
used by running `foreman start` instead of `rails start`.
Do not forget to run `npm install` before starting the server....

4b836b62 07/21/2016 03:51 AM Dominic Cleal

fixes #15751 - replace spork with spring in development

To make use of it, run bin/rails and bin/rake rather than plain
rails or rake commands, and run `spring status` or `spring stop` to
check and stop current background processes.

Test log removal has moved to the logging framework as the file would...

86aa4085 03/16/2016 10:23 AM Ori Rabin

Fixes #14228 - requiring fileutils in test_helper

26dade0f 03/16/2016 06:48 AM Daniel Lobato Garcia

Fixes #14097 - Only run DatabaseCleaner truncation on JS tests

Problem:
DatabaseCleaner runs after all integration tests, on truncation mode.
However, for tests where we use rack-test instead of poltergeist, this
is not necessary and slows down the test suite....

1680e944 03/15/2016 11:45 AM Tomer Brisker

Fixes #14191 - remove simplecov test coverage reporting

945dd6d7 03/14/2016 11:46 AM Dominic Cleal

fixes #14155 - fix leaks between tests with random ordering

- A test for the Rabl use_controller_name_as_json_root extension was
leaking as the old value was only reset in `setup` methods. When the
test was last in the test case, the configuration wasn't reset....

640d7ee7 03/09/2016 01:14 PM Justin Sherrill

Fixes #13545 - STI permission checking always using base class

This fixes permission checks on STI objects. Due to these methods existing
in Procs and being included in the base class at run time resource_class was
returning the base class. I can only presume this is related to a ruby or rails 4...

a2b3be55 03/02/2016 05:42 AM Tomer Brisker

Fixes #13896 - Rename Anonymous role to Default role

8a7d34da 02/25/2016 05:33 AM Dominic Cleal

fixes #13879 - load mocha/minitest integration explicitly

rails/rails@fd6aaaa removed automatic loading of mocha in Rails 4.2
from rails/test_help.

a977bd3b 02/16/2016 05:01 AM Daniel Lobato Garcia

Fixes #13557 - Rubocop enforce specifying a timezone

Rubocop can enforce what timezone to store in the database ,
so we can ensure everything is stored using UTC and we don't
miss these things in code reviews. When objects are displayed,
they must use the time provided by set_timezone in the...

7e670d3f 01/27/2016 04:23 AM Tom Caspy

fixes #13355 - facet test tables get created when tests run

moving the require to the test helper ensures that the code gets
evaluated before Spork.prefork, thus, the tables get created.

138c4745 01/20/2016 08:09 AM Dominic Cleal

fixes #13111 - use negated Capybara lookups to wait for JS handlers

Various integration tests failed intermittently as they didn't wait for
asynchronous JS to run when clicking buttons. Instances of refuting
existence of an element after a click were changed to negated Capybara...

a0a3a873 01/13/2016 03:24 AM Tom Caspy

fixes #13131 - plugin tests to skip is back

d6c08a7a 01/13/2016 03:24 AM Daniel Lobato Garcia

Fixes #11618 - Replace validation tests by shoulda-matchers

A good chunk of our unit tests are testing whether a validation is
working or not by testing it actively. For the validations we've
added ourselves I would say it's fine. However for validations that...

8660f934 01/11/2016 06:44 AM Dominic Cleal

fixes #12954 - config status is relevant if reports exist or via setting

For a host that has config management reports, but no Puppet proxy set,
consider the config status relevant. This helps in an environment with
reports but no proxy, but has the side effect of considering the status...

d94f4d36 12/22/2015 10:01 AM Shimon Shtein

Fixes #12794 - Defined logic when properties should be sent to server

If hostgroup is not set - always send the parameters.
On hostgroup change - remove inherited parameters from the request, so the values from the hostgroup will take place.
On save - send the values according to the state of the "inherit" button.

fb9f45e8 12/18/2015 08:03 AM Daniel Lobato Garcia

Fixes #7230, #12021 - Upgrade to Rails 4.1.5

This commits upgrades Rails to Rails 4.1.5. See a description of the
changes included here, and go to the pull request in GitHub to see more
detailed explanations:

  • Update gems to a Rails 4 compatible version, including dependencies...
935bc248 12/08/2015 05:50 AM Alon Goldboim

Fixes #12452 - Enable non admin users to do bulk actions on hosts

0f436556 09/25/2015 11:11 AM Daniel Lobato Garcia

Fixes #7567 - Substitute find_or_create_by by first_or_create

Rails 3 and 4 both support the syntax 'where(args).first_or_create'.
find_or_create_by is no longer valid on Rails 4 so we should remove it
here already

720c2d7f 09/24/2015 03:16 AM Daniel Lobato Garcia

Fixes #11912 - Remove deprecated assert_present assert_blank

Rails 4.1 deprecates assert_present and assert_blank as per
http://guides.rubyonrails.org/4_1_release_notes.html . We don't use
these extensively, so we can afford to remove them and use the
recommended assert object.present? and assert object.blank?...

978c5fd9 09/17/2015 02:28 AM Daniel Lobato Garcia

Fixes #11813 - Use new engines listing syntax

dcc3a96f 07/08/2015 06:23 AM Eric Helms

Fixes #11025: Allow skip test runner to run through Jenkins test task.

The Jenkins CI gem implements its own custom test runner. When trying
to use a custom test runner in the jenkins environment, this test
runner needs to be inherited from and included as the last argument....

9926db42 06/11/2015 02:25 AM Dominic Cleal

fixes #10627 - apply host taxonomy scope to facts/report joins

Previous changes to perform a join onto hosts with authorisation result
in a query such as Report.joins(:hosts), which ignores any
default_scope on Host::Base. This commit explicitly passes taxonomy...

510d53cd 06/09/2015 07:22 AM Marek Hulán

Fixes #7096 - Adds STI to templates

This commit converts Ptables to be just another type of Template so it
gets the same features as ConfigTemplate. ConfigTemplate was renamed to
ProvisioningTemplate to reflect UI and the name under it's commonly known.

e60f0799 04/17/2015 07:31 AM Dominic Cleal

fixes #10020 - add next-server/filename attrs to provision NIC DHCP record

A host's DHCP record used to be constructed with PXE attributes in
Orchestration::DHCP, but moved to Nic::Managed during 43c4bd7. Nic::Managed
didn't add PXE attributes, so this commit adds these when provision? is set....

fbbda128 04/02/2015 04:31 AM Marek Hulán

Fixes #9967 - make sure User.current is isolated

6d05514a 03/05/2015 07:31 AM Tomáš Strachota

Fixes #9480 - multiple NICs integration with compute profiles

From users point of view:
- interfaces setup in compute profiles is back
- interface related compute attrs get merged into host NICs upon compute
profile selection
- NIC overview table displays details in the column "Type"...

abd8f1d1 02/18/2015 03:54 AM Daniel Lobato Garcia

Refs #3809 - Remove cops for empty lines

6f494082 02/11/2015 07:41 AM Tom Caspy

fixes #9212 - using headless browser in order to run Capybara tests

ee1f56de 01/23/2015 06:51 AM Marek Hulán

Fixes #9044 - fixes invalid mac in tests

Also do not reset invalid mac address to nil so we can propagate proper
validation error.

51a88438 11/25/2014 07:37 AM Shlomi Zadok

Fixes #7233 - Drop Ruby 1.8.7 and revert Ruby 1.8.7 specifics

5f029ed6 10/07/2014 03:40 AM Daniel Lobato Garcia

Refs #3809 - Use parentheses in method definitions

4f7a4d0b 10/06/2014 02:37 PM David Davis

Refs #3809 - Fix a few rubocop TODOs

96144a47 10/06/2014 01:57 PM Daniel Lobato Garcia

Refs #3809 - Remove rubocop TODOs

Removed the following TODOs so that cops for these will run from now on:

Lint/AmbiguousOperator, DefEndAlignment, DeprecatedClassMethods
EnsureReturn, RequireParentheses, Void, BlockAlignment, EndAlignment,
UselessAccessModifier,...

c4741504 09/30/2014 07:10 AM Greg Sutcliffe

Fixes #6549 - Add :tests_to_skip to plugin registration block

95239600 09/02/2014 03:14 AM Marek Hulán

Fixes #5929 - Taxonomy filter obey permissions

With this patch you can assign permissions like assign_organizations and
assign_locations to particular user so that they can then assign
taxonomies
only from set of taxonomies granted by their filters.

Global users would be still able to assign any taxonomy to a resource as...

50ebc024 07/31/2014 11:17 AM David Davis

Fixes #6446 - Forbidding non-json POST/PUT requests in v2

80a2f885 07/31/2014 10:36 AM Eric Helms

Fixes #6620: Allow plugins to define a file to be included in test_helper.

For some plugins additions to the test_helper are needed to allow
the test suite to pass. This checks if a file test/support/foreman_support
exists and requires it after all the Foreman test setup is done.

8e5a869a 07/14/2014 05:08 AM Ori Rabin

Fixes #6537: Entering a very large number for idle_timeout is unchecked, crashes UI

e07f9a12 06/30/2014 07:57 AM Dominic Cleal

fixes #3272 - allow 'admin' account to be removed and replaced

5b391a40 06/09/2014 07:02 PM Joseph Magen

fixes #6112 - log/test.log disappears when running under spork

46b3d8f1 04/22/2014 01:06 PM Dominic Cleal

fixes #5246 - remove second host/class lookup impl so config groups are included in ENC output

b5b26432 04/14/2014 06:12 PM Daniel Lobato Garcia

Fixes #5180 - in_taxonomy clears out Taxonomy.current

cfa4b526 03/24/2014 08:32 AM Dominic Cleal

fixes #4457 - Session fixation, new session IDs are not generated on login (CVE-2014-0090)

acfbc458 03/03/2014 02:26 PM Marek Hulán

fixes #812 - new permissions model, user group role and nest support, role filters for better granularity

Contributions from:
8d113bd8 02/21/2014 04:29 PM Joseph Magen

fixes #4349 - API v2 - add location and organization child nodes to user, domain, subnet, etc show json templates

d8b61e36 02/21/2014 04:15 PM Joseph Magen

fixes #4198 - API v2 - add child nodes to show responses. Ex. architecture should show operating systems node

6181dd98 02/13/2014 06:02 PM Eric Helms

Fixes #4341: Adds a new organization taxonomy that is labeled empty.

390e2281 11/06/2013 06:17 PM David Davis

fixes #3597 - removing rr gem, make tests consistent by using just mocha