File tree 5 files changed +21
-5
lines changed
5 files changed +21
-5
lines changed Original file line number Diff line number Diff line change
1
+ * .tar.gz
Original file line number Diff line number Diff line change 1
1
packaging
2
- msrestazure==0.6.4 # also installs its dependencies like isodate, msrest
2
+
3
3
azure-cli-core==2.28.1 # required for `az login` based authentication; tested with azure-cli 2.11 and 2.28
4
4
azure-mgmt-resource==20.0.0 # also installs azure-common
5
5
azure-mgmt-authorization==1.0.0
6
-
6
+ msrestazure==0.6.4 # also installs its dependencies like isodate, msrest
Original file line number Diff line number Diff line change
1
+ Following setup is used for testing (and works)
2
+
1
3
```
2
4
# Create environment for testing
3
5
rm -rf ~/pyenvs/azbare
@@ -7,9 +9,10 @@ python3.8 -m venv ~/pyenvs/azbare
7
9
# Install dependencies
8
10
. ~/pyenvs/azbare/bin/activate
9
11
pip install wheel
10
- pip install ansible==2.10.5
11
12
pip install -r requirements-azure.txt --force
12
- ansible-galaxy collection install git+file://`pwd` --force
13
+ pip install ansible==2.10.5
14
+ ansible-galaxy collection build --force
15
+ ansible-galaxy collection install geekq-azbare-1.0.0.tar.gz -p $VIRTUAL_ENV/lib/python3.8/site-packages/ansible_collections --force
13
16
14
17
# Run the tests
15
18
ansible-playbook tests/all-tests.playbook.yaml -vv
Original file line number Diff line number Diff line change 1
1
- name : Run all tests for handling Azure resources
2
2
hosts : localhost
3
3
gather_facts : no
4
+ connection : local
4
5
any_errors_fatal : true
5
6
tasks :
6
7
- name : Run tests on Azure Service Bus resources, including advanced POST operations
7
8
import_tasks : tasks/servicebus-with-key-renewal.yaml
8
9
vars :
9
10
resource_group : experimental-applicationdevelopment
11
+ azure_location : Germany West Central
Original file line number Diff line number Diff line change
1
+ - name : Prepare the resource group
2
+ geekq.azbare.resource :
3
+ group : " {{ resource_group }}"
4
+ path : " "
5
+ definition :
6
+ # There is an inconsistency in Azure API: resource_groups expects a differently
7
+ # formatted location - all downcase, without spaces.
8
+ # Format it to be able to check for existing group with desired definition.
9
+ location : " {{ azure_location | lower | replace(' ', '') }}"
10
+
1
11
- name : Define a service bus namespace
2
12
geekq.azbare.resource :
3
13
group : " {{ resource_group }}"
4
14
path : /providers/Microsoft.ServiceBus/namespaces/myexample-bus1
5
15
definition :
6
- location : Germany West Central
16
+ location : " {{ azure_location }} "
7
17
sku :
8
18
name : Basic
9
19
tier : Basic
You can’t perform that action at this time.
0 commit comments