Skip to content

Conversation

Nikokrock
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Mar 12, 2018

Codecov Report

Merging #10 into master will increase coverage by 0.33%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #10      +/-   ##
=========================================
+ Coverage   91.06%   91.4%   +0.33%     
=========================================
  Files           8       8              
  Lines         582     605      +23     
=========================================
+ Hits          530     553      +23     
  Misses         52      52
Impacted Files Coverage Δ
e3/aws/cfn/ec2/__init__.py 96.96% <100%> (+0.3%) ⬆️
e3/aws/cfn/__init__.py 89.91% <100%> (+0.72%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b89628...1e84888. Read the comment docs.

@enzbang enzbang merged commit c293bc7 into AdaCore:master Mar 12, 2018
adacore-bot pushed a commit that referenced this pull request Aug 21, 2025
By raising `ValueError` instead, it will avoid repeating everytime:
```
version = versions.get_version(SOME_VERSION)
assert version is not None
```

Ref #10+
adacore-bot pushed a commit that referenced this pull request Aug 26, 2025
This will help further reduce the pattern:
```python
version = versions.get_version(SOME_VERSION)
assert version is not None
```

When doing:
```python
blue_version = versions.get_version(BLUE_VERSION)
green_version = versions.get_version(GREEN_VERSION)
assert blue_version is not None
assert green_version is not None
```

Instead we will have a class with `blue/green` properties to access
the corresponding versions:
```python
blue_version = versions.blue
green_version = versions.green
```

Ref #10+
adacore-bot pushed a commit that referenced this pull request Aug 26, 2025
We mainly use `BlueGreenAliasConfiguration` as:
```python
blue_version = versions.get_version(BLUE_VERSION)
BlueGreenAliasConfiguration(blue_version.version)
```

So one thing is that the class should accept `GetAtt`, but it can
also directly accept `Version` so there is less risk to pass
a wrong ARN

Ref #10+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants