• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cyverse / atmosphere / 1001
37%
master: 37%

Build:
Build:
LAST BUILD BRANCH: script-chmod
DEFAULT BRANCH: master
Ran 27 Feb 2018 09:55PM UTC
Jobs 2
Files 451
Run time 38s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1001

Pull #585

travis-ci

web-flow
Fix invalid argument to check_allocation

When an instance is started, a call is made to check_allocation with an
allocation source snapshot. However, check_allocation expects an
allocation_source.

Here is a stack trace, which would lead to the assertion error

  /opt/dev/atmosphere/api/v2/views/instance.py(99)actions()
     98             return self.list_instance_actions(request, pk=pk)
---> 99         return self.post_instance_action(request, pk=pk)
    100

  /opt/dev/atmosphere/api/v2/views/instance.py(119)post_instance_action()
    118         try:
--> 119             result_obj = run_instance_action(user, identity, instance_id, action, action_params)
    120             api_response = {

  /opt/dev/atmosphere/service/instance.py(2054)run_instance_action()
   2053         instance_allocation_source = InstanceAllocationSourceSnapshot.objects.get(instance__provider_alias=instance_id)
-> 2054         check_allocation(user.username, instance_allocation_source)
   2055     if 'resize' == action_type:

  /opt/dev/atmosphere/service/instance.py(1327)check_allocation()
   1326     enforcement_override_choice = AllocationSourcePluginManager.get_enforcement_override(user,
-> 1327                                                                                          allocation_source)
   1328     logger.debug('check_allocation - enforcement_override_choice: %s', enforcement_override_choice)

  /opt/dev/atmosphere/core/plugins.py(200)get_enforcement_override()
    199                                                                            allocation_source=allocation_source,
--> 200                                                                            provider=provider)
    201             if _enforcement_override_choice != EnforcementOverrideChoice.NO_OVERRIDE:

  /opt/dev/atmosphere/cyverse_allocation/plugins/allocation_source.py(39)get_enforcement_override()
     38         """
---> 39         return _get_enforcement_override(allocation_source... (continued)
Pull Request #585: Fix invalid argument to check_allocation

1054 of 7084 branches covered (14.88%)

Branch coverage included in aggregate %.

3 of 3 new or added lines in 1 file covered. (100.0%)

11898 of 28240 relevant lines covered (42.13%)

0.82 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
features/steps/tas_api_steps.py
1
100.0
jetstream/tasks.py
2
100.0
atmosphere/plugins/quota/default_quota.py
2
100.0
atmosphere/settings/local.py
2
100.0
jetstream/models.py
3
100.0
core/models/instance.py
4
100.0
api/v2/serializers/details/allocation_source.py
4
100.0
core/admin_panel.py
8
100.0
core/models/allocation_source.py
9
100.0
core/plugins.py
10
100.0
core/models/user.py
15
100.0
jetstream/plugins/allocation_source.py
18
100.0
jetstream/plugins/quota/default_quota.py
19
100.0
features/steps/allocation_steps.py
57
100.0
features/steps/api_with_persona_steps.py
109
100.0
features/steps/create_report_test_after_user_deleted.py
Jobs
ID Job ID Ran Files Coverage
1 1001.1 (DISTRIBUTION=cyverse) 27 Feb 2018 09:55PM UTC 0
35.68
Travis Job 1001.1
2 1001.2 (DISTRIBUTION=jetstream) 27 Feb 2018 09:55PM UTC 0
35.36
Travis Job 1001.2
Source Files on build 1001
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1001
  • Pull Request #585
  • PR Base - v30 (#995)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc