summaryrefslogtreecommitdiffstats
path: root/ansible_collections/azure/azcollection/tests/integration/targets/azure_rm_accesstoken_info/tasks/main.yml
blob: dbe62587114287d65e4de8d3d8a57218cd000538 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
- name: Get access token for graphql
  azure.azcollection.azure_rm_accesstoken_info:
    scopes:
      - https://graph.microsoft.com/.default
  register: result

- name: Assert the facts
  ansible.builtin.assert:
    that:
      - result is not changed
      - result is not failed
      - "'access_token' in result"
      - "'expires_on' in result"